apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: api-approved.openshift.io: https://github.com/openshift/api/pull/1453 include.release.openshift.io/ibm-cloud-managed: "true" include.release.openshift.io/self-managed-high-availability: "true" include.release.openshift.io/single-node-developer: "true" release.openshift.io/feature-set: TechPreviewNoUpgrade name: machineconfigurations.operator.openshift.io spec: group: operator.openshift.io names: kind: MachineConfiguration plural: machineconfigurations singular: machineconfiguration scope: Cluster versions: - name: v1 schema: openAPIV3Schema: description: "MachineConfiguration provides information to configure an operator to manage Machine Configuration. \n Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer)." properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string metadata: type: object spec: description: spec is the specification of the desired behavior of the Machine Config Operator properties: failedRevisionLimit: description: failedRevisionLimit is the number of failed static pod installer revisions to keep on disk and in the api -1 = unlimited, 0 or unset = 5 (default) format: int32 type: integer forceRedeploymentReason: description: forceRedeploymentReason can be used to force the redeployment of the operand by providing a unique string. This provides a mechanism to kick a previously failed deployment and provide a reason why you think it will work this time instead of failing again on the same config. type: string logLevel: default: Normal description: "logLevel is an intent based logging for an overall component. \ It does not give fine grained control, but it is a simple way to manage coarse grained logging choices that operators have to interpret for their operands. \n Valid values are: \"Normal\", \"Debug\", \"Trace\", \"TraceAll\". Defaults to \"Normal\"." enum: - "" - Normal - Debug - Trace - TraceAll type: string managedBootImages: description: managedBootImages allows configuration for the management of boot images for machine resources within the cluster. This configuration allows users to select resources that should be updated to the latest boot images during cluster upgrades, ensuring that new machines always boot with the current cluster version's boot image. When omitted, no boot images will be updated. properties: machineManagers: description: machineManagers can be used to register machine management resources for boot image updates. The Machine Config Operator will watch for changes to this list. Only one entry is permitted per type of machine management resource. items: description: MachineManager describes a target machine resource that is registered for boot image updates. It stores identifying information such as the resource type and the API Group of the resource. It also provides granular control via the selection field. properties: apiGroup: description: apiGroup is name of the APIGroup that the machine management resource belongs to. The only current valid value is machine.openshift.io. machine.openshift.io means that the machine manager will only register resources that belong to OpenShift machine API group. enum: - machine.openshift.io type: string resource: description: resource is the machine management resource's type. The only current valid value is machinesets. machinesets means that the machine manager will only register resources of the kind MachineSet. enum: - machinesets type: string selection: description: selection allows granular control of the machine management resources that will be registered for boot image updates. properties: mode: description: mode determines how machine managers will be selected for updates. Valid values are All and Partial. All means that every resource matched by the machine manager will be updated. Partial requires specified selector(s) and allows customisation of which resources matched by the machine manager will be updated. enum: - All - Partial type: string partial: description: partial provides label selector(s) that can be used to match machine management resources. Only permitted when mode is set to "Partial". properties: machineResourceSelector: description: machineResourceSelector is a label selector that can be used to select machine resources like MachineSets. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic required: - machineResourceSelector type: object required: - mode type: object x-kubernetes-validations: - message: Partial is required when type is partial, and forbidden otherwise rule: 'has(self.mode) && self.mode == ''Partial'' ? has(self.partial) : !has(self.partial)' required: - apiGroup - resource - selection type: object type: array x-kubernetes-list-map-keys: - resource - apiGroup x-kubernetes-list-type: map type: object managementState: description: managementState indicates whether and how the operator should manage the component pattern: ^(Managed|Unmanaged|Force|Removed)$ type: string observedConfig: description: observedConfig holds a sparse config that controller has observed from the cluster state. It exists in spec because it is an input to the level for the operator nullable: true type: object x-kubernetes-preserve-unknown-fields: true operatorLogLevel: default: Normal description: "operatorLogLevel is an intent based logging for the operator itself. It does not give fine grained control, but it is a simple way to manage coarse grained logging choices that operators have to interpret for themselves. \n Valid values are: \"Normal\", \"Debug\", \"Trace\", \"TraceAll\". Defaults to \"Normal\"." enum: - "" - Normal - Debug - Trace - TraceAll type: string succeededRevisionLimit: description: succeededRevisionLimit is the number of successful static pod installer revisions to keep on disk and in the api -1 = unlimited, 0 or unset = 5 (default) format: int32 type: integer unsupportedConfigOverrides: description: unsupportedConfigOverrides overrides the final configuration that was computed by the operator. Red Hat does not support the use of this field. Misuse of this field could lead to unexpected behavior or conflict with other configuration options. Seek guidance from the Red Hat support before using this field. Use of this property blocks cluster upgrades, it must be removed before upgrading your cluster. nullable: true type: object x-kubernetes-preserve-unknown-fields: true type: object status: description: status is the most recently observed status of the Machine Config Operator properties: conditions: description: conditions is a list of conditions and their status items: description: OperatorCondition is just the standard condition fields. properties: lastTransitionTime: format: date-time type: string message: type: string reason: type: string status: type: string type: type: string required: - type type: object type: array x-kubernetes-list-map-keys: - type x-kubernetes-list-type: map generations: description: generations are used to determine when an item needs to be reconciled or has changed in a way that needs a reaction. items: description: GenerationStatus keeps track of the generation for a given resource so that decisions about forced updates can be made. properties: group: description: group is the group of the thing you're tracking type: string hash: description: hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps type: string lastGeneration: description: lastGeneration is the last generation of the workload controller involved format: int64 type: integer name: description: name is the name of the thing you're tracking type: string namespace: description: namespace is where the thing you're tracking is type: string resource: description: resource is the resource type of the thing you're tracking type: string type: object type: array x-kubernetes-list-type: atomic latestAvailableRevision: description: latestAvailableRevision is the deploymentID of the most recent deployment format: int32 type: integer latestAvailableRevisionReason: description: latestAvailableRevisionReason describe the detailed reason for the most recent deployment type: string nodeStatuses: description: nodeStatuses track the deployment values and errors across individual nodes items: description: NodeStatus provides information about the current state of a particular node managed by this operator. properties: currentRevision: description: currentRevision is the generation of the most recently successful deployment format: int32 type: integer lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. type: integer lastFailedReason: description: lastFailedReason is a machine readable failure reason string. type: string lastFailedRevision: description: lastFailedRevision is the generation of the deployment we tried and failed to deploy. format: int32 type: integer lastFailedRevisionErrors: description: lastFailedRevisionErrors is a list of human readable errors during the failed deployment referenced in lastFailedRevision. items: type: string type: array x-kubernetes-list-type: atomic lastFailedTime: description: lastFailedTime is the time the last failed revision failed the last time. format: date-time type: string lastFallbackCount: description: lastFallbackCount is how often a fallback to a previous revision happened. type: integer nodeName: description: nodeName is the name of the node type: string targetRevision: description: targetRevision is the generation of the deployment we're trying to apply format: int32 type: integer required: - nodeName type: object type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map observedGeneration: description: observedGeneration is the last generation change you've dealt with format: int64 type: integer readyReplicas: description: readyReplicas indicates how many replicas are ready and at the desired state format: int32 type: integer version: description: version is the level this availability applies to type: string type: object required: - spec type: object served: true storage: true subresources: status: {}