From 1e775c2c1a04e3e47e735c5a5638a0aed987623e Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 5 Jan 2026 13:34:06 -0500 Subject: [PATCH] Enable CRD descriptions except 'core' This enables CRD descriptions for all openstack-operator CRDs except the *core* CRs including OpenStackControlplane and OpenStackVersion. The OpenStackControlplane CR is quite large with descriptions enabled and thus needs to stay disabled. --- Makefile | 11 +- ...client.openstack.org_openstackclients.yaml | 99 ++ ...ack.org_openstackdataplanedeployments.yaml | 87 ++ ...nstack.org_openstackdataplanenodesets.yaml | 952 ++++++++++++ ...nstack.org_openstackdataplaneservices.yaml | 135 ++ .../operator.openstack.org_openstacks.yaml | 105 ++ bindata/crds/crds.yaml | 1273 +++++++++++++++++ ...client.openstack.org_openstackclients.yaml | 99 ++ ...ack.org_openstackdataplanedeployments.yaml | 87 ++ ...nstack.org_openstackdataplanenodesets.yaml | 952 ++++++++++++ ...nstack.org_openstackdataplaneservices.yaml | 135 ++ .../operator.openstack.org_openstacks.yaml | 105 ++ 12 files changed, 4038 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c7886102fb..1db0784697 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,11 @@ ENVTEST_K8S_VERSION = 1.31 SETUP_ENVTEST_VERSION ?= release-0.22 -CRDDESC_OVERRIDE ?= :maxDescLen=0 +# CRD description settings +# Disable descriptions for OpenStackControlPlane (and OpenStackVersion because it is in the same package), +# enable for all others +CRDDESC_CORE ?= :maxDescLen=0 +CRDDESC_OTHER ?= # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) @@ -135,10 +139,13 @@ help: ## Display this help. # (dprince) FIXME: controller-gen crd didn't seem to like multiple paths so I didn't split it. So we can continue using kubebuilder # I did split out the rbac for both binaries so we can use separate roles +# NOTE: we generate the OpenStackControlplane CR in a separate step to avoid the CRD descriptions +# which increase the size greatly and may ultimately cause issues with CR upgrades .PHONY: manifests manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects. mkdir -p config/operator/rbac && \ - $(CONTROLLER_GEN) crd$(CRDDESC_OVERRIDE) output:crd:artifacts:config=config/crd/bases webhook paths="./..." && \ + $(CONTROLLER_GEN) crd$(CRDDESC_OTHER) output:crd:artifacts:config=config/crd/bases webhook paths="./..." && \ + $(CONTROLLER_GEN) crd$(CRDDESC_CORE) output:crd:artifacts:config=config/crd/bases paths="./api/core/..." && \ $(CONTROLLER_GEN) rbac:roleName=manager-role paths="{./api/client/...,./api/core/...,./api/dataplane/...,./internal/controller/client/...,./internal/controller/core/...,./internal/controller/dataplane/...,./internal/...}" output:dir=config/rbac && \ $(CONTROLLER_GEN) rbac:roleName=operator-role paths="./internal/controller/operator/..." paths="./api/operator/..." output:dir=config/operator/rbac && \ rm -f api/bases/* && cp -a config/crd/bases api/ diff --git a/api/bases/client.openstack.org_openstackclients.yaml b/api/bases/client.openstack.org_openstackclients.yaml index 865b5c5cc7..5f305cf9e5 100644 --- a/api/bases/client.openstack.org_openstackclients.yaml +++ b/api/bases/client.openstack.org_openstackclients.yaml @@ -29,75 +29,144 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: OpenStackClient is the Schema for the openstackclients API 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: OpenStackClientSpec defines the desired state of OpenStackClient properties: caBundleSecretName: + description: CaBundleSecretName - holding the CA certs in a pre-created + bundle file type: string containerImage: + description: ContainerImage for the OpenstackClient container (will + be set to environmental default if empty) type: string env: + description: List of environment variables to set in the container. items: + description: EnvVar represents an environment variable present in + a Container. properties: name: + description: Name of the environment variable. Must be a C_IDENTIFIER. type: string value: + description: |- + Variable references $(VAR_NAME) are expanded + using the previously defined environment variables in the container and + any service environment variables. If a variable cannot be resolved, + the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. + "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". + Escaped references will never be expanded, regardless of whether the variable + exists or not. + Defaults to "". type: string valueFrom: + description: Source for the environment variable's value. Cannot + be used if value is not empty. properties: configMapKeyRef: + description: Selects a key of a ConfigMap. properties: key: + description: The key to select. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the ConfigMap or its key + must be defined type: boolean required: - key type: object x-kubernetes-map-type: atomic fieldRef: + description: |- + Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, + spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. properties: apiVersion: + description: Version of the schema the FieldPath is + written in terms of, defaults to "v1". type: string fieldPath: + description: Path of the field to select in the specified + API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. properties: containerName: + description: 'Container name: required for volumes, + optional for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the output format of the exposed + resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource to select' type: string required: - resource type: object x-kubernetes-map-type: atomic secretKeyRef: + description: Selects a key of a secret in the pod's namespace properties: key: + description: The key of the secret to select from. Must + be a valid secret key. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the Secret or its key must + be defined type: boolean required: - key @@ -114,12 +183,17 @@ spec: nodeSelector: additionalProperties: type: string + description: NodeSelector to target subset of worker nodes type: object openStackConfigMap: default: openstack-config + description: OpenStackConfigMap is the name of the ConfigMap containing + the clouds.yaml type: string openStackConfigSecret: default: openstack-config-secret + description: OpenStackConfigSecret is the name of the Secret containing + the secure.yaml type: string required: - containerImage @@ -127,22 +201,43 @@ spec: - openStackConfigSecret type: object status: + description: OpenStackClientStatus defines the observed state of OpenStackClient properties: conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -153,11 +248,15 @@ spec: hash: additionalProperties: type: string + description: Map of hashes to track e.g. pod spec type: object observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this object. format: int64 type: integer podName: + description: PodName type: string type: object type: object diff --git a/api/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml b/api/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml index 6dc49de215..b9f4d61bbd 100644 --- a/api/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml +++ b/api/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml @@ -34,47 +34,77 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: |- + OpenStackDataPlaneDeployment is the Schema for the openstackdataplanedeployments API + OpenStackDataPlaneDeployment name must be a valid RFC1123 as it is used in labels 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: OpenStackDataPlaneDeploymentSpec defines the desired state + of OpenStackDataPlaneDeployment properties: ansibleExtraVars: + description: AnsibleExtraVars for ansible execution x-kubernetes-preserve-unknown-fields: true ansibleJobNodeSelector: additionalProperties: type: string + description: AnsibleJobNodeSelector to target subset of worker nodes + running the ansible jobs type: object ansibleLimit: + description: AnsibleLimit for ansible execution type: string ansibleSkipTags: + description: AnsibleSkipTags for ansible execution type: string ansibleTags: + description: AnsibleTags for ansible execution type: string backoffLimit: default: 6 + description: BackoffLimit allows to define the maximum number of retried + executions (defaults to 6). format: int32 type: integer deploymentRequeueTime: default: 15 + description: Time before the deployment is requeued in seconds minimum: 1 type: integer nodeSets: + description: NodeSets is the list of NodeSets deployed items: type: string minItems: 1 type: array preserveJobs: default: true + description: |- + PreserveJobs - do not delete jobs after they finished e.g. to check logs + PreserveJobs default: true enum: - true - false type: boolean servicesOverride: + description: ServicesOverride list items: type: string type: array @@ -86,30 +116,54 @@ spec: - message: OpenStackDataPlaneDeployment Spec is immutable rule: self == oldSelf status: + description: OpenStackDataPlaneDeploymentStatus defines the observed state + of OpenStackDataPlaneDeployment properties: ansibleEEHashes: additionalProperties: type: string + description: AnsibleEEHashes type: object bmhRefHashes: additionalProperties: type: string + description: BmhRefHashes type: object conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -120,31 +174,57 @@ spec: configMapHashes: additionalProperties: type: string + description: ConfigMapHashes type: object containerImages: additionalProperties: type: string + description: ContainerImages type: object deployed: + description: Deployed type: boolean deployedVersion: + description: DeployedVersion type: string nodeSetConditions: additionalProperties: + description: Conditions provide observations of the operational + state of a API resource. items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, + Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -152,17 +232,24 @@ spec: - type type: object type: array + description: NodeSetConditions type: object nodeSetHashes: additionalProperties: type: string + description: NodeSetHashes type: object observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this Deployment. If the observed generation is less than the + spec generation, then the controller has not processed the latest + changes. format: int64 type: integer secretHashes: additionalProperties: type: string + description: SecretHashes type: object type: object type: object diff --git a/api/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml b/api/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml index af51e38eba..5eead87632 100644 --- a/api/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml +++ b/api/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml @@ -30,23 +30,50 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: |- + OpenStackDataPlaneNodeSet is the Schema for the openstackdataplanenodesets API + OpenStackDataPlaneNodeSet name must be a valid RFC1123 as it is used in labels 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: OpenStackDataPlaneNodeSetSpec defines the desired state of + OpenStackDataPlaneNodeSet properties: baremetalSetTemplate: + description: BaremetalSetTemplate Template for BaremetalSet for the + NodeSet properties: agentImageUrl: + description: AgentImageURL - Container image URL for the sidecar + container that discovers provisioning network IPs. Ignored when + osImageDeploymentType is PassThrough. type: string apacheImageUrl: + description: ApacheImageURL - Container image URL for the main + container that serves the downloaded OS qcow2 image (osImage). + Ignored when osImageDeploymentType is PassThrough. type: string automatedCleaningMode: default: metadata + description: |- + When set to disabled, automated cleaning will be avoided + during provisioning and deprovisioning. enum: - metadata - disabled @@ -54,56 +81,90 @@ spec: bmhLabelSelector: additionalProperties: type: string + description: BmhLabelSelector allows for a sub-selection of BaremetalHosts + based on arbitrary labels type: object bmhNamespace: default: openshift-machine-api + description: 'BmhNamespace Namespace to look for BaremetalHosts(default: + openshift-machine-api)' type: string cloudUserName: default: cloud-admin + description: CloudUser to be configured for remote access type: string ctlplaneBond: + description: CtlplaneBond - Bonding configuration for ctlplane + network properties: bondInterfaces: + description: BondInterfaces - List of physical interfaces + to bond items: type: string minItems: 2 type: array bondMode: default: active-backup + description: BondMode - Bonding mode (e.g., active-backup, + 802.3ad) type: string bondOptions: additionalProperties: type: string + description: BondOptions - Additional bonding options as key-value + pairs type: object required: - bondInterfaces type: object ctlplaneInterface: + description: CtlplaneInterface - Interface on the provisioned + nodes to use for ctlplane network type: string deploymentSSHSecret: + description: DeploymentSSHSecret - Name of secret holding the + cloud-admin ssh keys type: string domainName: + description: 'DomainName is the domain name that will be set on + the underlying Metal3 BaremetalHosts (TODO: acquire this is + another manner?)' type: string hardwareReqs: + description: Hardware requests for sub-selection of BaremetalHosts + with certain hardware specs properties: cpuReqs: + description: CPUReqs defines specific CPU hardware requests properties: arch: + description: |- + Arch is a scalar (string) because it wouldn't make sense to give it an "exact-match" option + Can be either "x86_64" or "ppc64le" if included enum: - x86_64 - ppc64le type: string countReq: + description: CPUCountReq defines a specific hardware request + for CPU core count properties: count: minimum: 1 type: integer exactMatch: + description: If ExactMatch == false, actual count + > Count will match type: boolean type: object mhzReq: + description: CPUMhzReq defines a specific hardware request + for CPU clock speed properties: exactMatch: + description: If ExactMatch == false, actual mhz > + Mhz will match type: boolean mhz: minimum: 1 @@ -111,28 +172,44 @@ spec: type: object type: object diskReqs: + description: DiskReqs defines specific disk hardware requests properties: gbReq: + description: DiskGbReq defines a specific hardware request + for disk size properties: exactMatch: + description: If ExactMatch == false, actual GB > Gb + will match type: boolean gb: minimum: 1 type: integer type: object ssdReq: + description: SSD is scalar (bool) because it wouldn't + make sense to give it an "exact-match" option properties: exactMatch: + description: |- + We only actually care about SSD flag if it is true or ExactMatch is set to true. + This second flag is necessary as SSD's bool zero-value (false) is indistinguishable + from it being explicitly set to false type: boolean ssd: type: boolean type: object type: object memReqs: + description: MemReqs defines specific memory hardware requests properties: gbReq: + description: MemGbReq defines a specific hardware request + for memory size properties: exactMatch: + description: If ExactMatch == false, actual GB > Gb + will match type: boolean gb: minimum: 1 @@ -141,31 +218,58 @@ spec: type: object type: object osContainerImageUrl: + description: OSContainerImageURL - When osImageDeploymentType + is SelfExtracting, container image URL for init with the OS + qcow2 image (osImage). When osImageDeploymentType is PassThrough + this can be any image URL which the underlying Metal3 instance + supports. type: string osImage: default: edpm-hardened-uefi.qcow2 + description: OSImage - OS qcow2 image Name. Ignored when osImageDeploymentType + is PassThrough. type: string osImageDeploymentType: default: SelfExtracting + description: OSImageDeploymentType - Whether the OS image deployment + is self-extracting or pass-through based enum: - SelfExtracting - PassThrough type: string passwordSecret: + description: |- + PasswordSecret the name of the secret used to optionally set the root pwd by adding + NodeRootPassword: + to the secret data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic provisionServerName: + description: ProvisionServerName - Optional. Existing OpenStackProvisionServer + to use, else one would be created. Ignored when osImageDeploymentType + is PassThrough. type: string provisionServerNodeSelector: additionalProperties: type: string + description: ProvisonServerNodeSelector to target subset of worker + nodes running provision server, ignored when osImageDeploymentType + is PassThrough. type: object provisioningInterface: + description: ProvisioningInterface - Optional. If not provided + along with ProvisionServerName, it would be discovered from + CBO. This is the provisioning interface on the OCP masters/workers. + Ignored when osImageDeploymentType is PassThrough. type: string required: - cloudUserName @@ -173,61 +277,115 @@ spec: - deploymentSSHSecret type: object env: + description: |- + Env is a list containing the environment variables to pass to the pod + Variables modifying behavior of AnsibleEE can be specified here. items: + description: EnvVar represents an environment variable present in + a Container. properties: name: + description: Name of the environment variable. Must be a C_IDENTIFIER. type: string value: + description: |- + Variable references $(VAR_NAME) are expanded + using the previously defined environment variables in the container and + any service environment variables. If a variable cannot be resolved, + the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. + "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". + Escaped references will never be expanded, regardless of whether the variable + exists or not. + Defaults to "". type: string valueFrom: + description: Source for the environment variable's value. Cannot + be used if value is not empty. properties: configMapKeyRef: + description: Selects a key of a ConfigMap. properties: key: + description: The key to select. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the ConfigMap or its key + must be defined type: boolean required: - key type: object x-kubernetes-map-type: atomic fieldRef: + description: |- + Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, + spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. properties: apiVersion: + description: Version of the schema the FieldPath is + written in terms of, defaults to "v1". type: string fieldPath: + description: Path of the field to select in the specified + API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. properties: containerName: + description: 'Container name: required for volumes, + optional for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the output format of the exposed + resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource to select' type: string required: - resource type: object x-kubernetes-map-type: atomic secretKeyRef: + description: Selects a key of a secret in the pod's namespace properties: key: + description: The key of the secret to select from. Must + be a valid secret key. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the Secret or its key must + be defined type: boolean required: - key @@ -239,41 +397,73 @@ spec: type: object type: array networkAttachments: + description: |- + NetworkAttachments is a list of NetworkAttachment resource names to pass to the ansibleee resource + which allows to connect the ansibleee runner to the given network items: type: string type: array nodeTemplate: + description: |- + NodeTemplate - node attributes specific to nodes defined by this resource. These + attributes can be overriden at the individual node level, else take their defaults + from valus in this section. properties: ansible: + description: Ansible is the group of Ansible related configuration + options. properties: ansibleHost: + description: AnsibleHost SSH host for Ansible connection type: string ansiblePort: + description: AnsiblePort SSH port for Ansible connection type: integer ansibleUser: + description: AnsibleUser SSH user for Ansible connection type: string ansibleVars: + description: AnsibleVars for configuring ansible x-kubernetes-preserve-unknown-fields: true ansibleVarsFrom: + description: |- + AnsibleVarsFrom is a list of sources to populate ansible variables from. + Values defined by an AnsibleVars with a duplicate key take precedence. items: + description: DataSource represents the source of a set of + ConfigMaps/Secrets properties: configMapRef: + description: The ConfigMap to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the ConfigMap must + be defined type: boolean type: object x-kubernetes-map-type: atomic prefix: + description: An optional identifier to prepend to each + key in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: + description: The Secret to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the Secret must be + defined type: boolean type: object x-kubernetes-map-type: atomic @@ -281,29 +471,82 @@ spec: type: array type: object ansibleSSHPrivateKeySecret: + description: |- + AnsibleSSHPrivateKeySecret Name of a private SSH key secret containing + private SSH key for connecting to node. + The named secret must be of the form: + Secret.data.ssh-privatekey: + maxLength: 253 type: string extraMounts: + description: ExtraMounts containing files which can be mounted + into an Ansible Execution Pod items: + description: |- + VolMounts is the data structure used to expose Volumes and Mounts that can + be added to a pod according to the defined Propagation policy properties: extraVolType: + description: Label associated to a given extraMount type: string mounts: items: + description: VolumeMount describes a mounting of a Volume + within a container. properties: mountPath: + description: |- + Path within the container at which the volume should be mounted. Must + not contain ':'. type: string mountPropagation: + description: |- + mountPropagation determines how mounts are propagated from the host + to container and the other way around. + When not set, MountPropagationNone is used. + This field is beta in 1.10. + When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified + (which defaults to None). type: string name: + description: This must match the Name of a Volume. type: string readOnly: + description: |- + Mounted read-only if true, read-write otherwise (false or unspecified). + Defaults to false. type: boolean recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled + recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made + recursively read-only. If this field is set to IfPossible, the mount is made + recursively read-only, if it is supported by the container runtime. If this + field is set to Enabled, the mount is made recursively read-only if it is + supported by the container runtime, otherwise the pod will not be started and + an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to + None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. type: string subPath: + description: |- + Path within the volume from which the container's volume should be mounted. + Defaults to "" (volume's root). type: string subPathExpr: + description: |- + Expanded path within the volume from which the container's volume should be mounted. + Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. + Defaults to "" (volume's root). + SubPathExpr and SubPath are mutually exclusive. type: string required: - mountPath @@ -311,51 +554,117 @@ spec: type: object type: array propagation: + description: Propagation defines which pod should mount + the volume items: + description: |- + PropagationType identifies the Service, Group or instance (e.g. the backend) that + receives an Extra Volume that can potentially be mounted type: string type: array volumes: items: + description: Volume our slimmed down version of Volume properties: cephfs: + description: cephFS represents a Ceph FS mount on + the host that shares a pod's lifetime properties: monitors: + description: |- + monitors is Required: Monitors is a collection of Ceph monitors + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it items: type: string type: array x-kubernetes-list-type: atomic path: + description: 'path is Optional: Used as the mounted + root, rather than the full Ceph tree, default + is /' type: string readOnly: + description: |- + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it type: boolean secretFile: + description: |- + secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it type: string secretRef: + description: |- + secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic user: + description: |- + user is optional: User is the rados user name, default is admin + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it type: string required: - monitors type: object configMap: + description: configMap represents a configMap that + should populate this volume properties: defaultMode: + description: |- + defaultMode is optional: mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer items: + description: |- + items if unspecified, each key-value pair in the Data field of the referenced + ConfigMap will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the ConfigMap, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to a path within + a volume. properties: key: + description: key is the key to project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -365,67 +674,150 @@ spec: x-kubernetes-list-type: atomic name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: optional specify whether the ConfigMap + or its keys must be defined type: boolean type: object x-kubernetes-map-type: atomic csi: + description: csi (Container Storage Interface) represents + ephemeral storage that is handled by certain external + CSI drivers (Beta feature). properties: driver: + description: |- + driver is the name of the CSI driver that handles this volume. + Consult with your admin for the correct name as registered in the cluster. type: string fsType: + description: |- + fsType to mount. Ex. "ext4", "xfs", "ntfs". + If not provided, the empty value is passed to the associated CSI driver + which will determine the default filesystem to apply. type: string nodePublishSecretRef: + description: |- + nodePublishSecretRef is a reference to the secret object containing + sensitive information to pass to the CSI driver to complete the CSI + NodePublishVolume and NodeUnpublishVolume calls. + This field is optional, and may be empty if no secret is required. If the + secret object contains more than one secret, all secret references are passed. properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic readOnly: + description: |- + readOnly specifies a read-only configuration for the volume. + Defaults to false (read/write). type: boolean volumeAttributes: additionalProperties: type: string + description: |- + volumeAttributes stores driver-specific properties that are passed to the CSI + driver. Consult your driver's documentation for supported values. type: object required: - driver type: object downwardAPI: + description: downwardAPI represents downward API about + the pod that should populate this volume properties: defaultMode: + description: |- + Optional: mode bits to use on created files by default. Must be a + Optional: mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer items: + description: Items is a list of downward API volume + file items: + description: DownwardAPIVolumeFile represents + information to create the file containing + the pod field properties: fieldRef: + description: 'Required: Selects a field + of the pod: only annotations, labels, + name, namespace and uid are supported.' properties: apiVersion: + description: Version of the schema the + FieldPath is written in terms of, + defaults to "v1". type: string fieldPath: + description: Path of the field to select + in the specified API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic mode: + description: |- + Optional: mode bits used to set permissions on this file, must be an octal value + between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: 'Required: Path is the relative + path name of the file to be created. Must + not be absolute or contain the ''..'' + path. Must be utf-8 encoded. The first + item of the relative path must not start + with ''..''' type: string resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. properties: containerName: + description: 'Container name: required + for volumes, optional for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the output format + of the exposed resources, defaults + to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource to + select' type: string required: - resource @@ -438,78 +830,160 @@ spec: x-kubernetes-list-type: atomic type: object emptyDir: + description: |- + emptyDir represents a temporary directory that shares a pod's lifetime. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir properties: medium: + description: |- + medium represents what type of storage medium should back this directory. + The default is "" which means to use the node's default medium. + Must be an empty string (default) or Memory. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir type: string sizeLimit: anyOf: - type: integer - type: string + description: |- + sizeLimit is the total amount of local storage required for this EmptyDir volume. + The size limit is also applicable for memory medium. + The maximum usage on memory medium EmptyDir would be the minimum value between + the SizeLimit specified here and the sum of memory limits of all containers in a pod. + The default is nil which means that the limit is undefined. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true type: object fc: + description: fc represents a Fibre Channel resource + that is attached to a kubelet's host machine and + then exposed to the pod. properties: fsType: + description: |- + fsType is the filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: string lun: + description: 'lun is Optional: FC target lun number' format: int32 type: integer readOnly: + description: |- + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. type: boolean targetWWNs: + description: 'targetWWNs is Optional: FC target + worldwide names (WWNs)' items: type: string type: array x-kubernetes-list-type: atomic wwids: + description: |- + wwids Optional: FC volume world wide identifiers (wwids) + Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. items: type: string type: array x-kubernetes-list-type: atomic type: object hostPath: + description: |- + Represents a host path mapped into a pod. + Host path volumes do not support ownership management or SELinux relabeling. properties: path: + description: |- + path of the directory on the host. + If the path is a symlink, it will follow the link to the real path. + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath type: string type: + description: |- + type for HostPath Volume + Defaults to "" + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath type: string required: - path type: object iscsi: + description: |- + iscsi represents an ISCSI Disk resource that is attached to a + kubelet's host machine and then exposed to the pod. + More info: https://examples.k8s.io/volumes/iscsi/README.md properties: chapAuthDiscovery: + description: chapAuthDiscovery defines whether + support iSCSI Discovery CHAP authentication type: boolean chapAuthSession: + description: chapAuthSession defines whether support + iSCSI Session CHAP authentication type: boolean fsType: + description: |- + fsType is the filesystem type of the volume that you want to mount. + Tip: Ensure that the filesystem type is supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi type: string initiatorName: + description: |- + initiatorName is the custom iSCSI Initiator Name. + If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface + : will be created for the connection. type: string iqn: + description: iqn is the target iSCSI Qualified + Name. type: string iscsiInterface: default: default + description: |- + iscsiInterface is the interface Name that uses an iSCSI transport. + Defaults to 'default' (tcp). type: string lun: + description: lun represents iSCSI Target Lun number. format: int32 type: integer portals: + description: |- + portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). items: type: string type: array x-kubernetes-list-type: atomic readOnly: + description: |- + readOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. type: boolean secretRef: + description: secretRef is the CHAP Secret for + iSCSI target and initiator authentication properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic targetPortal: + description: |- + targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). type: string required: - iqn @@ -517,48 +991,123 @@ spec: - targetPortal type: object name: + description: Name of the volume type: string nfs: + description: |- + nfs represents an NFS mount on the host that shares a pod's lifetime + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs properties: path: + description: |- + path that is exported by the NFS server. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: string readOnly: + description: |- + readOnly here will force the NFS export to be mounted with read-only permissions. + Defaults to false. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: boolean server: + description: |- + server is the hostname or IP address of the NFS server. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: string required: - path - server type: object persistentVolumeClaim: + description: |- + persistentVolumeClaimVolumeSource represents a reference to a + PersistentVolumeClaim in the same namespace. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims properties: claimName: + description: |- + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims type: string readOnly: + description: |- + readOnly Will force the ReadOnly setting in VolumeMounts. + Default false. type: boolean required: - claimName type: object projected: + description: projected items for all in one resources + secrets, configmaps, and downward API properties: defaultMode: + description: |- + defaultMode are the mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer sources: + description: |- + sources is the list of volume projections. Each entry in this list + handles one source. items: + description: |- + Projection that may be projected along with other supported volume types. + Exactly one of these fields must be set. properties: clusterTrustBundle: + description: |- + ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field + of ClusterTrustBundle objects in an auto-updating file. + + Alpha, gated by the ClusterTrustBundleProjection feature gate. + + ClusterTrustBundle objects can either be selected by name, or by the + combination of signer name and a label selector. + + Kubelet performs aggressive normalization of the PEM contents written + into the pod filesystem. Esoteric PEM features such as inter-block + comments and block headers are stripped. Certificates are deduplicated. + The ordering of certificates within the file is arbitrary, and Kubelet + may change the order over time. properties: labelSelector: + description: |- + Select all ClusterTrustBundles that match this label selector. Only has + effect if signerName is set. Mutually-exclusive with name. If unset, + interpreted as "match nothing". If set but empty, interpreted as "match + everything". 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 @@ -572,31 +1121,76 @@ spec: 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 name: + description: |- + Select a single ClusterTrustBundle by object name. Mutually-exclusive + with signerName and labelSelector. type: string optional: + description: |- + If true, don't block pod startup if the referenced ClusterTrustBundle(s) + aren't available. If using name, then the named ClusterTrustBundle is + allowed not to exist. If using signerName, then the combination of + signerName and labelSelector is allowed to match zero + ClusterTrustBundles. type: boolean path: + description: Relative path from the + volume root to write the bundle. type: string signerName: + description: |- + Select all ClusterTrustBundles that match this signer name. + Mutually-exclusive with name. The contents of all selected + ClusterTrustBundles will be unified and deduplicated. type: string required: - path type: object configMap: + description: configMap information about + the configMap data to project properties: items: + description: |- + items if unspecified, each key-value pair in the Data field of the referenced + ConfigMap will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the ConfigMap, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to + a path within a volume. properties: key: + description: key is the key to + project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -606,42 +1200,94 @@ spec: x-kubernetes-list-type: atomic name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: optional specify whether + the ConfigMap or its keys must be + defined type: boolean type: object x-kubernetes-map-type: atomic downwardAPI: + description: downwardAPI information about + the downwardAPI data to project properties: items: + description: Items is a list of DownwardAPIVolume + file items: + description: DownwardAPIVolumeFile + represents information to create + the file containing the pod field properties: fieldRef: + description: 'Required: Selects + a field of the pod: only annotations, + labels, name, namespace and + uid are supported.' properties: apiVersion: + description: Version of the + schema the FieldPath is + written in terms of, defaults + to "v1". type: string fieldPath: + description: Path of the field + to select in the specified + API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic mode: + description: |- + Optional: mode bits used to set permissions on this file, must be an octal value + between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: 'Required: Path is the + relative path name of the file + to be created. Must not be absolute + or contain the ''..'' path. + Must be utf-8 encoded. The first + item of the relative path must + not start with ''..''' type: string resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. properties: containerName: + description: 'Container name: + required for volumes, optional + for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the + output format of the exposed + resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource + to select' type: string required: - resource @@ -654,16 +1300,42 @@ spec: x-kubernetes-list-type: atomic type: object secret: + description: secret information about the + secret data to project properties: items: + description: |- + items if unspecified, each key-value pair in the Data field of the referenced + Secret will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the Secret, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to + a path within a volume. properties: key: + description: key is the key to + project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -673,19 +1345,46 @@ spec: x-kubernetes-list-type: atomic name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: optional field specify + whether the Secret or its key must + be defined type: boolean type: object x-kubernetes-map-type: atomic serviceAccountToken: + description: serviceAccountToken is information + about the serviceAccountToken data to + project properties: audience: + description: |- + audience is the intended audience of the token. A recipient of a token + must identify itself with an identifier specified in the audience of the + token, and otherwise should reject the token. The audience defaults to the + identifier of the apiserver. type: string expirationSeconds: + description: |- + expirationSeconds is the requested duration of validity of the service + account token. As the token approaches expiration, the kubelet volume + plugin will proactively rotate the service account token. The kubelet will + start trying to rotate the token if the token is older than 80 percent of + its time to live or if the token is older than 24 hours.Defaults to 1 hour + and must be at least 10 minutes. format: int64 type: integer path: + description: |- + path is the path relative to the mount point of the file to project the + token into. type: string required: - path @@ -695,33 +1394,69 @@ spec: x-kubernetes-list-type: atomic type: object scaleIO: + description: scaleIO represents a ScaleIO persistent + volume attached and mounted on Kubernetes nodes. properties: fsType: default: xfs + description: |- + fsType is the filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". + Default is "xfs". type: string gateway: + description: gateway is the host address of the + ScaleIO API Gateway. type: string protectionDomain: + description: protectionDomain is the name of the + ScaleIO Protection Domain for the configured + storage. type: string readOnly: + description: |- + readOnly Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. type: boolean secretRef: + description: |- + secretRef references to the secret for ScaleIO user and other + sensitive information. If this is not provided, Login operation will fail. properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic sslEnabled: + description: sslEnabled Flag enable/disable SSL + communication with Gateway, default false type: boolean storageMode: default: ThinProvisioned + description: |- + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. + Default is ThinProvisioned. type: string storagePool: + description: storagePool is the ScaleIO Storage + Pool associated with the protection domain. type: string system: + description: system is the name of the storage + system as configured in ScaleIO. type: string volumeName: + description: |- + volumeName is the name of a volume already created in the ScaleIO system + that is associated with this volume source. type: string required: - gateway @@ -729,19 +1464,53 @@ spec: - system type: object secret: + description: |- + secret represents a secret that should populate this volume. + More info: https://kubernetes.io/docs/concepts/storage/volumes#secret properties: defaultMode: + description: |- + defaultMode is Optional: mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values + for mode bits. Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer items: + description: |- + items If unspecified, each key-value pair in the Data field of the referenced + Secret will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the Secret, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to a path within + a volume. properties: key: + description: key is the key to project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -750,26 +1519,59 @@ spec: type: array x-kubernetes-list-type: atomic optional: + description: optional field specify whether the + Secret or its keys must be defined type: boolean secretName: + description: |- + secretName is the name of the secret in the pod's namespace to use. + More info: https://kubernetes.io/docs/concepts/storage/volumes#secret type: string type: object storageos: + description: storageOS represents a StorageOS volume + attached and mounted on Kubernetes nodes. properties: fsType: + description: |- + fsType is the filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: string readOnly: + description: |- + readOnly defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. type: boolean secretRef: + description: |- + secretRef specifies the secret to use for obtaining the StorageOS API + credentials. If not specified, default values will be attempted. properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic volumeName: + description: |- + volumeName is the human-readable name of the StorageOS volume. Volume + names are only unique within a namespace. type: string volumeNamespace: + description: |- + volumeNamespace specifies the scope of the volume within StorageOS. If no + namespace is specified then the Pod's namespace will be used. This allows the + Kubernetes name scoping to be mirrored within StorageOS for tighter integration. + Set VolumeName to any name to override the default behaviour. + Set to "default" if you are not using namespaces within StorageOS. + Namespaces that do not pre-exist within StorageOS will be created. type: string type: object required: @@ -783,26 +1585,40 @@ spec: type: array managementNetwork: default: ctlplane + description: ManagementNetwork - Name of network to use for management + (SSH/Ansible) type: string networkData: + description: NetworkData node specific network-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic networks: + description: Networks - Instance networks items: + description: IPSetNetwork Type properties: defaultRoute: + description: Use gateway from subnet as default route. There + can only be one default route defined per IPSet. type: boolean fixedIP: + description: Fixed Ip type: string name: + description: Network Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string subnetName: + description: Subnet Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string required: @@ -811,10 +1627,15 @@ spec: type: object type: array userData: + description: UserData node specific user-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic @@ -823,37 +1644,64 @@ spec: type: object nodes: additionalProperties: + description: NodeSection defines the top level attributes inherited + by nodes in the CR. properties: ansible: + description: Ansible is the group of Ansible related configuration + options. properties: ansibleHost: + description: AnsibleHost SSH host for Ansible connection type: string ansiblePort: + description: AnsiblePort SSH port for Ansible connection type: integer ansibleUser: + description: AnsibleUser SSH user for Ansible connection type: string ansibleVars: + description: AnsibleVars for configuring ansible x-kubernetes-preserve-unknown-fields: true ansibleVarsFrom: + description: |- + AnsibleVarsFrom is a list of sources to populate ansible variables from. + Values defined by an AnsibleVars with a duplicate key take precedence. items: + description: DataSource represents the source of a set + of ConfigMaps/Secrets properties: configMapRef: + description: The ConfigMap to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the ConfigMap must + be defined type: boolean type: object x-kubernetes-map-type: atomic prefix: + description: An optional identifier to prepend to + each key in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: + description: The Secret to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the Secret must be + defined type: boolean type: object x-kubernetes-map-type: atomic @@ -863,32 +1711,51 @@ spec: bmhLabelSelector: additionalProperties: type: string + description: BmhLabelSelector allows for a sub-selection of + BaremetalHosts based on arbitrary labels for a node. type: object ctlplaneInterface: + description: CtlplaneInterface - Interface on the provisioned + nodes to use for ctlplane network type: string hostName: + description: HostName - node name type: string managementNetwork: + description: ManagementNetwork - Name of network to use for + management (SSH/Ansible) type: string networkData: + description: NetworkData node specific network-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic networks: + description: Networks - Instance networks items: + description: IPSetNetwork Type properties: defaultRoute: + description: Use gateway from subnet as default route. + There can only be one default route defined per IPSet. type: boolean fixedIP: + description: Fixed Ip type: string name: + description: Network Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string subnetName: + description: Subnet Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string required: @@ -897,19 +1764,32 @@ spec: type: object type: array userData: + description: UserData node specific user-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic type: object + description: |- + Nodes - Map of Node Names and node specific data. Values here override defaults in the + upper level section. type: object preProvisioned: + description: PreProvisioned - Set to true if the nodes have been Pre + Provisioned. type: boolean secretMaxSize: default: 1048576 + description: |- + SecretMaxSize - Maximum size in bytes of a Kubernetes secret. This size is currently situated around + 1 MiB (nearly 1 MB). type: integer services: default: @@ -929,51 +1809,79 @@ spec: - libvirt - nova - telemetry + description: Services list items: type: string type: array tags: + description: Tags - Additional tags for NodeSet items: type: string type: array tlsEnabled: default: true + description: TLSEnabled - Whether the node set has TLS enabled. type: boolean required: - nodeTemplate - nodes type: object status: + description: OpenStackDataPlaneNodeSetStatus defines the observed state + of OpenStackDataPlaneNodeSet properties: allHostnames: additionalProperties: additionalProperties: type: string type: object + description: AllHostnames type: object allIPs: additionalProperties: additionalProperties: type: string type: object + description: AllIPs type: object bmhRefHash: + description: bmhRefHash - Current hash of the BMHs type: string conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -982,39 +1890,75 @@ spec: type: object type: array configHash: + description: |- + ConfigHash - holds the curret hash of the NodeTemplate and Node sections of the struct. + This hash is used to determine when new Ansible executions are required to roll + out config changes. type: string configMapHashes: additionalProperties: type: string + description: ConfigMapHashes type: object containerImages: additionalProperties: type: string + description: ContainerImages type: object ctlplaneSearchDomain: + description: CtlplaneSearchDomain type: string deployedBmhHash: + description: DeployedBmhHash - Hash of BMHs deployed type: string deployedConfigHash: + description: |- + DeployedConfigHash - holds the hash of the NodeTemplate and Node sections of the struct + that was last deployed. + This hash is used to determine when new Ansible executions are required to roll + out config changes. type: string deployedVersion: + description: DeployedVersion type: string deploymentStatuses: additionalProperties: + description: Conditions provide observations of the operational + state of a API resource. items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, + Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -1022,19 +1966,27 @@ spec: - type type: object type: array + description: DeploymentStatuses type: object dnsClusterAddresses: + description: DNSClusterAddresses items: type: string type: array inventorySecretName: + description: InventorySecretName Name of a secret containing the ansible + inventory type: string observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this NodeSet. If the observed generation is less than the spec + generation, then the controller has not processed the latest changes. format: int64 type: integer secretHashes: additionalProperties: type: string + description: SecretHashes type: object type: object type: object diff --git a/api/bases/dataplane.openstack.org_openstackdataplaneservices.yaml b/api/bases/dataplane.openstack.org_openstackdataplaneservices.yaml index 3892f7142d..d594951dd7 100644 --- a/api/bases/dataplane.openstack.org_openstackdataplaneservices.yaml +++ b/api/bases/dataplane.openstack.org_openstackdataplaneservices.yaml @@ -21,79 +21,189 @@ spec: - name: v1beta1 schema: openAPIV3Schema: + description: |- + OpenStackDataPlaneService defines the Schema for the openstackdataplaneservices API. + OpenStackDataPlaneService name must be a valid RFC1123 as it is used in labels 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: OpenStackDataPlaneServiceSpec defines the desired state of + OpenStackDataPlaneService properties: addCertMounts: default: false + description: AddCertMounts - Whether to add cert mounts type: boolean caCerts: default: combined-ca-bundle + description: CACerts - Secret containing the CA certificate chain maxLength: 253 type: string certsFrom: + description: |- + CertsFrom - Service name used to obtain TLSCert and CACerts data. If both + CertsFrom and either TLSCert or CACerts is set, then those fields take + precedence. + DEPRECATED: Will be removed in a future release. Use EDPMServiceType instead. type: string containerImageFields: + description: |- + ContainerImageFields - list of container image fields names that this + service deploys. The field names should match the + ContainerImages struct field names from + github.com/openstack-k8s-operators/openstack-operator/apis/core/v1beta1 items: type: string type: array dataSources: + description: |- + DataSources list of DataSource objects to mount as ExtraMounts for the + OpenStackAnsibleEE items: + description: DataSource represents the source of a set of ConfigMaps/Secrets properties: configMapRef: + description: The ConfigMap to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the ConfigMap must be defined type: boolean type: object x-kubernetes-map-type: atomic prefix: + description: An optional identifier to prepend to each key in + the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: + description: The Secret to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the Secret must be defined type: boolean type: object x-kubernetes-map-type: atomic type: object type: array deployOnAllNodeSets: + description: |- + DeployOnAllNodeSets - should the service be deploy across all nodesets + This will override default target of a service play, setting it to 'all'. type: boolean edpmServiceType: + description: |- + EDPMServiceType - service type, which typically corresponds to one of + the default service names (such as nova, ovn, etc). Also typically + corresponds to the ansible role name (without the "edpm_" prefix) used + to manage the service. If not set, will default to the + OpenStackDataPlaneService name. type: string openStackAnsibleEERunnerImage: + description: OpenStackAnsibleEERunnerImage image to use as the ansibleEE + runner image type: string playbook: + description: Playbook is a path to the playbook that ansible will + run on this execution type: string playbookContents: + description: PlaybookContents is an inline playbook contents that + ansible will run on execution. type: string role: + description: Role is a path to the role that ansible will run on this + execution type: string tlsCerts: additionalProperties: + description: |- + OpenstackDataPlaneServiceCert defines the property of a TLS cert issued for + a dataplane service properties: contents: + description: |- + Contents of the certificate + This is a list of strings for properties that are needed in the cert items: type: string minItems: 1 type: array edpmRoleServiceName: + description: |- + EDPMRoleServiceName is the value of the _service_name variable from + the edpm-ansible role where this certificate is used. For example if the + certificate is for edpm_ovn from edpm-ansible, EDPMRoleServiceName must be + ovn, which matches the edpm_ovn_service_name variable from the role. If + not set, OpenStackDataPlaneService.Spec.EDPMServiceType is used. If + OpenStackDataPlaneService.Spec.EDPMServiceType is not set, then + OpenStackDataPlaneService.Name is used. + DEPRECATED: Will be removed in a future release. Use EDPMServiceType instead. type: string issuer: + description: |- + Issuer is the label for the issuer to issue the cert + Only one issuer should have this label type: string keyUsages: + description: KeyUsages to be added to the issued cert items: + description: |- + KeyUsage specifies valid usage contexts for keys. + See: + https://tools.ietf.org/html/rfc5280#section-4.2.1.3 + https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + + Valid KeyUsage values are as follows: + "signing", + "digital signature", + "content commitment", + "key encipherment", + "key agreement", + "data encipherment", + "cert sign", + "crl sign", + "encipher only", + "decipher only", + "any", + "server auth", + "client auth", + "code signing", + "email protection", + "s/mime", + "ipsec end system", + "ipsec tunnel", + "ipsec user", + "timestamping", + "ocsp signing", + "microsoft sgc", + "netscape sgc" enum: - signing - digital signature @@ -121,32 +231,57 @@ spec: type: string type: array networks: + description: Networks to include in SNI for the cert items: + description: NetNameStr is used for validation of a net name. pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string type: array required: - contents type: object + description: TLSCerts tls certs to be generated type: object type: object status: + description: OpenStackDataPlaneServiceStatus defines the observed state + of OpenStackDataPlaneService properties: conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime diff --git a/api/bases/operator.openstack.org_openstacks.yaml b/api/bases/operator.openstack.org_openstacks.yaml index 2009dd660b..63f986df99 100644 --- a/api/bases/operator.openstack.org_openstacks.yaml +++ b/api/bases/operator.openstack.org_openstacks.yaml @@ -25,28 +25,67 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: OpenStack defines the Schema for the openstacks API 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: OpenStackSpec defines the desired state of OpenStack properties: operatorOverrides: + description: OperatorOverrides - list of OperatorSpec which allows + to customize operator deployments items: + description: OperatorSpec - customization for the operator deployment properties: controllerManager: + description: ControllerManager - tunings for the controller + manager container properties: resources: + description: |- + Resources - Compute Resources for the service operator controller manager + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ properties: claims: + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, + that are used by this container. + + This is an alpha field and requires enabling the + DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. items: + description: ResourceClaim references one entry in + PodSpec.ResourceClaims. properties: name: + description: |- + Name must match the name of one entry in pod.spec.resourceClaims of + the Pod where this field is used. It makes that resource available + inside a container. type: string request: + description: |- + Request is the name chosen for a request in the referenced claim. + If empty, everything from the claim is made available, otherwise + only the result of this request. type: string required: - name @@ -62,6 +101,9 @@ spec: - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true + description: |- + Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ type: object requests: additionalProperties: @@ -70,10 +112,16 @@ spec: - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true + description: |- + Requests describes the minimum amount of compute resources required. + If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. Requests cannot exceed Limits. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ type: object type: object type: object name: + description: Name of the service operators. enum: - openstack - barbican @@ -101,23 +149,49 @@ spec: minLength: 1 type: string replicas: + description: Replicas of the operator deployment format: int32 maximum: 1 minimum: 0 type: integer tolerations: + description: |- + Tolerations - Tolerations for the service operator deployment pods + https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ items: + description: |- + The pod this Toleration is attached to tolerates any taint that matches + the triple using the matching operator . properties: effect: + description: |- + Effect indicates the taint effect to match. Empty means match all taint effects. + When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. type: string key: + description: |- + Key is the taint key that the toleration applies to. Empty means match all taint keys. + If the key is empty, operator must be Exists; this combination means to match all values and all keys. type: string operator: + description: |- + Operator represents a key's relationship to the value. + Valid operators are Exists and Equal. Defaults to Equal. + Exists is equivalent to wildcard for value, so that a pod can + tolerate all taints of a particular category. type: string tolerationSeconds: + description: |- + TolerationSeconds represents the period of time the toleration (which must be + of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + it is not set, which means tolerate the taint forever (do not evict). Zero and + negative values will be treated as 0 (evict immediately) by the system. format: int64 type: integer value: + description: |- + Value is the taint value the toleration matches to. + If the operator is Exists, the value should be empty, otherwise just a regular string. type: string type: object type: array @@ -130,22 +204,43 @@ spec: x-kubernetes-list-type: map type: object status: + description: OpenStackStatus defines the observed state of OpenStack properties: conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -154,17 +249,27 @@ spec: type: object type: array containerImage: + description: ContainerImage - the container image that has been successfully + deployed type: string deployedOperatorCount: + description: DeployedOperatorCount - the number of operators deployed type: integer disabledOperatorCount: + description: DisabledOperatorCount - the number of operators which + has replicas set to 0 type: integer enabledOperatorCount: + description: EnabledOperatorCount - the number of operators which + has replicas set to 1 type: integer observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this object. format: int64 type: integer totalOperatorCount: + description: TotalOperatorCount - the number all operators available type: integer type: object type: object diff --git a/bindata/crds/crds.yaml b/bindata/crds/crds.yaml index 6dd2ffe236..d3d89d4726 100644 --- a/bindata/crds/crds.yaml +++ b/bindata/crds/crds.yaml @@ -28,75 +28,144 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: OpenStackClient is the Schema for the openstackclients API 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: OpenStackClientSpec defines the desired state of OpenStackClient properties: caBundleSecretName: + description: CaBundleSecretName - holding the CA certs in a pre-created + bundle file type: string containerImage: + description: ContainerImage for the OpenstackClient container (will + be set to environmental default if empty) type: string env: + description: List of environment variables to set in the container. items: + description: EnvVar represents an environment variable present in + a Container. properties: name: + description: Name of the environment variable. Must be a C_IDENTIFIER. type: string value: + description: |- + Variable references $(VAR_NAME) are expanded + using the previously defined environment variables in the container and + any service environment variables. If a variable cannot be resolved, + the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. + "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". + Escaped references will never be expanded, regardless of whether the variable + exists or not. + Defaults to "". type: string valueFrom: + description: Source for the environment variable's value. Cannot + be used if value is not empty. properties: configMapKeyRef: + description: Selects a key of a ConfigMap. properties: key: + description: The key to select. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the ConfigMap or its key + must be defined type: boolean required: - key type: object x-kubernetes-map-type: atomic fieldRef: + description: |- + Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, + spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. properties: apiVersion: + description: Version of the schema the FieldPath is + written in terms of, defaults to "v1". type: string fieldPath: + description: Path of the field to select in the specified + API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. properties: containerName: + description: 'Container name: required for volumes, + optional for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the output format of the exposed + resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource to select' type: string required: - resource type: object x-kubernetes-map-type: atomic secretKeyRef: + description: Selects a key of a secret in the pod's namespace properties: key: + description: The key of the secret to select from. Must + be a valid secret key. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the Secret or its key must + be defined type: boolean required: - key @@ -113,12 +182,17 @@ spec: nodeSelector: additionalProperties: type: string + description: NodeSelector to target subset of worker nodes type: object openStackConfigMap: default: openstack-config + description: OpenStackConfigMap is the name of the ConfigMap containing + the clouds.yaml type: string openStackConfigSecret: default: openstack-config-secret + description: OpenStackConfigSecret is the name of the Secret containing + the secure.yaml type: string required: - containerImage @@ -126,22 +200,43 @@ spec: - openStackConfigSecret type: object status: + description: OpenStackClientStatus defines the observed state of OpenStackClient properties: conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -152,11 +247,15 @@ spec: hash: additionalProperties: type: string + description: Map of hashes to track e.g. pod spec type: object observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this object. format: int64 type: integer podName: + description: PodName type: string type: object type: object @@ -17012,47 +17111,77 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: |- + OpenStackDataPlaneDeployment is the Schema for the openstackdataplanedeployments API + OpenStackDataPlaneDeployment name must be a valid RFC1123 as it is used in labels 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: OpenStackDataPlaneDeploymentSpec defines the desired state + of OpenStackDataPlaneDeployment properties: ansibleExtraVars: + description: AnsibleExtraVars for ansible execution x-kubernetes-preserve-unknown-fields: true ansibleJobNodeSelector: additionalProperties: type: string + description: AnsibleJobNodeSelector to target subset of worker nodes + running the ansible jobs type: object ansibleLimit: + description: AnsibleLimit for ansible execution type: string ansibleSkipTags: + description: AnsibleSkipTags for ansible execution type: string ansibleTags: + description: AnsibleTags for ansible execution type: string backoffLimit: default: 6 + description: BackoffLimit allows to define the maximum number of retried + executions (defaults to 6). format: int32 type: integer deploymentRequeueTime: default: 15 + description: Time before the deployment is requeued in seconds minimum: 1 type: integer nodeSets: + description: NodeSets is the list of NodeSets deployed items: type: string minItems: 1 type: array preserveJobs: default: true + description: |- + PreserveJobs - do not delete jobs after they finished e.g. to check logs + PreserveJobs default: true enum: - true - false type: boolean servicesOverride: + description: ServicesOverride list items: type: string type: array @@ -17064,30 +17193,54 @@ spec: - message: OpenStackDataPlaneDeployment Spec is immutable rule: self == oldSelf status: + description: OpenStackDataPlaneDeploymentStatus defines the observed state + of OpenStackDataPlaneDeployment properties: ansibleEEHashes: additionalProperties: type: string + description: AnsibleEEHashes type: object bmhRefHashes: additionalProperties: type: string + description: BmhRefHashes type: object conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -17098,31 +17251,57 @@ spec: configMapHashes: additionalProperties: type: string + description: ConfigMapHashes type: object containerImages: additionalProperties: type: string + description: ContainerImages type: object deployed: + description: Deployed type: boolean deployedVersion: + description: DeployedVersion type: string nodeSetConditions: additionalProperties: + description: Conditions provide observations of the operational + state of a API resource. items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, + Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -17130,17 +17309,24 @@ spec: - type type: object type: array + description: NodeSetConditions type: object nodeSetHashes: additionalProperties: type: string + description: NodeSetHashes type: object observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this Deployment. If the observed generation is less than the + spec generation, then the controller has not processed the latest + changes. format: int64 type: integer secretHashes: additionalProperties: type: string + description: SecretHashes type: object type: object type: object @@ -17180,23 +17366,50 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: |- + OpenStackDataPlaneNodeSet is the Schema for the openstackdataplanenodesets API + OpenStackDataPlaneNodeSet name must be a valid RFC1123 as it is used in labels 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: OpenStackDataPlaneNodeSetSpec defines the desired state of + OpenStackDataPlaneNodeSet properties: baremetalSetTemplate: + description: BaremetalSetTemplate Template for BaremetalSet for the + NodeSet properties: agentImageUrl: + description: AgentImageURL - Container image URL for the sidecar + container that discovers provisioning network IPs. Ignored when + osImageDeploymentType is PassThrough. type: string apacheImageUrl: + description: ApacheImageURL - Container image URL for the main + container that serves the downloaded OS qcow2 image (osImage). + Ignored when osImageDeploymentType is PassThrough. type: string automatedCleaningMode: default: metadata + description: |- + When set to disabled, automated cleaning will be avoided + during provisioning and deprovisioning. enum: - metadata - disabled @@ -17204,56 +17417,90 @@ spec: bmhLabelSelector: additionalProperties: type: string + description: BmhLabelSelector allows for a sub-selection of BaremetalHosts + based on arbitrary labels type: object bmhNamespace: default: openshift-machine-api + description: 'BmhNamespace Namespace to look for BaremetalHosts(default: + openshift-machine-api)' type: string cloudUserName: default: cloud-admin + description: CloudUser to be configured for remote access type: string ctlplaneBond: + description: CtlplaneBond - Bonding configuration for ctlplane + network properties: bondInterfaces: + description: BondInterfaces - List of physical interfaces + to bond items: type: string minItems: 2 type: array bondMode: default: active-backup + description: BondMode - Bonding mode (e.g., active-backup, + 802.3ad) type: string bondOptions: additionalProperties: type: string + description: BondOptions - Additional bonding options as key-value + pairs type: object required: - bondInterfaces type: object ctlplaneInterface: + description: CtlplaneInterface - Interface on the provisioned + nodes to use for ctlplane network type: string deploymentSSHSecret: + description: DeploymentSSHSecret - Name of secret holding the + cloud-admin ssh keys type: string domainName: + description: 'DomainName is the domain name that will be set on + the underlying Metal3 BaremetalHosts (TODO: acquire this is + another manner?)' type: string hardwareReqs: + description: Hardware requests for sub-selection of BaremetalHosts + with certain hardware specs properties: cpuReqs: + description: CPUReqs defines specific CPU hardware requests properties: arch: + description: |- + Arch is a scalar (string) because it wouldn't make sense to give it an "exact-match" option + Can be either "x86_64" or "ppc64le" if included enum: - x86_64 - ppc64le type: string countReq: + description: CPUCountReq defines a specific hardware request + for CPU core count properties: count: minimum: 1 type: integer exactMatch: + description: If ExactMatch == false, actual count + > Count will match type: boolean type: object mhzReq: + description: CPUMhzReq defines a specific hardware request + for CPU clock speed properties: exactMatch: + description: If ExactMatch == false, actual mhz > + Mhz will match type: boolean mhz: minimum: 1 @@ -17261,28 +17508,44 @@ spec: type: object type: object diskReqs: + description: DiskReqs defines specific disk hardware requests properties: gbReq: + description: DiskGbReq defines a specific hardware request + for disk size properties: exactMatch: + description: If ExactMatch == false, actual GB > Gb + will match type: boolean gb: minimum: 1 type: integer type: object ssdReq: + description: SSD is scalar (bool) because it wouldn't + make sense to give it an "exact-match" option properties: exactMatch: + description: |- + We only actually care about SSD flag if it is true or ExactMatch is set to true. + This second flag is necessary as SSD's bool zero-value (false) is indistinguishable + from it being explicitly set to false type: boolean ssd: type: boolean type: object type: object memReqs: + description: MemReqs defines specific memory hardware requests properties: gbReq: + description: MemGbReq defines a specific hardware request + for memory size properties: exactMatch: + description: If ExactMatch == false, actual GB > Gb + will match type: boolean gb: minimum: 1 @@ -17291,31 +17554,58 @@ spec: type: object type: object osContainerImageUrl: + description: OSContainerImageURL - When osImageDeploymentType + is SelfExtracting, container image URL for init with the OS + qcow2 image (osImage). When osImageDeploymentType is PassThrough + this can be any image URL which the underlying Metal3 instance + supports. type: string osImage: default: edpm-hardened-uefi.qcow2 + description: OSImage - OS qcow2 image Name. Ignored when osImageDeploymentType + is PassThrough. type: string osImageDeploymentType: default: SelfExtracting + description: OSImageDeploymentType - Whether the OS image deployment + is self-extracting or pass-through based enum: - SelfExtracting - PassThrough type: string passwordSecret: + description: |- + PasswordSecret the name of the secret used to optionally set the root pwd by adding + NodeRootPassword: + to the secret data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic provisionServerName: + description: ProvisionServerName - Optional. Existing OpenStackProvisionServer + to use, else one would be created. Ignored when osImageDeploymentType + is PassThrough. type: string provisionServerNodeSelector: additionalProperties: type: string + description: ProvisonServerNodeSelector to target subset of worker + nodes running provision server, ignored when osImageDeploymentType + is PassThrough. type: object provisioningInterface: + description: ProvisioningInterface - Optional. If not provided + along with ProvisionServerName, it would be discovered from + CBO. This is the provisioning interface on the OCP masters/workers. + Ignored when osImageDeploymentType is PassThrough. type: string required: - cloudUserName @@ -17323,61 +17613,115 @@ spec: - deploymentSSHSecret type: object env: + description: |- + Env is a list containing the environment variables to pass to the pod + Variables modifying behavior of AnsibleEE can be specified here. items: + description: EnvVar represents an environment variable present in + a Container. properties: name: + description: Name of the environment variable. Must be a C_IDENTIFIER. type: string value: + description: |- + Variable references $(VAR_NAME) are expanded + using the previously defined environment variables in the container and + any service environment variables. If a variable cannot be resolved, + the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. + "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". + Escaped references will never be expanded, regardless of whether the variable + exists or not. + Defaults to "". type: string valueFrom: + description: Source for the environment variable's value. Cannot + be used if value is not empty. properties: configMapKeyRef: + description: Selects a key of a ConfigMap. properties: key: + description: The key to select. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the ConfigMap or its key + must be defined type: boolean required: - key type: object x-kubernetes-map-type: atomic fieldRef: + description: |- + Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, + spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. properties: apiVersion: + description: Version of the schema the FieldPath is + written in terms of, defaults to "v1". type: string fieldPath: + description: Path of the field to select in the specified + API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. properties: containerName: + description: 'Container name: required for volumes, + optional for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the output format of the exposed + resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource to select' type: string required: - resource type: object x-kubernetes-map-type: atomic secretKeyRef: + description: Selects a key of a secret in the pod's namespace properties: key: + description: The key of the secret to select from. Must + be a valid secret key. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the Secret or its key must + be defined type: boolean required: - key @@ -17389,41 +17733,73 @@ spec: type: object type: array networkAttachments: + description: |- + NetworkAttachments is a list of NetworkAttachment resource names to pass to the ansibleee resource + which allows to connect the ansibleee runner to the given network items: type: string type: array nodeTemplate: + description: |- + NodeTemplate - node attributes specific to nodes defined by this resource. These + attributes can be overriden at the individual node level, else take their defaults + from valus in this section. properties: ansible: + description: Ansible is the group of Ansible related configuration + options. properties: ansibleHost: + description: AnsibleHost SSH host for Ansible connection type: string ansiblePort: + description: AnsiblePort SSH port for Ansible connection type: integer ansibleUser: + description: AnsibleUser SSH user for Ansible connection type: string ansibleVars: + description: AnsibleVars for configuring ansible x-kubernetes-preserve-unknown-fields: true ansibleVarsFrom: + description: |- + AnsibleVarsFrom is a list of sources to populate ansible variables from. + Values defined by an AnsibleVars with a duplicate key take precedence. items: + description: DataSource represents the source of a set of + ConfigMaps/Secrets properties: configMapRef: + description: The ConfigMap to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the ConfigMap must + be defined type: boolean type: object x-kubernetes-map-type: atomic prefix: + description: An optional identifier to prepend to each + key in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: + description: The Secret to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the Secret must be + defined type: boolean type: object x-kubernetes-map-type: atomic @@ -17431,29 +17807,82 @@ spec: type: array type: object ansibleSSHPrivateKeySecret: + description: |- + AnsibleSSHPrivateKeySecret Name of a private SSH key secret containing + private SSH key for connecting to node. + The named secret must be of the form: + Secret.data.ssh-privatekey: + maxLength: 253 type: string extraMounts: + description: ExtraMounts containing files which can be mounted + into an Ansible Execution Pod items: + description: |- + VolMounts is the data structure used to expose Volumes and Mounts that can + be added to a pod according to the defined Propagation policy properties: extraVolType: + description: Label associated to a given extraMount type: string mounts: items: + description: VolumeMount describes a mounting of a Volume + within a container. properties: mountPath: + description: |- + Path within the container at which the volume should be mounted. Must + not contain ':'. type: string mountPropagation: + description: |- + mountPropagation determines how mounts are propagated from the host + to container and the other way around. + When not set, MountPropagationNone is used. + This field is beta in 1.10. + When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified + (which defaults to None). type: string name: + description: This must match the Name of a Volume. type: string readOnly: + description: |- + Mounted read-only if true, read-write otherwise (false or unspecified). + Defaults to false. type: boolean recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled + recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made + recursively read-only. If this field is set to IfPossible, the mount is made + recursively read-only, if it is supported by the container runtime. If this + field is set to Enabled, the mount is made recursively read-only if it is + supported by the container runtime, otherwise the pod will not be started and + an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to + None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. type: string subPath: + description: |- + Path within the volume from which the container's volume should be mounted. + Defaults to "" (volume's root). type: string subPathExpr: + description: |- + Expanded path within the volume from which the container's volume should be mounted. + Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. + Defaults to "" (volume's root). + SubPathExpr and SubPath are mutually exclusive. type: string required: - mountPath @@ -17461,51 +17890,117 @@ spec: type: object type: array propagation: + description: Propagation defines which pod should mount + the volume items: + description: |- + PropagationType identifies the Service, Group or instance (e.g. the backend) that + receives an Extra Volume that can potentially be mounted type: string type: array volumes: items: + description: Volume our slimmed down version of Volume properties: cephfs: + description: cephFS represents a Ceph FS mount on + the host that shares a pod's lifetime properties: monitors: + description: |- + monitors is Required: Monitors is a collection of Ceph monitors + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it items: type: string type: array x-kubernetes-list-type: atomic path: + description: 'path is Optional: Used as the mounted + root, rather than the full Ceph tree, default + is /' type: string readOnly: + description: |- + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it type: boolean secretFile: + description: |- + secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it type: string secretRef: + description: |- + secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic user: + description: |- + user is optional: User is the rados user name, default is admin + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it type: string required: - monitors type: object configMap: + description: configMap represents a configMap that + should populate this volume properties: defaultMode: + description: |- + defaultMode is optional: mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer items: + description: |- + items if unspecified, each key-value pair in the Data field of the referenced + ConfigMap will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the ConfigMap, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to a path within + a volume. properties: key: + description: key is the key to project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -17515,67 +18010,150 @@ spec: x-kubernetes-list-type: atomic name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: optional specify whether the ConfigMap + or its keys must be defined type: boolean type: object x-kubernetes-map-type: atomic csi: + description: csi (Container Storage Interface) represents + ephemeral storage that is handled by certain external + CSI drivers (Beta feature). properties: driver: + description: |- + driver is the name of the CSI driver that handles this volume. + Consult with your admin for the correct name as registered in the cluster. type: string fsType: + description: |- + fsType to mount. Ex. "ext4", "xfs", "ntfs". + If not provided, the empty value is passed to the associated CSI driver + which will determine the default filesystem to apply. type: string nodePublishSecretRef: + description: |- + nodePublishSecretRef is a reference to the secret object containing + sensitive information to pass to the CSI driver to complete the CSI + NodePublishVolume and NodeUnpublishVolume calls. + This field is optional, and may be empty if no secret is required. If the + secret object contains more than one secret, all secret references are passed. properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic readOnly: + description: |- + readOnly specifies a read-only configuration for the volume. + Defaults to false (read/write). type: boolean volumeAttributes: additionalProperties: type: string + description: |- + volumeAttributes stores driver-specific properties that are passed to the CSI + driver. Consult your driver's documentation for supported values. type: object required: - driver type: object downwardAPI: + description: downwardAPI represents downward API about + the pod that should populate this volume properties: defaultMode: + description: |- + Optional: mode bits to use on created files by default. Must be a + Optional: mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer items: + description: Items is a list of downward API volume + file items: + description: DownwardAPIVolumeFile represents + information to create the file containing + the pod field properties: fieldRef: + description: 'Required: Selects a field + of the pod: only annotations, labels, + name, namespace and uid are supported.' properties: apiVersion: + description: Version of the schema the + FieldPath is written in terms of, + defaults to "v1". type: string fieldPath: + description: Path of the field to select + in the specified API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic mode: + description: |- + Optional: mode bits used to set permissions on this file, must be an octal value + between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: 'Required: Path is the relative + path name of the file to be created. Must + not be absolute or contain the ''..'' + path. Must be utf-8 encoded. The first + item of the relative path must not start + with ''..''' type: string resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. properties: containerName: + description: 'Container name: required + for volumes, optional for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the output format + of the exposed resources, defaults + to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource to + select' type: string required: - resource @@ -17588,78 +18166,160 @@ spec: x-kubernetes-list-type: atomic type: object emptyDir: + description: |- + emptyDir represents a temporary directory that shares a pod's lifetime. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir properties: medium: + description: |- + medium represents what type of storage medium should back this directory. + The default is "" which means to use the node's default medium. + Must be an empty string (default) or Memory. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir type: string sizeLimit: anyOf: - type: integer - type: string + description: |- + sizeLimit is the total amount of local storage required for this EmptyDir volume. + The size limit is also applicable for memory medium. + The maximum usage on memory medium EmptyDir would be the minimum value between + the SizeLimit specified here and the sum of memory limits of all containers in a pod. + The default is nil which means that the limit is undefined. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true type: object fc: + description: fc represents a Fibre Channel resource + that is attached to a kubelet's host machine and + then exposed to the pod. properties: fsType: + description: |- + fsType is the filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: string lun: + description: 'lun is Optional: FC target lun number' format: int32 type: integer readOnly: + description: |- + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. type: boolean targetWWNs: + description: 'targetWWNs is Optional: FC target + worldwide names (WWNs)' items: type: string type: array x-kubernetes-list-type: atomic wwids: + description: |- + wwids Optional: FC volume world wide identifiers (wwids) + Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. items: type: string type: array x-kubernetes-list-type: atomic type: object hostPath: + description: |- + Represents a host path mapped into a pod. + Host path volumes do not support ownership management or SELinux relabeling. properties: path: + description: |- + path of the directory on the host. + If the path is a symlink, it will follow the link to the real path. + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath type: string type: + description: |- + type for HostPath Volume + Defaults to "" + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath type: string required: - path type: object iscsi: + description: |- + iscsi represents an ISCSI Disk resource that is attached to a + kubelet's host machine and then exposed to the pod. + More info: https://examples.k8s.io/volumes/iscsi/README.md properties: chapAuthDiscovery: + description: chapAuthDiscovery defines whether + support iSCSI Discovery CHAP authentication type: boolean chapAuthSession: + description: chapAuthSession defines whether support + iSCSI Session CHAP authentication type: boolean fsType: + description: |- + fsType is the filesystem type of the volume that you want to mount. + Tip: Ensure that the filesystem type is supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi type: string initiatorName: + description: |- + initiatorName is the custom iSCSI Initiator Name. + If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface + : will be created for the connection. type: string iqn: + description: iqn is the target iSCSI Qualified + Name. type: string iscsiInterface: default: default + description: |- + iscsiInterface is the interface Name that uses an iSCSI transport. + Defaults to 'default' (tcp). type: string lun: + description: lun represents iSCSI Target Lun number. format: int32 type: integer portals: + description: |- + portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). items: type: string type: array x-kubernetes-list-type: atomic readOnly: + description: |- + readOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. type: boolean secretRef: + description: secretRef is the CHAP Secret for + iSCSI target and initiator authentication properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic targetPortal: + description: |- + targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). type: string required: - iqn @@ -17667,48 +18327,123 @@ spec: - targetPortal type: object name: + description: Name of the volume type: string nfs: + description: |- + nfs represents an NFS mount on the host that shares a pod's lifetime + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs properties: path: + description: |- + path that is exported by the NFS server. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: string readOnly: + description: |- + readOnly here will force the NFS export to be mounted with read-only permissions. + Defaults to false. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: boolean server: + description: |- + server is the hostname or IP address of the NFS server. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: string required: - path - server type: object persistentVolumeClaim: + description: |- + persistentVolumeClaimVolumeSource represents a reference to a + PersistentVolumeClaim in the same namespace. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims properties: claimName: + description: |- + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims type: string readOnly: + description: |- + readOnly Will force the ReadOnly setting in VolumeMounts. + Default false. type: boolean required: - claimName type: object projected: + description: projected items for all in one resources + secrets, configmaps, and downward API properties: defaultMode: + description: |- + defaultMode are the mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer sources: + description: |- + sources is the list of volume projections. Each entry in this list + handles one source. items: + description: |- + Projection that may be projected along with other supported volume types. + Exactly one of these fields must be set. properties: clusterTrustBundle: + description: |- + ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field + of ClusterTrustBundle objects in an auto-updating file. + + Alpha, gated by the ClusterTrustBundleProjection feature gate. + + ClusterTrustBundle objects can either be selected by name, or by the + combination of signer name and a label selector. + + Kubelet performs aggressive normalization of the PEM contents written + into the pod filesystem. Esoteric PEM features such as inter-block + comments and block headers are stripped. Certificates are deduplicated. + The ordering of certificates within the file is arbitrary, and Kubelet + may change the order over time. properties: labelSelector: + description: |- + Select all ClusterTrustBundles that match this label selector. Only has + effect if signerName is set. Mutually-exclusive with name. If unset, + interpreted as "match nothing". If set but empty, interpreted as "match + everything". 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 @@ -17722,31 +18457,76 @@ spec: 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 name: + description: |- + Select a single ClusterTrustBundle by object name. Mutually-exclusive + with signerName and labelSelector. type: string optional: + description: |- + If true, don't block pod startup if the referenced ClusterTrustBundle(s) + aren't available. If using name, then the named ClusterTrustBundle is + allowed not to exist. If using signerName, then the combination of + signerName and labelSelector is allowed to match zero + ClusterTrustBundles. type: boolean path: + description: Relative path from the + volume root to write the bundle. type: string signerName: + description: |- + Select all ClusterTrustBundles that match this signer name. + Mutually-exclusive with name. The contents of all selected + ClusterTrustBundles will be unified and deduplicated. type: string required: - path type: object configMap: + description: configMap information about + the configMap data to project properties: items: + description: |- + items if unspecified, each key-value pair in the Data field of the referenced + ConfigMap will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the ConfigMap, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to + a path within a volume. properties: key: + description: key is the key to + project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -17756,42 +18536,94 @@ spec: x-kubernetes-list-type: atomic name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: optional specify whether + the ConfigMap or its keys must be + defined type: boolean type: object x-kubernetes-map-type: atomic downwardAPI: + description: downwardAPI information about + the downwardAPI data to project properties: items: + description: Items is a list of DownwardAPIVolume + file items: + description: DownwardAPIVolumeFile + represents information to create + the file containing the pod field properties: fieldRef: + description: 'Required: Selects + a field of the pod: only annotations, + labels, name, namespace and + uid are supported.' properties: apiVersion: + description: Version of the + schema the FieldPath is + written in terms of, defaults + to "v1". type: string fieldPath: + description: Path of the field + to select in the specified + API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic mode: + description: |- + Optional: mode bits used to set permissions on this file, must be an octal value + between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: 'Required: Path is the + relative path name of the file + to be created. Must not be absolute + or contain the ''..'' path. + Must be utf-8 encoded. The first + item of the relative path must + not start with ''..''' type: string resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. properties: containerName: + description: 'Container name: + required for volumes, optional + for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the + output format of the exposed + resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource + to select' type: string required: - resource @@ -17804,16 +18636,42 @@ spec: x-kubernetes-list-type: atomic type: object secret: + description: secret information about the + secret data to project properties: items: + description: |- + items if unspecified, each key-value pair in the Data field of the referenced + Secret will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the Secret, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to + a path within a volume. properties: key: + description: key is the key to + project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -17823,19 +18681,46 @@ spec: x-kubernetes-list-type: atomic name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: optional field specify + whether the Secret or its key must + be defined type: boolean type: object x-kubernetes-map-type: atomic serviceAccountToken: + description: serviceAccountToken is information + about the serviceAccountToken data to + project properties: audience: + description: |- + audience is the intended audience of the token. A recipient of a token + must identify itself with an identifier specified in the audience of the + token, and otherwise should reject the token. The audience defaults to the + identifier of the apiserver. type: string expirationSeconds: + description: |- + expirationSeconds is the requested duration of validity of the service + account token. As the token approaches expiration, the kubelet volume + plugin will proactively rotate the service account token. The kubelet will + start trying to rotate the token if the token is older than 80 percent of + its time to live or if the token is older than 24 hours.Defaults to 1 hour + and must be at least 10 minutes. format: int64 type: integer path: + description: |- + path is the path relative to the mount point of the file to project the + token into. type: string required: - path @@ -17845,33 +18730,69 @@ spec: x-kubernetes-list-type: atomic type: object scaleIO: + description: scaleIO represents a ScaleIO persistent + volume attached and mounted on Kubernetes nodes. properties: fsType: default: xfs + description: |- + fsType is the filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". + Default is "xfs". type: string gateway: + description: gateway is the host address of the + ScaleIO API Gateway. type: string protectionDomain: + description: protectionDomain is the name of the + ScaleIO Protection Domain for the configured + storage. type: string readOnly: + description: |- + readOnly Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. type: boolean secretRef: + description: |- + secretRef references to the secret for ScaleIO user and other + sensitive information. If this is not provided, Login operation will fail. properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic sslEnabled: + description: sslEnabled Flag enable/disable SSL + communication with Gateway, default false type: boolean storageMode: default: ThinProvisioned + description: |- + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. + Default is ThinProvisioned. type: string storagePool: + description: storagePool is the ScaleIO Storage + Pool associated with the protection domain. type: string system: + description: system is the name of the storage + system as configured in ScaleIO. type: string volumeName: + description: |- + volumeName is the name of a volume already created in the ScaleIO system + that is associated with this volume source. type: string required: - gateway @@ -17879,19 +18800,53 @@ spec: - system type: object secret: + description: |- + secret represents a secret that should populate this volume. + More info: https://kubernetes.io/docs/concepts/storage/volumes#secret properties: defaultMode: + description: |- + defaultMode is Optional: mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values + for mode bits. Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer items: + description: |- + items If unspecified, each key-value pair in the Data field of the referenced + Secret will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the Secret, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to a path within + a volume. properties: key: + description: key is the key to project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -17900,26 +18855,59 @@ spec: type: array x-kubernetes-list-type: atomic optional: + description: optional field specify whether the + Secret or its keys must be defined type: boolean secretName: + description: |- + secretName is the name of the secret in the pod's namespace to use. + More info: https://kubernetes.io/docs/concepts/storage/volumes#secret type: string type: object storageos: + description: storageOS represents a StorageOS volume + attached and mounted on Kubernetes nodes. properties: fsType: + description: |- + fsType is the filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: string readOnly: + description: |- + readOnly defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. type: boolean secretRef: + description: |- + secretRef specifies the secret to use for obtaining the StorageOS API + credentials. If not specified, default values will be attempted. properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic volumeName: + description: |- + volumeName is the human-readable name of the StorageOS volume. Volume + names are only unique within a namespace. type: string volumeNamespace: + description: |- + volumeNamespace specifies the scope of the volume within StorageOS. If no + namespace is specified then the Pod's namespace will be used. This allows the + Kubernetes name scoping to be mirrored within StorageOS for tighter integration. + Set VolumeName to any name to override the default behaviour. + Set to "default" if you are not using namespaces within StorageOS. + Namespaces that do not pre-exist within StorageOS will be created. type: string type: object required: @@ -17933,26 +18921,40 @@ spec: type: array managementNetwork: default: ctlplane + description: ManagementNetwork - Name of network to use for management + (SSH/Ansible) type: string networkData: + description: NetworkData node specific network-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic networks: + description: Networks - Instance networks items: + description: IPSetNetwork Type properties: defaultRoute: + description: Use gateway from subnet as default route. There + can only be one default route defined per IPSet. type: boolean fixedIP: + description: Fixed Ip type: string name: + description: Network Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string subnetName: + description: Subnet Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string required: @@ -17961,10 +18963,15 @@ spec: type: object type: array userData: + description: UserData node specific user-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic @@ -17973,37 +18980,64 @@ spec: type: object nodes: additionalProperties: + description: NodeSection defines the top level attributes inherited + by nodes in the CR. properties: ansible: + description: Ansible is the group of Ansible related configuration + options. properties: ansibleHost: + description: AnsibleHost SSH host for Ansible connection type: string ansiblePort: + description: AnsiblePort SSH port for Ansible connection type: integer ansibleUser: + description: AnsibleUser SSH user for Ansible connection type: string ansibleVars: + description: AnsibleVars for configuring ansible x-kubernetes-preserve-unknown-fields: true ansibleVarsFrom: + description: |- + AnsibleVarsFrom is a list of sources to populate ansible variables from. + Values defined by an AnsibleVars with a duplicate key take precedence. items: + description: DataSource represents the source of a set + of ConfigMaps/Secrets properties: configMapRef: + description: The ConfigMap to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the ConfigMap must + be defined type: boolean type: object x-kubernetes-map-type: atomic prefix: + description: An optional identifier to prepend to + each key in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: + description: The Secret to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the Secret must be + defined type: boolean type: object x-kubernetes-map-type: atomic @@ -18013,32 +19047,51 @@ spec: bmhLabelSelector: additionalProperties: type: string + description: BmhLabelSelector allows for a sub-selection of + BaremetalHosts based on arbitrary labels for a node. type: object ctlplaneInterface: + description: CtlplaneInterface - Interface on the provisioned + nodes to use for ctlplane network type: string hostName: + description: HostName - node name type: string managementNetwork: + description: ManagementNetwork - Name of network to use for + management (SSH/Ansible) type: string networkData: + description: NetworkData node specific network-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic networks: + description: Networks - Instance networks items: + description: IPSetNetwork Type properties: defaultRoute: + description: Use gateway from subnet as default route. + There can only be one default route defined per IPSet. type: boolean fixedIP: + description: Fixed Ip type: string name: + description: Network Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string subnetName: + description: Subnet Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string required: @@ -18047,19 +19100,32 @@ spec: type: object type: array userData: + description: UserData node specific user-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic type: object + description: |- + Nodes - Map of Node Names and node specific data. Values here override defaults in the + upper level section. type: object preProvisioned: + description: PreProvisioned - Set to true if the nodes have been Pre + Provisioned. type: boolean secretMaxSize: default: 1048576 + description: |- + SecretMaxSize - Maximum size in bytes of a Kubernetes secret. This size is currently situated around + 1 MiB (nearly 1 MB). type: integer services: default: @@ -18079,51 +19145,79 @@ spec: - libvirt - nova - telemetry + description: Services list items: type: string type: array tags: + description: Tags - Additional tags for NodeSet items: type: string type: array tlsEnabled: default: true + description: TLSEnabled - Whether the node set has TLS enabled. type: boolean required: - nodeTemplate - nodes type: object status: + description: OpenStackDataPlaneNodeSetStatus defines the observed state + of OpenStackDataPlaneNodeSet properties: allHostnames: additionalProperties: additionalProperties: type: string type: object + description: AllHostnames type: object allIPs: additionalProperties: additionalProperties: type: string type: object + description: AllIPs type: object bmhRefHash: + description: bmhRefHash - Current hash of the BMHs type: string conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -18132,39 +19226,75 @@ spec: type: object type: array configHash: + description: |- + ConfigHash - holds the curret hash of the NodeTemplate and Node sections of the struct. + This hash is used to determine when new Ansible executions are required to roll + out config changes. type: string configMapHashes: additionalProperties: type: string + description: ConfigMapHashes type: object containerImages: additionalProperties: type: string + description: ContainerImages type: object ctlplaneSearchDomain: + description: CtlplaneSearchDomain type: string deployedBmhHash: + description: DeployedBmhHash - Hash of BMHs deployed type: string deployedConfigHash: + description: |- + DeployedConfigHash - holds the hash of the NodeTemplate and Node sections of the struct + that was last deployed. + This hash is used to determine when new Ansible executions are required to roll + out config changes. type: string deployedVersion: + description: DeployedVersion type: string deploymentStatuses: additionalProperties: + description: Conditions provide observations of the operational + state of a API resource. items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, + Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -18172,19 +19302,27 @@ spec: - type type: object type: array + description: DeploymentStatuses type: object dnsClusterAddresses: + description: DNSClusterAddresses items: type: string type: array inventorySecretName: + description: InventorySecretName Name of a secret containing the ansible + inventory type: string observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this NodeSet. If the observed generation is less than the spec + generation, then the controller has not processed the latest changes. format: int64 type: integer secretHashes: additionalProperties: type: string + description: SecretHashes type: object type: object type: object @@ -18215,79 +19353,189 @@ spec: - name: v1beta1 schema: openAPIV3Schema: + description: |- + OpenStackDataPlaneService defines the Schema for the openstackdataplaneservices API. + OpenStackDataPlaneService name must be a valid RFC1123 as it is used in labels 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: OpenStackDataPlaneServiceSpec defines the desired state of + OpenStackDataPlaneService properties: addCertMounts: default: false + description: AddCertMounts - Whether to add cert mounts type: boolean caCerts: default: combined-ca-bundle + description: CACerts - Secret containing the CA certificate chain maxLength: 253 type: string certsFrom: + description: |- + CertsFrom - Service name used to obtain TLSCert and CACerts data. If both + CertsFrom and either TLSCert or CACerts is set, then those fields take + precedence. + DEPRECATED: Will be removed in a future release. Use EDPMServiceType instead. type: string containerImageFields: + description: |- + ContainerImageFields - list of container image fields names that this + service deploys. The field names should match the + ContainerImages struct field names from + github.com/openstack-k8s-operators/openstack-operator/apis/core/v1beta1 items: type: string type: array dataSources: + description: |- + DataSources list of DataSource objects to mount as ExtraMounts for the + OpenStackAnsibleEE items: + description: DataSource represents the source of a set of ConfigMaps/Secrets properties: configMapRef: + description: The ConfigMap to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the ConfigMap must be defined type: boolean type: object x-kubernetes-map-type: atomic prefix: + description: An optional identifier to prepend to each key in + the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: + description: The Secret to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the Secret must be defined type: boolean type: object x-kubernetes-map-type: atomic type: object type: array deployOnAllNodeSets: + description: |- + DeployOnAllNodeSets - should the service be deploy across all nodesets + This will override default target of a service play, setting it to 'all'. type: boolean edpmServiceType: + description: |- + EDPMServiceType - service type, which typically corresponds to one of + the default service names (such as nova, ovn, etc). Also typically + corresponds to the ansible role name (without the "edpm_" prefix) used + to manage the service. If not set, will default to the + OpenStackDataPlaneService name. type: string openStackAnsibleEERunnerImage: + description: OpenStackAnsibleEERunnerImage image to use as the ansibleEE + runner image type: string playbook: + description: Playbook is a path to the playbook that ansible will + run on this execution type: string playbookContents: + description: PlaybookContents is an inline playbook contents that + ansible will run on execution. type: string role: + description: Role is a path to the role that ansible will run on this + execution type: string tlsCerts: additionalProperties: + description: |- + OpenstackDataPlaneServiceCert defines the property of a TLS cert issued for + a dataplane service properties: contents: + description: |- + Contents of the certificate + This is a list of strings for properties that are needed in the cert items: type: string minItems: 1 type: array edpmRoleServiceName: + description: |- + EDPMRoleServiceName is the value of the _service_name variable from + the edpm-ansible role where this certificate is used. For example if the + certificate is for edpm_ovn from edpm-ansible, EDPMRoleServiceName must be + ovn, which matches the edpm_ovn_service_name variable from the role. If + not set, OpenStackDataPlaneService.Spec.EDPMServiceType is used. If + OpenStackDataPlaneService.Spec.EDPMServiceType is not set, then + OpenStackDataPlaneService.Name is used. + DEPRECATED: Will be removed in a future release. Use EDPMServiceType instead. type: string issuer: + description: |- + Issuer is the label for the issuer to issue the cert + Only one issuer should have this label type: string keyUsages: + description: KeyUsages to be added to the issued cert items: + description: |- + KeyUsage specifies valid usage contexts for keys. + See: + https://tools.ietf.org/html/rfc5280#section-4.2.1.3 + https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + + Valid KeyUsage values are as follows: + "signing", + "digital signature", + "content commitment", + "key encipherment", + "key agreement", + "data encipherment", + "cert sign", + "crl sign", + "encipher only", + "decipher only", + "any", + "server auth", + "client auth", + "code signing", + "email protection", + "s/mime", + "ipsec end system", + "ipsec tunnel", + "ipsec user", + "timestamping", + "ocsp signing", + "microsoft sgc", + "netscape sgc" enum: - signing - digital signature @@ -18315,32 +19563,57 @@ spec: type: string type: array networks: + description: Networks to include in SNI for the cert items: + description: NetNameStr is used for validation of a net name. pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string type: array required: - contents type: object + description: TLSCerts tls certs to be generated type: object type: object status: + description: OpenStackDataPlaneServiceStatus defines the observed state + of OpenStackDataPlaneService properties: conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime diff --git a/config/crd/bases/client.openstack.org_openstackclients.yaml b/config/crd/bases/client.openstack.org_openstackclients.yaml index 865b5c5cc7..5f305cf9e5 100644 --- a/config/crd/bases/client.openstack.org_openstackclients.yaml +++ b/config/crd/bases/client.openstack.org_openstackclients.yaml @@ -29,75 +29,144 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: OpenStackClient is the Schema for the openstackclients API 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: OpenStackClientSpec defines the desired state of OpenStackClient properties: caBundleSecretName: + description: CaBundleSecretName - holding the CA certs in a pre-created + bundle file type: string containerImage: + description: ContainerImage for the OpenstackClient container (will + be set to environmental default if empty) type: string env: + description: List of environment variables to set in the container. items: + description: EnvVar represents an environment variable present in + a Container. properties: name: + description: Name of the environment variable. Must be a C_IDENTIFIER. type: string value: + description: |- + Variable references $(VAR_NAME) are expanded + using the previously defined environment variables in the container and + any service environment variables. If a variable cannot be resolved, + the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. + "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". + Escaped references will never be expanded, regardless of whether the variable + exists or not. + Defaults to "". type: string valueFrom: + description: Source for the environment variable's value. Cannot + be used if value is not empty. properties: configMapKeyRef: + description: Selects a key of a ConfigMap. properties: key: + description: The key to select. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the ConfigMap or its key + must be defined type: boolean required: - key type: object x-kubernetes-map-type: atomic fieldRef: + description: |- + Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, + spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. properties: apiVersion: + description: Version of the schema the FieldPath is + written in terms of, defaults to "v1". type: string fieldPath: + description: Path of the field to select in the specified + API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. properties: containerName: + description: 'Container name: required for volumes, + optional for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the output format of the exposed + resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource to select' type: string required: - resource type: object x-kubernetes-map-type: atomic secretKeyRef: + description: Selects a key of a secret in the pod's namespace properties: key: + description: The key of the secret to select from. Must + be a valid secret key. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the Secret or its key must + be defined type: boolean required: - key @@ -114,12 +183,17 @@ spec: nodeSelector: additionalProperties: type: string + description: NodeSelector to target subset of worker nodes type: object openStackConfigMap: default: openstack-config + description: OpenStackConfigMap is the name of the ConfigMap containing + the clouds.yaml type: string openStackConfigSecret: default: openstack-config-secret + description: OpenStackConfigSecret is the name of the Secret containing + the secure.yaml type: string required: - containerImage @@ -127,22 +201,43 @@ spec: - openStackConfigSecret type: object status: + description: OpenStackClientStatus defines the observed state of OpenStackClient properties: conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -153,11 +248,15 @@ spec: hash: additionalProperties: type: string + description: Map of hashes to track e.g. pod spec type: object observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this object. format: int64 type: integer podName: + description: PodName type: string type: object type: object diff --git a/config/crd/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml b/config/crd/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml index 6dc49de215..b9f4d61bbd 100644 --- a/config/crd/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml +++ b/config/crd/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml @@ -34,47 +34,77 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: |- + OpenStackDataPlaneDeployment is the Schema for the openstackdataplanedeployments API + OpenStackDataPlaneDeployment name must be a valid RFC1123 as it is used in labels 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: OpenStackDataPlaneDeploymentSpec defines the desired state + of OpenStackDataPlaneDeployment properties: ansibleExtraVars: + description: AnsibleExtraVars for ansible execution x-kubernetes-preserve-unknown-fields: true ansibleJobNodeSelector: additionalProperties: type: string + description: AnsibleJobNodeSelector to target subset of worker nodes + running the ansible jobs type: object ansibleLimit: + description: AnsibleLimit for ansible execution type: string ansibleSkipTags: + description: AnsibleSkipTags for ansible execution type: string ansibleTags: + description: AnsibleTags for ansible execution type: string backoffLimit: default: 6 + description: BackoffLimit allows to define the maximum number of retried + executions (defaults to 6). format: int32 type: integer deploymentRequeueTime: default: 15 + description: Time before the deployment is requeued in seconds minimum: 1 type: integer nodeSets: + description: NodeSets is the list of NodeSets deployed items: type: string minItems: 1 type: array preserveJobs: default: true + description: |- + PreserveJobs - do not delete jobs after they finished e.g. to check logs + PreserveJobs default: true enum: - true - false type: boolean servicesOverride: + description: ServicesOverride list items: type: string type: array @@ -86,30 +116,54 @@ spec: - message: OpenStackDataPlaneDeployment Spec is immutable rule: self == oldSelf status: + description: OpenStackDataPlaneDeploymentStatus defines the observed state + of OpenStackDataPlaneDeployment properties: ansibleEEHashes: additionalProperties: type: string + description: AnsibleEEHashes type: object bmhRefHashes: additionalProperties: type: string + description: BmhRefHashes type: object conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -120,31 +174,57 @@ spec: configMapHashes: additionalProperties: type: string + description: ConfigMapHashes type: object containerImages: additionalProperties: type: string + description: ContainerImages type: object deployed: + description: Deployed type: boolean deployedVersion: + description: DeployedVersion type: string nodeSetConditions: additionalProperties: + description: Conditions provide observations of the operational + state of a API resource. items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, + Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -152,17 +232,24 @@ spec: - type type: object type: array + description: NodeSetConditions type: object nodeSetHashes: additionalProperties: type: string + description: NodeSetHashes type: object observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this Deployment. If the observed generation is less than the + spec generation, then the controller has not processed the latest + changes. format: int64 type: integer secretHashes: additionalProperties: type: string + description: SecretHashes type: object type: object type: object diff --git a/config/crd/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml b/config/crd/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml index af51e38eba..5eead87632 100644 --- a/config/crd/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml +++ b/config/crd/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml @@ -30,23 +30,50 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: |- + OpenStackDataPlaneNodeSet is the Schema for the openstackdataplanenodesets API + OpenStackDataPlaneNodeSet name must be a valid RFC1123 as it is used in labels 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: OpenStackDataPlaneNodeSetSpec defines the desired state of + OpenStackDataPlaneNodeSet properties: baremetalSetTemplate: + description: BaremetalSetTemplate Template for BaremetalSet for the + NodeSet properties: agentImageUrl: + description: AgentImageURL - Container image URL for the sidecar + container that discovers provisioning network IPs. Ignored when + osImageDeploymentType is PassThrough. type: string apacheImageUrl: + description: ApacheImageURL - Container image URL for the main + container that serves the downloaded OS qcow2 image (osImage). + Ignored when osImageDeploymentType is PassThrough. type: string automatedCleaningMode: default: metadata + description: |- + When set to disabled, automated cleaning will be avoided + during provisioning and deprovisioning. enum: - metadata - disabled @@ -54,56 +81,90 @@ spec: bmhLabelSelector: additionalProperties: type: string + description: BmhLabelSelector allows for a sub-selection of BaremetalHosts + based on arbitrary labels type: object bmhNamespace: default: openshift-machine-api + description: 'BmhNamespace Namespace to look for BaremetalHosts(default: + openshift-machine-api)' type: string cloudUserName: default: cloud-admin + description: CloudUser to be configured for remote access type: string ctlplaneBond: + description: CtlplaneBond - Bonding configuration for ctlplane + network properties: bondInterfaces: + description: BondInterfaces - List of physical interfaces + to bond items: type: string minItems: 2 type: array bondMode: default: active-backup + description: BondMode - Bonding mode (e.g., active-backup, + 802.3ad) type: string bondOptions: additionalProperties: type: string + description: BondOptions - Additional bonding options as key-value + pairs type: object required: - bondInterfaces type: object ctlplaneInterface: + description: CtlplaneInterface - Interface on the provisioned + nodes to use for ctlplane network type: string deploymentSSHSecret: + description: DeploymentSSHSecret - Name of secret holding the + cloud-admin ssh keys type: string domainName: + description: 'DomainName is the domain name that will be set on + the underlying Metal3 BaremetalHosts (TODO: acquire this is + another manner?)' type: string hardwareReqs: + description: Hardware requests for sub-selection of BaremetalHosts + with certain hardware specs properties: cpuReqs: + description: CPUReqs defines specific CPU hardware requests properties: arch: + description: |- + Arch is a scalar (string) because it wouldn't make sense to give it an "exact-match" option + Can be either "x86_64" or "ppc64le" if included enum: - x86_64 - ppc64le type: string countReq: + description: CPUCountReq defines a specific hardware request + for CPU core count properties: count: minimum: 1 type: integer exactMatch: + description: If ExactMatch == false, actual count + > Count will match type: boolean type: object mhzReq: + description: CPUMhzReq defines a specific hardware request + for CPU clock speed properties: exactMatch: + description: If ExactMatch == false, actual mhz > + Mhz will match type: boolean mhz: minimum: 1 @@ -111,28 +172,44 @@ spec: type: object type: object diskReqs: + description: DiskReqs defines specific disk hardware requests properties: gbReq: + description: DiskGbReq defines a specific hardware request + for disk size properties: exactMatch: + description: If ExactMatch == false, actual GB > Gb + will match type: boolean gb: minimum: 1 type: integer type: object ssdReq: + description: SSD is scalar (bool) because it wouldn't + make sense to give it an "exact-match" option properties: exactMatch: + description: |- + We only actually care about SSD flag if it is true or ExactMatch is set to true. + This second flag is necessary as SSD's bool zero-value (false) is indistinguishable + from it being explicitly set to false type: boolean ssd: type: boolean type: object type: object memReqs: + description: MemReqs defines specific memory hardware requests properties: gbReq: + description: MemGbReq defines a specific hardware request + for memory size properties: exactMatch: + description: If ExactMatch == false, actual GB > Gb + will match type: boolean gb: minimum: 1 @@ -141,31 +218,58 @@ spec: type: object type: object osContainerImageUrl: + description: OSContainerImageURL - When osImageDeploymentType + is SelfExtracting, container image URL for init with the OS + qcow2 image (osImage). When osImageDeploymentType is PassThrough + this can be any image URL which the underlying Metal3 instance + supports. type: string osImage: default: edpm-hardened-uefi.qcow2 + description: OSImage - OS qcow2 image Name. Ignored when osImageDeploymentType + is PassThrough. type: string osImageDeploymentType: default: SelfExtracting + description: OSImageDeploymentType - Whether the OS image deployment + is self-extracting or pass-through based enum: - SelfExtracting - PassThrough type: string passwordSecret: + description: |- + PasswordSecret the name of the secret used to optionally set the root pwd by adding + NodeRootPassword: + to the secret data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic provisionServerName: + description: ProvisionServerName - Optional. Existing OpenStackProvisionServer + to use, else one would be created. Ignored when osImageDeploymentType + is PassThrough. type: string provisionServerNodeSelector: additionalProperties: type: string + description: ProvisonServerNodeSelector to target subset of worker + nodes running provision server, ignored when osImageDeploymentType + is PassThrough. type: object provisioningInterface: + description: ProvisioningInterface - Optional. If not provided + along with ProvisionServerName, it would be discovered from + CBO. This is the provisioning interface on the OCP masters/workers. + Ignored when osImageDeploymentType is PassThrough. type: string required: - cloudUserName @@ -173,61 +277,115 @@ spec: - deploymentSSHSecret type: object env: + description: |- + Env is a list containing the environment variables to pass to the pod + Variables modifying behavior of AnsibleEE can be specified here. items: + description: EnvVar represents an environment variable present in + a Container. properties: name: + description: Name of the environment variable. Must be a C_IDENTIFIER. type: string value: + description: |- + Variable references $(VAR_NAME) are expanded + using the previously defined environment variables in the container and + any service environment variables. If a variable cannot be resolved, + the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. + "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". + Escaped references will never be expanded, regardless of whether the variable + exists or not. + Defaults to "". type: string valueFrom: + description: Source for the environment variable's value. Cannot + be used if value is not empty. properties: configMapKeyRef: + description: Selects a key of a ConfigMap. properties: key: + description: The key to select. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the ConfigMap or its key + must be defined type: boolean required: - key type: object x-kubernetes-map-type: atomic fieldRef: + description: |- + Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, + spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. properties: apiVersion: + description: Version of the schema the FieldPath is + written in terms of, defaults to "v1". type: string fieldPath: + description: Path of the field to select in the specified + API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. properties: containerName: + description: 'Container name: required for volumes, + optional for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the output format of the exposed + resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource to select' type: string required: - resource type: object x-kubernetes-map-type: atomic secretKeyRef: + description: Selects a key of a secret in the pod's namespace properties: key: + description: The key of the secret to select from. Must + be a valid secret key. type: string name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: Specify whether the Secret or its key must + be defined type: boolean required: - key @@ -239,41 +397,73 @@ spec: type: object type: array networkAttachments: + description: |- + NetworkAttachments is a list of NetworkAttachment resource names to pass to the ansibleee resource + which allows to connect the ansibleee runner to the given network items: type: string type: array nodeTemplate: + description: |- + NodeTemplate - node attributes specific to nodes defined by this resource. These + attributes can be overriden at the individual node level, else take their defaults + from valus in this section. properties: ansible: + description: Ansible is the group of Ansible related configuration + options. properties: ansibleHost: + description: AnsibleHost SSH host for Ansible connection type: string ansiblePort: + description: AnsiblePort SSH port for Ansible connection type: integer ansibleUser: + description: AnsibleUser SSH user for Ansible connection type: string ansibleVars: + description: AnsibleVars for configuring ansible x-kubernetes-preserve-unknown-fields: true ansibleVarsFrom: + description: |- + AnsibleVarsFrom is a list of sources to populate ansible variables from. + Values defined by an AnsibleVars with a duplicate key take precedence. items: + description: DataSource represents the source of a set of + ConfigMaps/Secrets properties: configMapRef: + description: The ConfigMap to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the ConfigMap must + be defined type: boolean type: object x-kubernetes-map-type: atomic prefix: + description: An optional identifier to prepend to each + key in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: + description: The Secret to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the Secret must be + defined type: boolean type: object x-kubernetes-map-type: atomic @@ -281,29 +471,82 @@ spec: type: array type: object ansibleSSHPrivateKeySecret: + description: |- + AnsibleSSHPrivateKeySecret Name of a private SSH key secret containing + private SSH key for connecting to node. + The named secret must be of the form: + Secret.data.ssh-privatekey: + maxLength: 253 type: string extraMounts: + description: ExtraMounts containing files which can be mounted + into an Ansible Execution Pod items: + description: |- + VolMounts is the data structure used to expose Volumes and Mounts that can + be added to a pod according to the defined Propagation policy properties: extraVolType: + description: Label associated to a given extraMount type: string mounts: items: + description: VolumeMount describes a mounting of a Volume + within a container. properties: mountPath: + description: |- + Path within the container at which the volume should be mounted. Must + not contain ':'. type: string mountPropagation: + description: |- + mountPropagation determines how mounts are propagated from the host + to container and the other way around. + When not set, MountPropagationNone is used. + This field is beta in 1.10. + When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified + (which defaults to None). type: string name: + description: This must match the Name of a Volume. type: string readOnly: + description: |- + Mounted read-only if true, read-write otherwise (false or unspecified). + Defaults to false. type: boolean recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled + recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made + recursively read-only. If this field is set to IfPossible, the mount is made + recursively read-only, if it is supported by the container runtime. If this + field is set to Enabled, the mount is made recursively read-only if it is + supported by the container runtime, otherwise the pod will not be started and + an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to + None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. type: string subPath: + description: |- + Path within the volume from which the container's volume should be mounted. + Defaults to "" (volume's root). type: string subPathExpr: + description: |- + Expanded path within the volume from which the container's volume should be mounted. + Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. + Defaults to "" (volume's root). + SubPathExpr and SubPath are mutually exclusive. type: string required: - mountPath @@ -311,51 +554,117 @@ spec: type: object type: array propagation: + description: Propagation defines which pod should mount + the volume items: + description: |- + PropagationType identifies the Service, Group or instance (e.g. the backend) that + receives an Extra Volume that can potentially be mounted type: string type: array volumes: items: + description: Volume our slimmed down version of Volume properties: cephfs: + description: cephFS represents a Ceph FS mount on + the host that shares a pod's lifetime properties: monitors: + description: |- + monitors is Required: Monitors is a collection of Ceph monitors + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it items: type: string type: array x-kubernetes-list-type: atomic path: + description: 'path is Optional: Used as the mounted + root, rather than the full Ceph tree, default + is /' type: string readOnly: + description: |- + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it type: boolean secretFile: + description: |- + secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it type: string secretRef: + description: |- + secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic user: + description: |- + user is optional: User is the rados user name, default is admin + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it type: string required: - monitors type: object configMap: + description: configMap represents a configMap that + should populate this volume properties: defaultMode: + description: |- + defaultMode is optional: mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer items: + description: |- + items if unspecified, each key-value pair in the Data field of the referenced + ConfigMap will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the ConfigMap, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to a path within + a volume. properties: key: + description: key is the key to project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -365,67 +674,150 @@ spec: x-kubernetes-list-type: atomic name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: optional specify whether the ConfigMap + or its keys must be defined type: boolean type: object x-kubernetes-map-type: atomic csi: + description: csi (Container Storage Interface) represents + ephemeral storage that is handled by certain external + CSI drivers (Beta feature). properties: driver: + description: |- + driver is the name of the CSI driver that handles this volume. + Consult with your admin for the correct name as registered in the cluster. type: string fsType: + description: |- + fsType to mount. Ex. "ext4", "xfs", "ntfs". + If not provided, the empty value is passed to the associated CSI driver + which will determine the default filesystem to apply. type: string nodePublishSecretRef: + description: |- + nodePublishSecretRef is a reference to the secret object containing + sensitive information to pass to the CSI driver to complete the CSI + NodePublishVolume and NodeUnpublishVolume calls. + This field is optional, and may be empty if no secret is required. If the + secret object contains more than one secret, all secret references are passed. properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic readOnly: + description: |- + readOnly specifies a read-only configuration for the volume. + Defaults to false (read/write). type: boolean volumeAttributes: additionalProperties: type: string + description: |- + volumeAttributes stores driver-specific properties that are passed to the CSI + driver. Consult your driver's documentation for supported values. type: object required: - driver type: object downwardAPI: + description: downwardAPI represents downward API about + the pod that should populate this volume properties: defaultMode: + description: |- + Optional: mode bits to use on created files by default. Must be a + Optional: mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer items: + description: Items is a list of downward API volume + file items: + description: DownwardAPIVolumeFile represents + information to create the file containing + the pod field properties: fieldRef: + description: 'Required: Selects a field + of the pod: only annotations, labels, + name, namespace and uid are supported.' properties: apiVersion: + description: Version of the schema the + FieldPath is written in terms of, + defaults to "v1". type: string fieldPath: + description: Path of the field to select + in the specified API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic mode: + description: |- + Optional: mode bits used to set permissions on this file, must be an octal value + between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: 'Required: Path is the relative + path name of the file to be created. Must + not be absolute or contain the ''..'' + path. Must be utf-8 encoded. The first + item of the relative path must not start + with ''..''' type: string resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. properties: containerName: + description: 'Container name: required + for volumes, optional for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the output format + of the exposed resources, defaults + to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource to + select' type: string required: - resource @@ -438,78 +830,160 @@ spec: x-kubernetes-list-type: atomic type: object emptyDir: + description: |- + emptyDir represents a temporary directory that shares a pod's lifetime. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir properties: medium: + description: |- + medium represents what type of storage medium should back this directory. + The default is "" which means to use the node's default medium. + Must be an empty string (default) or Memory. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir type: string sizeLimit: anyOf: - type: integer - type: string + description: |- + sizeLimit is the total amount of local storage required for this EmptyDir volume. + The size limit is also applicable for memory medium. + The maximum usage on memory medium EmptyDir would be the minimum value between + the SizeLimit specified here and the sum of memory limits of all containers in a pod. + The default is nil which means that the limit is undefined. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true type: object fc: + description: fc represents a Fibre Channel resource + that is attached to a kubelet's host machine and + then exposed to the pod. properties: fsType: + description: |- + fsType is the filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: string lun: + description: 'lun is Optional: FC target lun number' format: int32 type: integer readOnly: + description: |- + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. type: boolean targetWWNs: + description: 'targetWWNs is Optional: FC target + worldwide names (WWNs)' items: type: string type: array x-kubernetes-list-type: atomic wwids: + description: |- + wwids Optional: FC volume world wide identifiers (wwids) + Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. items: type: string type: array x-kubernetes-list-type: atomic type: object hostPath: + description: |- + Represents a host path mapped into a pod. + Host path volumes do not support ownership management or SELinux relabeling. properties: path: + description: |- + path of the directory on the host. + If the path is a symlink, it will follow the link to the real path. + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath type: string type: + description: |- + type for HostPath Volume + Defaults to "" + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath type: string required: - path type: object iscsi: + description: |- + iscsi represents an ISCSI Disk resource that is attached to a + kubelet's host machine and then exposed to the pod. + More info: https://examples.k8s.io/volumes/iscsi/README.md properties: chapAuthDiscovery: + description: chapAuthDiscovery defines whether + support iSCSI Discovery CHAP authentication type: boolean chapAuthSession: + description: chapAuthSession defines whether support + iSCSI Session CHAP authentication type: boolean fsType: + description: |- + fsType is the filesystem type of the volume that you want to mount. + Tip: Ensure that the filesystem type is supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi type: string initiatorName: + description: |- + initiatorName is the custom iSCSI Initiator Name. + If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface + : will be created for the connection. type: string iqn: + description: iqn is the target iSCSI Qualified + Name. type: string iscsiInterface: default: default + description: |- + iscsiInterface is the interface Name that uses an iSCSI transport. + Defaults to 'default' (tcp). type: string lun: + description: lun represents iSCSI Target Lun number. format: int32 type: integer portals: + description: |- + portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). items: type: string type: array x-kubernetes-list-type: atomic readOnly: + description: |- + readOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. type: boolean secretRef: + description: secretRef is the CHAP Secret for + iSCSI target and initiator authentication properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic targetPortal: + description: |- + targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). type: string required: - iqn @@ -517,48 +991,123 @@ spec: - targetPortal type: object name: + description: Name of the volume type: string nfs: + description: |- + nfs represents an NFS mount on the host that shares a pod's lifetime + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs properties: path: + description: |- + path that is exported by the NFS server. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: string readOnly: + description: |- + readOnly here will force the NFS export to be mounted with read-only permissions. + Defaults to false. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: boolean server: + description: |- + server is the hostname or IP address of the NFS server. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: string required: - path - server type: object persistentVolumeClaim: + description: |- + persistentVolumeClaimVolumeSource represents a reference to a + PersistentVolumeClaim in the same namespace. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims properties: claimName: + description: |- + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims type: string readOnly: + description: |- + readOnly Will force the ReadOnly setting in VolumeMounts. + Default false. type: boolean required: - claimName type: object projected: + description: projected items for all in one resources + secrets, configmaps, and downward API properties: defaultMode: + description: |- + defaultMode are the mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer sources: + description: |- + sources is the list of volume projections. Each entry in this list + handles one source. items: + description: |- + Projection that may be projected along with other supported volume types. + Exactly one of these fields must be set. properties: clusterTrustBundle: + description: |- + ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field + of ClusterTrustBundle objects in an auto-updating file. + + Alpha, gated by the ClusterTrustBundleProjection feature gate. + + ClusterTrustBundle objects can either be selected by name, or by the + combination of signer name and a label selector. + + Kubelet performs aggressive normalization of the PEM contents written + into the pod filesystem. Esoteric PEM features such as inter-block + comments and block headers are stripped. Certificates are deduplicated. + The ordering of certificates within the file is arbitrary, and Kubelet + may change the order over time. properties: labelSelector: + description: |- + Select all ClusterTrustBundles that match this label selector. Only has + effect if signerName is set. Mutually-exclusive with name. If unset, + interpreted as "match nothing". If set but empty, interpreted as "match + everything". 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 @@ -572,31 +1121,76 @@ spec: 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 name: + description: |- + Select a single ClusterTrustBundle by object name. Mutually-exclusive + with signerName and labelSelector. type: string optional: + description: |- + If true, don't block pod startup if the referenced ClusterTrustBundle(s) + aren't available. If using name, then the named ClusterTrustBundle is + allowed not to exist. If using signerName, then the combination of + signerName and labelSelector is allowed to match zero + ClusterTrustBundles. type: boolean path: + description: Relative path from the + volume root to write the bundle. type: string signerName: + description: |- + Select all ClusterTrustBundles that match this signer name. + Mutually-exclusive with name. The contents of all selected + ClusterTrustBundles will be unified and deduplicated. type: string required: - path type: object configMap: + description: configMap information about + the configMap data to project properties: items: + description: |- + items if unspecified, each key-value pair in the Data field of the referenced + ConfigMap will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the ConfigMap, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to + a path within a volume. properties: key: + description: key is the key to + project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -606,42 +1200,94 @@ spec: x-kubernetes-list-type: atomic name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: optional specify whether + the ConfigMap or its keys must be + defined type: boolean type: object x-kubernetes-map-type: atomic downwardAPI: + description: downwardAPI information about + the downwardAPI data to project properties: items: + description: Items is a list of DownwardAPIVolume + file items: + description: DownwardAPIVolumeFile + represents information to create + the file containing the pod field properties: fieldRef: + description: 'Required: Selects + a field of the pod: only annotations, + labels, name, namespace and + uid are supported.' properties: apiVersion: + description: Version of the + schema the FieldPath is + written in terms of, defaults + to "v1". type: string fieldPath: + description: Path of the field + to select in the specified + API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic mode: + description: |- + Optional: mode bits used to set permissions on this file, must be an octal value + between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: 'Required: Path is the + relative path name of the file + to be created. Must not be absolute + or contain the ''..'' path. + Must be utf-8 encoded. The first + item of the relative path must + not start with ''..''' type: string resourceFieldRef: + description: |- + Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. properties: containerName: + description: 'Container name: + required for volumes, optional + for env vars' type: string divisor: anyOf: - type: integer - type: string + description: Specifies the + output format of the exposed + resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: + description: 'Required: resource + to select' type: string required: - resource @@ -654,16 +1300,42 @@ spec: x-kubernetes-list-type: atomic type: object secret: + description: secret information about the + secret data to project properties: items: + description: |- + items if unspecified, each key-value pair in the Data field of the referenced + Secret will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the Secret, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to + a path within a volume. properties: key: + description: key is the key to + project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -673,19 +1345,46 @@ spec: x-kubernetes-list-type: atomic name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: + description: optional field specify + whether the Secret or its key must + be defined type: boolean type: object x-kubernetes-map-type: atomic serviceAccountToken: + description: serviceAccountToken is information + about the serviceAccountToken data to + project properties: audience: + description: |- + audience is the intended audience of the token. A recipient of a token + must identify itself with an identifier specified in the audience of the + token, and otherwise should reject the token. The audience defaults to the + identifier of the apiserver. type: string expirationSeconds: + description: |- + expirationSeconds is the requested duration of validity of the service + account token. As the token approaches expiration, the kubelet volume + plugin will proactively rotate the service account token. The kubelet will + start trying to rotate the token if the token is older than 80 percent of + its time to live or if the token is older than 24 hours.Defaults to 1 hour + and must be at least 10 minutes. format: int64 type: integer path: + description: |- + path is the path relative to the mount point of the file to project the + token into. type: string required: - path @@ -695,33 +1394,69 @@ spec: x-kubernetes-list-type: atomic type: object scaleIO: + description: scaleIO represents a ScaleIO persistent + volume attached and mounted on Kubernetes nodes. properties: fsType: default: xfs + description: |- + fsType is the filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". + Default is "xfs". type: string gateway: + description: gateway is the host address of the + ScaleIO API Gateway. type: string protectionDomain: + description: protectionDomain is the name of the + ScaleIO Protection Domain for the configured + storage. type: string readOnly: + description: |- + readOnly Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. type: boolean secretRef: + description: |- + secretRef references to the secret for ScaleIO user and other + sensitive information. If this is not provided, Login operation will fail. properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic sslEnabled: + description: sslEnabled Flag enable/disable SSL + communication with Gateway, default false type: boolean storageMode: default: ThinProvisioned + description: |- + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. + Default is ThinProvisioned. type: string storagePool: + description: storagePool is the ScaleIO Storage + Pool associated with the protection domain. type: string system: + description: system is the name of the storage + system as configured in ScaleIO. type: string volumeName: + description: |- + volumeName is the name of a volume already created in the ScaleIO system + that is associated with this volume source. type: string required: - gateway @@ -729,19 +1464,53 @@ spec: - system type: object secret: + description: |- + secret represents a secret that should populate this volume. + More info: https://kubernetes.io/docs/concepts/storage/volumes#secret properties: defaultMode: + description: |- + defaultMode is Optional: mode bits used to set permissions on created files by default. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values + for mode bits. Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer items: + description: |- + items If unspecified, each key-value pair in the Data field of the referenced + Secret will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the Secret, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. items: + description: Maps a string key to a path within + a volume. properties: key: + description: key is the key to project. type: string mode: + description: |- + mode is Optional: mode bits used to set permissions on this file. + Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. + YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. + If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. format: int32 type: integer path: + description: |- + path is the relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. type: string required: - key @@ -750,26 +1519,59 @@ spec: type: array x-kubernetes-list-type: atomic optional: + description: optional field specify whether the + Secret or its keys must be defined type: boolean secretName: + description: |- + secretName is the name of the secret in the pod's namespace to use. + More info: https://kubernetes.io/docs/concepts/storage/volumes#secret type: string type: object storageos: + description: storageOS represents a StorageOS volume + attached and mounted on Kubernetes nodes. properties: fsType: + description: |- + fsType is the filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: string readOnly: + description: |- + readOnly defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. type: boolean secretRef: + description: |- + secretRef specifies the secret to use for obtaining the StorageOS API + credentials. If not specified, default values will be attempted. properties: name: default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic volumeName: + description: |- + volumeName is the human-readable name of the StorageOS volume. Volume + names are only unique within a namespace. type: string volumeNamespace: + description: |- + volumeNamespace specifies the scope of the volume within StorageOS. If no + namespace is specified then the Pod's namespace will be used. This allows the + Kubernetes name scoping to be mirrored within StorageOS for tighter integration. + Set VolumeName to any name to override the default behaviour. + Set to "default" if you are not using namespaces within StorageOS. + Namespaces that do not pre-exist within StorageOS will be created. type: string type: object required: @@ -783,26 +1585,40 @@ spec: type: array managementNetwork: default: ctlplane + description: ManagementNetwork - Name of network to use for management + (SSH/Ansible) type: string networkData: + description: NetworkData node specific network-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic networks: + description: Networks - Instance networks items: + description: IPSetNetwork Type properties: defaultRoute: + description: Use gateway from subnet as default route. There + can only be one default route defined per IPSet. type: boolean fixedIP: + description: Fixed Ip type: string name: + description: Network Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string subnetName: + description: Subnet Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string required: @@ -811,10 +1627,15 @@ spec: type: object type: array userData: + description: UserData node specific user-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic @@ -823,37 +1644,64 @@ spec: type: object nodes: additionalProperties: + description: NodeSection defines the top level attributes inherited + by nodes in the CR. properties: ansible: + description: Ansible is the group of Ansible related configuration + options. properties: ansibleHost: + description: AnsibleHost SSH host for Ansible connection type: string ansiblePort: + description: AnsiblePort SSH port for Ansible connection type: integer ansibleUser: + description: AnsibleUser SSH user for Ansible connection type: string ansibleVars: + description: AnsibleVars for configuring ansible x-kubernetes-preserve-unknown-fields: true ansibleVarsFrom: + description: |- + AnsibleVarsFrom is a list of sources to populate ansible variables from. + Values defined by an AnsibleVars with a duplicate key take precedence. items: + description: DataSource represents the source of a set + of ConfigMaps/Secrets properties: configMapRef: + description: The ConfigMap to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the ConfigMap must + be defined type: boolean type: object x-kubernetes-map-type: atomic prefix: + description: An optional identifier to prepend to + each key in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: + description: The Secret to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the Secret must be + defined type: boolean type: object x-kubernetes-map-type: atomic @@ -863,32 +1711,51 @@ spec: bmhLabelSelector: additionalProperties: type: string + description: BmhLabelSelector allows for a sub-selection of + BaremetalHosts based on arbitrary labels for a node. type: object ctlplaneInterface: + description: CtlplaneInterface - Interface on the provisioned + nodes to use for ctlplane network type: string hostName: + description: HostName - node name type: string managementNetwork: + description: ManagementNetwork - Name of network to use for + management (SSH/Ansible) type: string networkData: + description: NetworkData node specific network-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic networks: + description: Networks - Instance networks items: + description: IPSetNetwork Type properties: defaultRoute: + description: Use gateway from subnet as default route. + There can only be one default route defined per IPSet. type: boolean fixedIP: + description: Fixed Ip type: string name: + description: Network Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string subnetName: + description: Subnet Name pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string required: @@ -897,19 +1764,32 @@ spec: type: object type: array userData: + description: UserData node specific user-data properties: name: + description: name is unique within a namespace to reference + a secret resource. type: string namespace: + description: namespace defines the space within which the + secret name must be unique. type: string type: object x-kubernetes-map-type: atomic type: object + description: |- + Nodes - Map of Node Names and node specific data. Values here override defaults in the + upper level section. type: object preProvisioned: + description: PreProvisioned - Set to true if the nodes have been Pre + Provisioned. type: boolean secretMaxSize: default: 1048576 + description: |- + SecretMaxSize - Maximum size in bytes of a Kubernetes secret. This size is currently situated around + 1 MiB (nearly 1 MB). type: integer services: default: @@ -929,51 +1809,79 @@ spec: - libvirt - nova - telemetry + description: Services list items: type: string type: array tags: + description: Tags - Additional tags for NodeSet items: type: string type: array tlsEnabled: default: true + description: TLSEnabled - Whether the node set has TLS enabled. type: boolean required: - nodeTemplate - nodes type: object status: + description: OpenStackDataPlaneNodeSetStatus defines the observed state + of OpenStackDataPlaneNodeSet properties: allHostnames: additionalProperties: additionalProperties: type: string type: object + description: AllHostnames type: object allIPs: additionalProperties: additionalProperties: type: string type: object + description: AllIPs type: object bmhRefHash: + description: bmhRefHash - Current hash of the BMHs type: string conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -982,39 +1890,75 @@ spec: type: object type: array configHash: + description: |- + ConfigHash - holds the curret hash of the NodeTemplate and Node sections of the struct. + This hash is used to determine when new Ansible executions are required to roll + out config changes. type: string configMapHashes: additionalProperties: type: string + description: ConfigMapHashes type: object containerImages: additionalProperties: type: string + description: ContainerImages type: object ctlplaneSearchDomain: + description: CtlplaneSearchDomain type: string deployedBmhHash: + description: DeployedBmhHash - Hash of BMHs deployed type: string deployedConfigHash: + description: |- + DeployedConfigHash - holds the hash of the NodeTemplate and Node sections of the struct + that was last deployed. + This hash is used to determine when new Ansible executions are required to roll + out config changes. type: string deployedVersion: + description: DeployedVersion type: string deploymentStatuses: additionalProperties: + description: Conditions provide observations of the operational + state of a API resource. items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, + Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -1022,19 +1966,27 @@ spec: - type type: object type: array + description: DeploymentStatuses type: object dnsClusterAddresses: + description: DNSClusterAddresses items: type: string type: array inventorySecretName: + description: InventorySecretName Name of a secret containing the ansible + inventory type: string observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this NodeSet. If the observed generation is less than the spec + generation, then the controller has not processed the latest changes. format: int64 type: integer secretHashes: additionalProperties: type: string + description: SecretHashes type: object type: object type: object diff --git a/config/crd/bases/dataplane.openstack.org_openstackdataplaneservices.yaml b/config/crd/bases/dataplane.openstack.org_openstackdataplaneservices.yaml index 3892f7142d..d594951dd7 100644 --- a/config/crd/bases/dataplane.openstack.org_openstackdataplaneservices.yaml +++ b/config/crd/bases/dataplane.openstack.org_openstackdataplaneservices.yaml @@ -21,79 +21,189 @@ spec: - name: v1beta1 schema: openAPIV3Schema: + description: |- + OpenStackDataPlaneService defines the Schema for the openstackdataplaneservices API. + OpenStackDataPlaneService name must be a valid RFC1123 as it is used in labels 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: OpenStackDataPlaneServiceSpec defines the desired state of + OpenStackDataPlaneService properties: addCertMounts: default: false + description: AddCertMounts - Whether to add cert mounts type: boolean caCerts: default: combined-ca-bundle + description: CACerts - Secret containing the CA certificate chain maxLength: 253 type: string certsFrom: + description: |- + CertsFrom - Service name used to obtain TLSCert and CACerts data. If both + CertsFrom and either TLSCert or CACerts is set, then those fields take + precedence. + DEPRECATED: Will be removed in a future release. Use EDPMServiceType instead. type: string containerImageFields: + description: |- + ContainerImageFields - list of container image fields names that this + service deploys. The field names should match the + ContainerImages struct field names from + github.com/openstack-k8s-operators/openstack-operator/apis/core/v1beta1 items: type: string type: array dataSources: + description: |- + DataSources list of DataSource objects to mount as ExtraMounts for the + OpenStackAnsibleEE items: + description: DataSource represents the source of a set of ConfigMaps/Secrets properties: configMapRef: + description: The ConfigMap to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the ConfigMap must be defined type: boolean type: object x-kubernetes-map-type: atomic prefix: + description: An optional identifier to prepend to each key in + the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: + description: The Secret to select from properties: name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names maxLength: 253 type: string optional: + description: Specify whether the Secret must be defined type: boolean type: object x-kubernetes-map-type: atomic type: object type: array deployOnAllNodeSets: + description: |- + DeployOnAllNodeSets - should the service be deploy across all nodesets + This will override default target of a service play, setting it to 'all'. type: boolean edpmServiceType: + description: |- + EDPMServiceType - service type, which typically corresponds to one of + the default service names (such as nova, ovn, etc). Also typically + corresponds to the ansible role name (without the "edpm_" prefix) used + to manage the service. If not set, will default to the + OpenStackDataPlaneService name. type: string openStackAnsibleEERunnerImage: + description: OpenStackAnsibleEERunnerImage image to use as the ansibleEE + runner image type: string playbook: + description: Playbook is a path to the playbook that ansible will + run on this execution type: string playbookContents: + description: PlaybookContents is an inline playbook contents that + ansible will run on execution. type: string role: + description: Role is a path to the role that ansible will run on this + execution type: string tlsCerts: additionalProperties: + description: |- + OpenstackDataPlaneServiceCert defines the property of a TLS cert issued for + a dataplane service properties: contents: + description: |- + Contents of the certificate + This is a list of strings for properties that are needed in the cert items: type: string minItems: 1 type: array edpmRoleServiceName: + description: |- + EDPMRoleServiceName is the value of the _service_name variable from + the edpm-ansible role where this certificate is used. For example if the + certificate is for edpm_ovn from edpm-ansible, EDPMRoleServiceName must be + ovn, which matches the edpm_ovn_service_name variable from the role. If + not set, OpenStackDataPlaneService.Spec.EDPMServiceType is used. If + OpenStackDataPlaneService.Spec.EDPMServiceType is not set, then + OpenStackDataPlaneService.Name is used. + DEPRECATED: Will be removed in a future release. Use EDPMServiceType instead. type: string issuer: + description: |- + Issuer is the label for the issuer to issue the cert + Only one issuer should have this label type: string keyUsages: + description: KeyUsages to be added to the issued cert items: + description: |- + KeyUsage specifies valid usage contexts for keys. + See: + https://tools.ietf.org/html/rfc5280#section-4.2.1.3 + https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + + Valid KeyUsage values are as follows: + "signing", + "digital signature", + "content commitment", + "key encipherment", + "key agreement", + "data encipherment", + "cert sign", + "crl sign", + "encipher only", + "decipher only", + "any", + "server auth", + "client auth", + "code signing", + "email protection", + "s/mime", + "ipsec end system", + "ipsec tunnel", + "ipsec user", + "timestamping", + "ocsp signing", + "microsoft sgc", + "netscape sgc" enum: - signing - digital signature @@ -121,32 +231,57 @@ spec: type: string type: array networks: + description: Networks to include in SNI for the cert items: + description: NetNameStr is used for validation of a net name. pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9]$ type: string type: array required: - contents type: object + description: TLSCerts tls certs to be generated type: object type: object status: + description: OpenStackDataPlaneServiceStatus defines the observed state + of OpenStackDataPlaneService properties: conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime diff --git a/config/crd/bases/operator.openstack.org_openstacks.yaml b/config/crd/bases/operator.openstack.org_openstacks.yaml index 2009dd660b..63f986df99 100644 --- a/config/crd/bases/operator.openstack.org_openstacks.yaml +++ b/config/crd/bases/operator.openstack.org_openstacks.yaml @@ -25,28 +25,67 @@ spec: name: v1beta1 schema: openAPIV3Schema: + description: OpenStack defines the Schema for the openstacks API 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: OpenStackSpec defines the desired state of OpenStack properties: operatorOverrides: + description: OperatorOverrides - list of OperatorSpec which allows + to customize operator deployments items: + description: OperatorSpec - customization for the operator deployment properties: controllerManager: + description: ControllerManager - tunings for the controller + manager container properties: resources: + description: |- + Resources - Compute Resources for the service operator controller manager + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ properties: claims: + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, + that are used by this container. + + This is an alpha field and requires enabling the + DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. items: + description: ResourceClaim references one entry in + PodSpec.ResourceClaims. properties: name: + description: |- + Name must match the name of one entry in pod.spec.resourceClaims of + the Pod where this field is used. It makes that resource available + inside a container. type: string request: + description: |- + Request is the name chosen for a request in the referenced claim. + If empty, everything from the claim is made available, otherwise + only the result of this request. type: string required: - name @@ -62,6 +101,9 @@ spec: - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true + description: |- + Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ type: object requests: additionalProperties: @@ -70,10 +112,16 @@ spec: - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true + description: |- + Requests describes the minimum amount of compute resources required. + If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. Requests cannot exceed Limits. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ type: object type: object type: object name: + description: Name of the service operators. enum: - openstack - barbican @@ -101,23 +149,49 @@ spec: minLength: 1 type: string replicas: + description: Replicas of the operator deployment format: int32 maximum: 1 minimum: 0 type: integer tolerations: + description: |- + Tolerations - Tolerations for the service operator deployment pods + https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ items: + description: |- + The pod this Toleration is attached to tolerates any taint that matches + the triple using the matching operator . properties: effect: + description: |- + Effect indicates the taint effect to match. Empty means match all taint effects. + When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. type: string key: + description: |- + Key is the taint key that the toleration applies to. Empty means match all taint keys. + If the key is empty, operator must be Exists; this combination means to match all values and all keys. type: string operator: + description: |- + Operator represents a key's relationship to the value. + Valid operators are Exists and Equal. Defaults to Equal. + Exists is equivalent to wildcard for value, so that a pod can + tolerate all taints of a particular category. type: string tolerationSeconds: + description: |- + TolerationSeconds represents the period of time the toleration (which must be + of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + it is not set, which means tolerate the taint forever (do not evict). Zero and + negative values will be treated as 0 (evict immediately) by the system. format: int64 type: integer value: + description: |- + Value is the taint value the toleration matches to. + If the operator is Exists, the value should be empty, otherwise just a regular string. type: string type: object type: array @@ -130,22 +204,43 @@ spec: x-kubernetes-list-type: map type: object status: + description: OpenStackStatus defines the observed state of OpenStack properties: conditions: + description: Conditions items: + description: Condition defines an observation of a API resource + operational state. properties: lastTransitionTime: + description: |- + Last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when + the API field changed is acceptable. format: date-time type: string message: + description: A human readable message indicating details about + the transition. type: string reason: + description: The reason for the condition's last transition + in CamelCase. type: string severity: + description: |- + Severity provides a classification of Reason code, so the current situation is immediately + understandable and could act accordingly. + It is meant for situations where Status=False and it should be indicated if it is just + informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue + and no actions to automatically resolve the issue can/should be done). + For conditions where Status=Unknown or Status=True the Severity should be SeverityNone. type: string status: + description: Status of the condition, one of True, False, Unknown. type: string type: + description: Type of condition in CamelCase. type: string required: - lastTransitionTime @@ -154,17 +249,27 @@ spec: type: object type: array containerImage: + description: ContainerImage - the container image that has been successfully + deployed type: string deployedOperatorCount: + description: DeployedOperatorCount - the number of operators deployed type: integer disabledOperatorCount: + description: DisabledOperatorCount - the number of operators which + has replicas set to 0 type: integer enabledOperatorCount: + description: EnabledOperatorCount - the number of operators which + has replicas set to 1 type: integer observedGeneration: + description: ObservedGeneration - the most recent generation observed + for this object. format: int64 type: integer totalOperatorCount: + description: TotalOperatorCount - the number all operators available type: integer type: object type: object