diff --git a/api/hypershift/v1beta1/etcdbackup_types.go b/api/hypershift/v1beta1/etcdbackup_types.go
new file mode 100644
index 000000000000..915400537359
--- /dev/null
+++ b/api/hypershift/v1beta1/etcdbackup_types.go
@@ -0,0 +1,366 @@
+package v1beta1
+
+import (
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/apimachinery/pkg/runtime"
+)
+
+func init() {
+ SchemeBuilder.Register(func(scheme *runtime.Scheme) error {
+ scheme.AddKnownTypes(SchemeGroupVersion,
+ &HCPEtcdBackup{},
+ &HCPEtcdBackupList{},
+ )
+ return nil
+ })
+}
+
+// Condition types and reasons for HCPEtcdBackup.
+const (
+ // BackupCompleted indicates whether the etcd backup has completed.
+ BackupCompleted ConditionType = "BackupCompleted"
+
+ BackupSucceededReason string = "BackupSucceeded"
+ BackupFailedReason string = "BackupFailed"
+ BackupAlreadyInProgressReason string = "BackupAlreadyInProgress"
+ EtcdUnhealthyReason string = "EtcdUnhealthy"
+)
+
+// HCPEtcdBackupStorageType is the type of storage for etcd backups.
+// +kubebuilder:validation:Enum=S3;AzureBlob
+type HCPEtcdBackupStorageType string
+
+const (
+ // S3BackupStorage indicates that the backup is stored in AWS S3.
+ S3BackupStorage HCPEtcdBackupStorageType = "S3"
+
+ // AzureBlobBackupStorage indicates that the backup is stored in Azure Blob Storage.
+ AzureBlobBackupStorage HCPEtcdBackupStorageType = "AzureBlob"
+)
+
+// SecretReference contains a reference to a Secret by name.
+// The Secret must exist in the same namespace as the referencing resource.
+type SecretReference struct {
+ // name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+ // 253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+ // Each period-separated segment must start and end with an alphanumeric character.
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=253
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$')",message="name must consist only of lowercase alphanumeric characters, hyphens, and periods. Each period-separated segment must start and end with an alphanumeric character."
+ Name string `json:"name,omitempty"`
+}
+
+// HCPEtcdBackupSpec defines the desired state of HCPEtcdBackup.
+// HCPEtcdBackup is a one-shot backup request; the entire spec is immutable once created.
+// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="HCPEtcdBackupSpec is immutable"
+type HCPEtcdBackupSpec struct {
+ // storage defines the cloud storage backend where the etcd snapshot will be uploaded.
+ // +required
+ Storage HCPEtcdBackupStorage `json:"storage,omitzero"`
+}
+
+// HCPEtcdBackupStorage defines the cloud storage backend configuration for the backup.
+// Exactly one storage backend must be specified, matching the storageType discriminator.
+// +union
+// +kubebuilder:validation:XValidation:rule="self.storageType == 'S3' ? has(self.s3) : !has(self.s3)",message="s3 configuration is required when storageType is S3, and forbidden otherwise"
+// +kubebuilder:validation:XValidation:rule="self.storageType == 'AzureBlob' ? has(self.azureBlob) : !has(self.azureBlob)",message="azureBlob configuration is required when storageType is AzureBlob, and forbidden otherwise"
+type HCPEtcdBackupStorage struct {
+ // storageType specifies the type of cloud storage backend for the etcd backup.
+ // Valid values are "S3" for AWS S3 storage and "AzureBlob" for Azure Blob Storage.
+ // +unionDiscriminator
+ // +required
+ StorageType HCPEtcdBackupStorageType `json:"storageType,omitempty"`
+
+ // s3 specifies the S3 storage configuration for the etcd backup.
+ // Required when storageType is "S3", and forbidden otherwise.
+ // +optional
+ // +unionMember
+ S3 HCPEtcdBackupS3 `json:"s3,omitzero"`
+
+ // azureBlob specifies the Azure Blob storage configuration for the etcd backup.
+ // Required when storageType is "AzureBlob", and forbidden otherwise.
+ // +optional
+ // +unionMember
+ AzureBlob HCPEtcdBackupAzureBlob `json:"azureBlob,omitzero"`
+}
+
+// HCPEtcdBackupS3 defines the S3 storage configuration for etcd backups.
+// +kubebuilder:validation:XValidation:rule="!has(oldSelf.kmsKeyARN) || has(self.kmsKeyARN)",message="kmsKeyARN cannot be removed once set"
+type HCPEtcdBackupS3 struct {
+ // bucket is the name of the S3 bucket where backups are stored.
+ // Must be 3-63 characters, lowercase letters, numbers, hyphens, and periods only.
+ // Must start and end with a letter or number. Consecutive periods are not allowed.
+ // See https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
+ // +required
+ // +kubebuilder:validation:MinLength=3
+ // +kubebuilder:validation:MaxLength=63
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z0-9][a-z0-9.-]*[a-z0-9]$')",message="bucket must consist of lowercase letters, numbers, hyphens, and periods, and must start and end with a letter or number"
+ // +kubebuilder:validation:XValidation:rule="!self.contains('..')",message="bucket must not contain consecutive periods"
+ Bucket string `json:"bucket,omitempty"`
+
+ // region is the AWS region where the S3 bucket is located (e.g. "us-east-1").
+ // Must be a valid AWS region identifier: lowercase letters, digits, and hyphens.
+ // Must start and end with an alphanumeric character, no consecutive hyphens.
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=63
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z][a-z0-9-]*[a-z0-9]$')",message="region must consist of lowercase letters, digits, and hyphens, must start with a letter and end with an alphanumeric character"
+ // +kubebuilder:validation:XValidation:rule="!self.contains('--')",message="region must not contain consecutive hyphens"
+ Region string `json:"region,omitempty"`
+
+ // keyPrefix is the S3 key prefix for the backup file.
+ // Must consist of safe S3 object key characters: alphanumeric characters,
+ // forward slashes, hyphens, underscores, periods, exclamation marks,
+ // asterisks, single quotes, and parentheses.
+ // See https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=1024
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-zA-Z0-9!_.*\\'()/-]+$')",message="keyPrefix must consist of safe S3 key characters: alphanumeric characters, forward slashes, hyphens, underscores, periods, exclamation marks, asterisks, single quotes, and parentheses"
+ KeyPrefix string `json:"keyPrefix,omitempty"`
+
+ // credentials references a Secret containing AWS credentials for uploading
+ // to S3. The Secret must exist in the Hypershift Operator namespace and contain a
+ // 'credentials' key with a valid AWS credentials file.
+ // +required
+ Credentials SecretReference `json:"credentials,omitzero"`
+
+ // kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup.
+ // Must be a valid AWS KMS key ARN in the format
+ // "arn::kms:::key/"
+ // where partition is one of aws, aws-cn, or aws-us-gov.
+ // This field is immutable once set and cannot be removed.
+ // +optional
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=256
+ // +kubebuilder:validation:XValidation:rule="self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')",message="kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)"
+ // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="kmsKeyARN is immutable"
+ KMSKeyARN string `json:"kmsKeyARN,omitempty"`
+}
+
+// HCPEtcdBackupAzureBlob defines the Azure Blob storage configuration for etcd backups.
+// +kubebuilder:validation:XValidation:rule="!has(oldSelf.encryptionKeyURL) || has(self.encryptionKeyURL)",message="encryptionKeyURL cannot be removed once set"
+type HCPEtcdBackupAzureBlob struct {
+ // container is the name of the Azure Blob container where backups are stored.
+ // Must be 3-63 characters, lowercase letters, numbers, and hyphens only.
+ // Must start and end with a letter or number. Consecutive hyphens are not allowed.
+ // See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names
+ // +required
+ // +kubebuilder:validation:MinLength=3
+ // +kubebuilder:validation:MaxLength=63
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$')",message="container must consist of lowercase letters, numbers, and hyphens, and must start and end with a letter or number"
+ // +kubebuilder:validation:XValidation:rule="!self.contains('--')",message="container must not contain consecutive hyphens"
+ Container string `json:"container,omitempty"`
+
+ // storageAccount is the name of the Azure Storage Account.
+ // Must be 3-24 characters, lowercase letters and numbers only.
+ // See https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#storage-account-name
+ // +required
+ // +kubebuilder:validation:MinLength=3
+ // +kubebuilder:validation:MaxLength=24
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z0-9]+$')",message="storageAccount must consist of lowercase letters and numbers only"
+ StorageAccount string `json:"storageAccount,omitempty"`
+
+ // keyPrefix is the blob name prefix for the backup file.
+ // Must consist of valid blob name characters: alphanumeric characters, forward slashes,
+ // hyphens, underscores, and periods.
+ // See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#blob-names
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=1024
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-zA-Z0-9/_.-]+$')",message="keyPrefix must consist of alphanumeric characters, forward slashes, hyphens, underscores, and periods"
+ KeyPrefix string `json:"keyPrefix,omitempty"`
+
+ // credentials references a Secret containing Azure credentials for uploading
+ // to Blob Storage. The Secret must exist in the Hypershift Operator namespace.
+ // +required
+ Credentials SecretReference `json:"credentials,omitzero"`
+
+ // encryptionKeyURL is the URL of the Azure Key Vault key used for encryption.
+ // Must be a valid Azure Key Vault key URL in the format
+ // "https://.vault.azure.net/keys/[/]".
+ // This field is immutable once set and cannot be removed.
+ // +optional
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=512
+ // +kubebuilder:validation:XValidation:rule="isURL(self) && url(self).getScheme() == 'https'",message="encryptionKeyURL must be a valid HTTPS URL"
+ // +kubebuilder:validation:XValidation:rule="url(self).getHostname().matches('[a-zA-Z0-9-]+\\\\.vault\\\\.azure\\\\.net$')",message="encryptionKeyURL must point to an Azure Key Vault (*.vault.azure.net)"
+ // +kubebuilder:validation:XValidation:rule="url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')",message="encryptionKeyURL path must be /keys/ or /keys//"
+ // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="encryptionKeyURL is immutable"
+ EncryptionKeyURL string `json:"encryptionKeyURL,omitempty"`
+}
+
+// HCPEtcdBackupStatus defines the observed state of HCPEtcdBackup.
+// +kubebuilder:validation:MinProperties=1
+type HCPEtcdBackupStatus struct {
+ // conditions contains details for the current state of the etcd backup.
+ // The following condition types are expected:
+ // - "BackupCompleted": indicates whether the etcd backup has completed (True=success, False=failure).
+ // +optional
+ // +listType=map
+ // +listMapKey=type
+ // +kubebuilder:validation:MinItems=1
+ // +kubebuilder:validation:MaxItems=10
+ Conditions []metav1.Condition `json:"conditions,omitempty"`
+
+ // snapshotURL is the URL of the completed backup snapshot in cloud storage.
+ // Must be a valid URL with scheme https or s3.
+ // +optional
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=2048
+ // +kubebuilder:validation:XValidation:rule="isURL(self)",message="snapshotURL must be a valid URL"
+ // +kubebuilder:validation:XValidation:rule="url(self).getScheme() == 'https' || url(self).getScheme() == 's3'",message="snapshotURL scheme must be https or s3"
+ SnapshotURL string `json:"snapshotURL,omitempty"`
+
+ // encryptionMetadata contains metadata about the encryption of the backup.
+ // When present, at least one platform-specific encryption block must be set.
+ // +optional
+ EncryptionMetadata HCPEtcdBackupEncryptionMetadata `json:"encryptionMetadata,omitzero"`
+}
+
+// HCPEtcdBackupEncryptionMetadata contains platform-specific metadata about the
+// encryption applied to the backup artifact in cloud storage.
+// The presence of a platform block indicates that encryption was applied.
+// +kubebuilder:validation:MinProperties=1
+// +kubebuilder:validation:MaxProperties=1
+type HCPEtcdBackupEncryptionMetadata struct {
+ // aws contains AWS-specific encryption metadata for the backup.
+ // +optional
+ AWS HCPEtcdBackupEncryptionMetadataAWS `json:"aws,omitzero"`
+
+ // azure contains Azure-specific encryption metadata for the backup.
+ // +optional
+ Azure HCPEtcdBackupEncryptionMetadataAzure `json:"azure,omitzero"`
+}
+
+// HCPEtcdBackupEncryptionMetadataAWS contains AWS-specific encryption metadata.
+// The values here reflect the encryption settings from the HCPEtcdBackupConfig input.
+type HCPEtcdBackupEncryptionMetadataAWS struct {
+ // kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup in S3.
+ // Must be a valid AWS KMS key ARN in the format
+ // "arn::kms:::key/"
+ // where partition is one of aws, aws-cn, or aws-us-gov.
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=256
+ // +kubebuilder:validation:XValidation:rule="self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')",message="kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)"
+ KMSKeyARN string `json:"kmsKeyARN,omitempty"`
+}
+
+// HCPEtcdBackupEncryptionMetadataAzure contains Azure-specific encryption metadata.
+// The values here reflect the encryption settings from the HCPEtcdBackupConfig input.
+type HCPEtcdBackupEncryptionMetadataAzure struct {
+ // encryptionKeyURL is the URL of the Azure Key Vault key used for encryption of the backup.
+ // Must be a valid Azure Key Vault key URL in the format
+ // "https://.vault.azure.net/keys/[/]".
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=512
+ // +kubebuilder:validation:XValidation:rule="isURL(self) && url(self).getScheme() == 'https'",message="encryptionKeyURL must be a valid HTTPS URL"
+ // +kubebuilder:validation:XValidation:rule="url(self).getHostname().matches('[a-zA-Z0-9-]+\\\\.vault\\\\.azure\\\\.net$')",message="encryptionKeyURL must point to an Azure Key Vault (*.vault.azure.net)"
+ // +kubebuilder:validation:XValidation:rule="url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')",message="encryptionKeyURL path must be /keys/ or /keys//"
+ EncryptionKeyURL string `json:"encryptionKeyURL,omitempty"`
+}
+
+// +genclient
+// +kubebuilder:object:root=true
+// +kubebuilder:resource:path=hcpetcdbackups,scope=Namespaced,shortName=hcpetcdbk
+// +kubebuilder:storageversion
+// +kubebuilder:subresource:status
+// +kubebuilder:printcolumn:name="Completed",type="string",JSONPath=".status.conditions[?(@.type==\"BackupCompleted\")].status",description="Backup completion status"
+// +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".status.snapshotURL",description="Snapshot URL"
+// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
+// +openshift:enable:FeatureGate=HCPEtcdBackup
+
+// HCPEtcdBackup represents a request to back up etcd for a hosted control plane.
+// This resource is feature-gated behind the HCPEtcdBackup feature gate.
+type HCPEtcdBackup struct {
+ metav1.TypeMeta `json:",inline"`
+ // metadata is the metadata for the HCPEtcdBackup.
+ // +optional
+ metav1.ObjectMeta `json:"metadata,omitempty"`
+ // spec is the specification for the HCPEtcdBackup.
+ // +required
+ Spec HCPEtcdBackupSpec `json:"spec,omitzero"`
+ // status is the status of the HCPEtcdBackup.
+ // +optional
+ Status HCPEtcdBackupStatus `json:"status,omitzero"`
+}
+
+// HCPEtcdBackupList contains a list of HCPEtcdBackup.
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+type HCPEtcdBackupList struct {
+ metav1.TypeMeta `json:",inline"`
+ // metadata is standard list metadata.
+ // +optional
+ metav1.ListMeta `json:"metadata,omitempty"`
+ // items is the list of HCPEtcdBackups.
+ // +required
+ Items []HCPEtcdBackup `json:"items,omitempty"`
+}
+
+// HCPEtcdBackupConfigPlatform identifies the cloud platform for backup encryption configuration.
+// +kubebuilder:validation:Enum=AWS;Azure
+type HCPEtcdBackupConfigPlatform string
+
+const (
+ // AWSBackupConfigPlatform indicates AWS KMS encryption for backup artifacts.
+ AWSBackupConfigPlatform HCPEtcdBackupConfigPlatform = "AWS"
+
+ // AzureBackupConfigPlatform indicates Azure Key Vault encryption for backup artifacts.
+ AzureBackupConfigPlatform HCPEtcdBackupConfigPlatform = "Azure"
+)
+
+// HCPEtcdBackupConfig defines the backup encryption configuration that is propagated
+// from the HostedCluster to the HostedControlPlane via ManagedEtcdSpec.
+// Exactly one platform-specific block must be specified, matching the platform discriminator.
+// +union
+// +kubebuilder:validation:XValidation:rule="self.platform == 'AWS' ? has(self.aws) : !has(self.aws)",message="aws configuration is required when platform is AWS, and forbidden otherwise"
+// +kubebuilder:validation:XValidation:rule="self.platform == 'Azure' ? has(self.azure) : !has(self.azure)",message="azure configuration is required when platform is Azure, and forbidden otherwise"
+type HCPEtcdBackupConfig struct {
+ // platform specifies the cloud platform for backup encryption configuration.
+ // Valid values are "AWS" for AWS KMS encryption and "Azure" for Azure Key Vault encryption.
+ // +unionDiscriminator
+ // +required
+ Platform HCPEtcdBackupConfigPlatform `json:"platform,omitempty"`
+
+ // aws contains AWS-specific backup encryption configuration.
+ // Required when platform is "AWS", and forbidden otherwise.
+ // +optional
+ // +unionMember
+ AWS HCPEtcdBackupConfigAWS `json:"aws,omitzero"`
+
+ // azure contains Azure-specific backup encryption configuration.
+ // Required when platform is "Azure", and forbidden otherwise.
+ // +optional
+ // +unionMember
+ Azure HCPEtcdBackupConfigAzure `json:"azure,omitzero"`
+}
+
+// HCPEtcdBackupConfigAWS defines AWS-specific encryption settings for etcd backups.
+type HCPEtcdBackupConfigAWS struct {
+ // kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+ // Must be a valid AWS KMS key ARN in the format
+ // "arn::kms:::key/"
+ // where partition is one of aws, aws-cn, or aws-us-gov.
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=256
+ // +kubebuilder:validation:XValidation:rule="self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')",message="kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)"
+ KMSKeyARN string `json:"kmsKeyARN,omitempty"`
+}
+
+// HCPEtcdBackupConfigAzure defines Azure-specific encryption settings for etcd backups.
+type HCPEtcdBackupConfigAzure struct {
+ // encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+ // Must be a valid Azure Key Vault key URL in the format
+ // "https://.vault.azure.net/keys/[/]".
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=512
+ // +kubebuilder:validation:XValidation:rule="isURL(self) && url(self).getScheme() == 'https'",message="encryptionKeyURL must be a valid HTTPS URL"
+ // +kubebuilder:validation:XValidation:rule="url(self).getHostname().matches('[a-zA-Z0-9-]+\\\\.vault\\\\.azure\\\\.net$')",message="encryptionKeyURL must point to an Azure Key Vault (*.vault.azure.net)"
+ // +kubebuilder:validation:XValidation:rule="url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')",message="encryptionKeyURL path must be /keys/ or /keys//"
+ EncryptionKeyURL string `json:"encryptionKeyURL,omitempty"`
+}
diff --git a/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-Default.yaml b/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-Default.yaml
index 46496a82ea6a..dafa030ea845 100644
--- a/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-Default.yaml
+++ b/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-Default.yaml
@@ -32,6 +32,9 @@
},
{
"name": "GCPPlatform"
+ },
+ {
+ "name": "HCPEtcdBackup"
}
],
"enabled": [
diff --git a/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml b/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml
index e6b9829665fd..3fd33ceac830 100644
--- a/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml
+++ b/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml
@@ -42,6 +42,9 @@
},
{
"name": "GCPPlatform"
+ },
+ {
+ "name": "HCPEtcdBackup"
}
],
"version": ""
diff --git a/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-Default.yaml b/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-Default.yaml
index c01e9915886e..84bf5a8e1d73 100644
--- a/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-Default.yaml
+++ b/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-Default.yaml
@@ -32,6 +32,9 @@
},
{
"name": "GCPPlatform"
+ },
+ {
+ "name": "HCPEtcdBackup"
}
],
"enabled": [
diff --git a/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml b/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml
index cea5c43cb51b..479143480aa2 100644
--- a/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml
+++ b/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml
@@ -42,6 +42,9 @@
},
{
"name": "GCPPlatform"
+ },
+ {
+ "name": "HCPEtcdBackup"
}
],
"version": ""
diff --git a/api/hypershift/v1beta1/hostedcluster_types.go b/api/hypershift/v1beta1/hostedcluster_types.go
index 92e1852fb2ca..a32b846952be 100644
--- a/api/hypershift/v1beta1/hostedcluster_types.go
+++ b/api/hypershift/v1beta1/hostedcluster_types.go
@@ -1885,6 +1885,13 @@ type ManagedEtcdSpec struct {
// storage specifies how etcd data is persisted.
// +required
Storage ManagedEtcdStorageSpec `json:"storage"`
+
+ // backup defines the backup configuration for managed etcd, including
+ // optional KMS key settings for artifact encryption in cloud storage.
+ // This configuration is only used when an HCPEtcdBackup CR exists.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPEtcdBackup
+ Backup HCPEtcdBackupConfig `json:"backup,omitzero"`
}
// ManagedEtcdStorageType is a storage type for an etcd cluster.
diff --git a/api/hypershift/v1beta1/zz_generated.deepcopy.go b/api/hypershift/v1beta1/zz_generated.deepcopy.go
index c1d7cc029c95..404f1ad6cef5 100644
--- a/api/hypershift/v1beta1/zz_generated.deepcopy.go
+++ b/api/hypershift/v1beta1/zz_generated.deepcopy.go
@@ -1822,6 +1822,247 @@ func (in *GCPWorkloadIdentityConfig) DeepCopy() *GCPWorkloadIdentityConfig {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackup) DeepCopyInto(out *HCPEtcdBackup) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ out.Spec = in.Spec
+ in.Status.DeepCopyInto(&out.Status)
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackup.
+func (in *HCPEtcdBackup) DeepCopy() *HCPEtcdBackup {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackup)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *HCPEtcdBackup) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupAzureBlob) DeepCopyInto(out *HCPEtcdBackupAzureBlob) {
+ *out = *in
+ out.Credentials = in.Credentials
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupAzureBlob.
+func (in *HCPEtcdBackupAzureBlob) DeepCopy() *HCPEtcdBackupAzureBlob {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupAzureBlob)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupConfig) DeepCopyInto(out *HCPEtcdBackupConfig) {
+ *out = *in
+ out.AWS = in.AWS
+ out.Azure = in.Azure
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupConfig.
+func (in *HCPEtcdBackupConfig) DeepCopy() *HCPEtcdBackupConfig {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupConfig)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupConfigAWS) DeepCopyInto(out *HCPEtcdBackupConfigAWS) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupConfigAWS.
+func (in *HCPEtcdBackupConfigAWS) DeepCopy() *HCPEtcdBackupConfigAWS {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupConfigAWS)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupConfigAzure) DeepCopyInto(out *HCPEtcdBackupConfigAzure) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupConfigAzure.
+func (in *HCPEtcdBackupConfigAzure) DeepCopy() *HCPEtcdBackupConfigAzure {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupConfigAzure)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupEncryptionMetadata) DeepCopyInto(out *HCPEtcdBackupEncryptionMetadata) {
+ *out = *in
+ out.AWS = in.AWS
+ out.Azure = in.Azure
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupEncryptionMetadata.
+func (in *HCPEtcdBackupEncryptionMetadata) DeepCopy() *HCPEtcdBackupEncryptionMetadata {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupEncryptionMetadata)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupEncryptionMetadataAWS) DeepCopyInto(out *HCPEtcdBackupEncryptionMetadataAWS) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupEncryptionMetadataAWS.
+func (in *HCPEtcdBackupEncryptionMetadataAWS) DeepCopy() *HCPEtcdBackupEncryptionMetadataAWS {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupEncryptionMetadataAWS)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupEncryptionMetadataAzure) DeepCopyInto(out *HCPEtcdBackupEncryptionMetadataAzure) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupEncryptionMetadataAzure.
+func (in *HCPEtcdBackupEncryptionMetadataAzure) DeepCopy() *HCPEtcdBackupEncryptionMetadataAzure {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupEncryptionMetadataAzure)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupList) DeepCopyInto(out *HCPEtcdBackupList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]HCPEtcdBackup, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupList.
+func (in *HCPEtcdBackupList) DeepCopy() *HCPEtcdBackupList {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *HCPEtcdBackupList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupS3) DeepCopyInto(out *HCPEtcdBackupS3) {
+ *out = *in
+ out.Credentials = in.Credentials
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupS3.
+func (in *HCPEtcdBackupS3) DeepCopy() *HCPEtcdBackupS3 {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupS3)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupSpec) DeepCopyInto(out *HCPEtcdBackupSpec) {
+ *out = *in
+ out.Storage = in.Storage
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupSpec.
+func (in *HCPEtcdBackupSpec) DeepCopy() *HCPEtcdBackupSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupStatus) DeepCopyInto(out *HCPEtcdBackupStatus) {
+ *out = *in
+ if in.Conditions != nil {
+ in, out := &in.Conditions, &out.Conditions
+ *out = make([]v1.Condition, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ out.EncryptionMetadata = in.EncryptionMetadata
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupStatus.
+func (in *HCPEtcdBackupStatus) DeepCopy() *HCPEtcdBackupStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupStorage) DeepCopyInto(out *HCPEtcdBackupStorage) {
+ *out = *in
+ out.S3 = in.S3
+ out.AzureBlob = in.AzureBlob
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupStorage.
+func (in *HCPEtcdBackupStorage) DeepCopy() *HCPEtcdBackupStorage {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupStorage)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *HostedCluster) DeepCopyInto(out *HostedCluster) {
*out = *in
@@ -2950,6 +3191,7 @@ func (in *ManagedAzureKeyVault) DeepCopy() *ManagedAzureKeyVault {
func (in *ManagedEtcdSpec) DeepCopyInto(out *ManagedEtcdSpec) {
*out = *in
in.Storage.DeepCopyInto(&out.Storage)
+ out.Backup = in.Backup
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedEtcdSpec.
@@ -3945,6 +4187,21 @@ func (in *SecretEncryptionSpec) DeepCopy() *SecretEncryptionSpec {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *SecretReference) DeepCopyInto(out *SecretReference) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.
+func (in *SecretReference) DeepCopy() *SecretReference {
+ if in == nil {
+ return nil
+ }
+ out := new(SecretReference)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServiceNetworkEntry) DeepCopyInto(out *ServiceNetworkEntry) {
*out = *in
diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml
index db8ddc7b22e1..55961c584029 100644
--- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml
+++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml
@@ -125,6 +125,41 @@ gcpprivateserviceconnects.hypershift.openshift.io:
- GCPPlatform
Version: v1beta1
+hcpetcdbackups.hypershift.openshift.io:
+ Annotations: {}
+ ApprovedPRNumber: ""
+ CRDName: hcpetcdbackups.hypershift.openshift.io
+ Capability: ""
+ Category: ""
+ FeatureGates:
+ - HCPEtcdBackup
+ FilenameOperatorName: ""
+ FilenameOperatorOrdering: ""
+ FilenameRunLevel: ""
+ GroupName: hypershift.openshift.io
+ HasStatus: true
+ KindName: HCPEtcdBackup
+ Labels: {}
+ PluralName: hcpetcdbackups
+ PrinterColumns:
+ - description: Backup completion status
+ jsonPath: .status.conditions[?(@.type=="BackupCompleted")].status
+ name: Completed
+ type: string
+ - description: Snapshot URL
+ jsonPath: .status.snapshotURL
+ name: URL
+ type: string
+ - jsonPath: .metadata.creationTimestamp
+ name: Age
+ type: date
+ Scope: Namespaced
+ ShortNames:
+ - hcpetcdbk
+ TopLevelFeatureGates:
+ - HCPEtcdBackup
+ Version: v1beta1
+
hostedclusters.hypershift.openshift.io:
Annotations: {}
ApprovedPRNumber: ""
@@ -139,6 +174,7 @@ hostedclusters.hypershift.openshift.io:
- ExternalOIDCWithUIDAndExtraClaimMappings
- ExternalOIDCWithUpstreamParity
- GCPPlatform
+ - HCPEtcdBackup
- HyperShiftOnlyDynamicResourceAllocation
- ImageStreamImportMode
- KMSEncryptionProvider
@@ -198,6 +234,7 @@ hostedcontrolplanes.hypershift.openshift.io:
- ExternalOIDCWithUIDAndExtraClaimMappings
- ExternalOIDCWithUpstreamParity
- GCPPlatform
+ - HCPEtcdBackup
- HyperShiftOnlyDynamicResourceAllocation
- ImageStreamImportMode
- KMSEncryptionProvider
diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hcpetcdbackups.hypershift.openshift.io/HCPEtcdBackup.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hcpetcdbackups.hypershift.openshift.io/HCPEtcdBackup.yaml
new file mode 100644
index 000000000000..4b04cd79d9be
--- /dev/null
+++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hcpetcdbackups.hypershift.openshift.io/HCPEtcdBackup.yaml
@@ -0,0 +1,419 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ feature-gate.release.openshift.io/HCPEtcdBackup: "true"
+ name: hcpetcdbackups.hypershift.openshift.io
+spec:
+ group: hypershift.openshift.io
+ names:
+ kind: HCPEtcdBackup
+ listKind: HCPEtcdBackupList
+ plural: hcpetcdbackups
+ shortNames:
+ - hcpetcdbk
+ singular: hcpetcdbackup
+ scope: Namespaced
+ versions:
+ - additionalPrinterColumns:
+ - description: Backup completion status
+ jsonPath: .status.conditions[?(@.type=="BackupCompleted")].status
+ name: Completed
+ type: string
+ - description: Snapshot URL
+ jsonPath: .status.snapshotURL
+ name: URL
+ type: string
+ - jsonPath: .metadata.creationTimestamp
+ name: Age
+ type: date
+ name: v1beta1
+ schema:
+ openAPIV3Schema:
+ description: |-
+ HCPEtcdBackup represents a request to back up etcd for a hosted control plane.
+ This resource is feature-gated behind the HCPEtcdBackup feature gate.
+ properties:
+ apiVersion:
+ description: |-
+ APIVersion defines the versioned schema of this representation of an object.
+ Servers should convert recognized schemas to the latest internal value, and
+ may reject unrecognized values.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |-
+ Kind is a string value representing the REST resource this object represents.
+ Servers may infer this from the endpoint the client submits requests to.
+ Cannot be updated.
+ In CamelCase.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: spec is the specification for the HCPEtcdBackup.
+ properties:
+ storage:
+ description: storage defines the cloud storage backend where the etcd
+ snapshot will be uploaded.
+ properties:
+ azureBlob:
+ description: |-
+ azureBlob specifies the Azure Blob storage configuration for the etcd backup.
+ Required when storageType is "AzureBlob", and forbidden otherwise.
+ properties:
+ container:
+ description: |-
+ container is the name of the Azure Blob container where backups are stored.
+ Must be 3-63 characters, lowercase letters, numbers, and hyphens only.
+ Must start and end with a letter or number. Consecutive hyphens are not allowed.
+ See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names
+ maxLength: 63
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: container must consist of lowercase letters, numbers,
+ and hyphens, and must start and end with a letter or number
+ rule: self.matches('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$')
+ - message: container must not contain consecutive hyphens
+ rule: '!self.contains(''--'')'
+ credentials:
+ description: |-
+ credentials references a Secret containing Azure credentials for uploading
+ to Blob Storage. The Secret must exist in the Hypershift Operator namespace.
+ properties:
+ name:
+ description: |-
+ name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+ 253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+ Each period-separated segment must start and end with an alphanumeric character.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: name must consist only of lowercase alphanumeric
+ characters, hyphens, and periods. Each period-separated
+ segment must start and end with an alphanumeric character.
+ rule: self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$')
+ required:
+ - name
+ type: object
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key used for encryption.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ This field is immutable once set and cannot be removed.
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure Key Vault
+ (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ - message: encryptionKeyURL is immutable
+ rule: self == oldSelf
+ keyPrefix:
+ description: |-
+ keyPrefix is the blob name prefix for the backup file.
+ Must consist of valid blob name characters: alphanumeric characters, forward slashes,
+ hyphens, underscores, and periods.
+ See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#blob-names
+ maxLength: 1024
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: keyPrefix must consist of alphanumeric characters,
+ forward slashes, hyphens, underscores, and periods
+ rule: self.matches('^[a-zA-Z0-9/_.-]+$')
+ storageAccount:
+ description: |-
+ storageAccount is the name of the Azure Storage Account.
+ Must be 3-24 characters, lowercase letters and numbers only.
+ See https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#storage-account-name
+ maxLength: 24
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: storageAccount must consist of lowercase letters
+ and numbers only
+ rule: self.matches('^[a-z0-9]+$')
+ required:
+ - container
+ - credentials
+ - keyPrefix
+ - storageAccount
+ type: object
+ x-kubernetes-validations:
+ - message: encryptionKeyURL cannot be removed once set
+ rule: '!has(oldSelf.encryptionKeyURL) || has(self.encryptionKeyURL)'
+ s3:
+ description: |-
+ s3 specifies the S3 storage configuration for the etcd backup.
+ Required when storageType is "S3", and forbidden otherwise.
+ properties:
+ bucket:
+ description: |-
+ bucket is the name of the S3 bucket where backups are stored.
+ Must be 3-63 characters, lowercase letters, numbers, hyphens, and periods only.
+ Must start and end with a letter or number. Consecutive periods are not allowed.
+ See https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
+ maxLength: 63
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: bucket must consist of lowercase letters, numbers,
+ hyphens, and periods, and must start and end with a letter
+ or number
+ rule: self.matches('^[a-z0-9][a-z0-9.-]*[a-z0-9]$')
+ - message: bucket must not contain consecutive periods
+ rule: '!self.contains(''..'')'
+ credentials:
+ description: |-
+ credentials references a Secret containing AWS credentials for uploading
+ to S3. The Secret must exist in the Hypershift Operator namespace and contain a
+ 'credentials' key with a valid AWS credentials file.
+ properties:
+ name:
+ description: |-
+ name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+ 253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+ Each period-separated segment must start and end with an alphanumeric character.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: name must consist only of lowercase alphanumeric
+ characters, hyphens, and periods. Each period-separated
+ segment must start and end with an alphanumeric character.
+ rule: self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$')
+ required:
+ - name
+ type: object
+ keyPrefix:
+ description: |-
+ keyPrefix is the S3 key prefix for the backup file.
+ Must consist of safe S3 object key characters: alphanumeric characters,
+ forward slashes, hyphens, underscores, periods, exclamation marks,
+ asterisks, single quotes, and parentheses.
+ See https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
+ maxLength: 1024
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: 'keyPrefix must consist of safe S3 key characters:
+ alphanumeric characters, forward slashes, hyphens, underscores,
+ periods, exclamation marks, asterisks, single quotes,
+ and parentheses'
+ rule: self.matches('^[a-zA-Z0-9!_.*\'()/-]+$')
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ This field is immutable once set and cannot be removed.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ - message: kmsKeyARN is immutable
+ rule: self == oldSelf
+ region:
+ description: |-
+ region is the AWS region where the S3 bucket is located (e.g. "us-east-1").
+ Must be a valid AWS region identifier: lowercase letters, digits, and hyphens.
+ Must start and end with an alphanumeric character, no consecutive hyphens.
+ maxLength: 63
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: region must consist of lowercase letters, digits,
+ and hyphens, must start with a letter and end with an
+ alphanumeric character
+ rule: self.matches('^[a-z][a-z0-9-]*[a-z0-9]$')
+ - message: region must not contain consecutive hyphens
+ rule: '!self.contains(''--'')'
+ required:
+ - bucket
+ - credentials
+ - keyPrefix
+ - region
+ type: object
+ x-kubernetes-validations:
+ - message: kmsKeyARN cannot be removed once set
+ rule: '!has(oldSelf.kmsKeyARN) || has(self.kmsKeyARN)'
+ storageType:
+ description: |-
+ storageType specifies the type of cloud storage backend for the etcd backup.
+ Valid values are "S3" for AWS S3 storage and "AzureBlob" for Azure Blob Storage.
+ enum:
+ - S3
+ - AzureBlob
+ type: string
+ required:
+ - storageType
+ type: object
+ x-kubernetes-validations:
+ - message: s3 configuration is required when storageType is S3, and
+ forbidden otherwise
+ rule: 'self.storageType == ''S3'' ? has(self.s3) : !has(self.s3)'
+ - message: azureBlob configuration is required when storageType is
+ AzureBlob, and forbidden otherwise
+ rule: 'self.storageType == ''AzureBlob'' ? has(self.azureBlob) :
+ !has(self.azureBlob)'
+ required:
+ - storage
+ type: object
+ x-kubernetes-validations:
+ - message: HCPEtcdBackupSpec is immutable
+ rule: self == oldSelf
+ status:
+ description: status is the status of the HCPEtcdBackup.
+ minProperties: 1
+ properties:
+ conditions:
+ description: |-
+ conditions contains details for the current state of the etcd backup.
+ The following condition types are expected:
+ - "BackupCompleted": indicates whether the etcd backup has completed (True=success, False=failure).
+ items:
+ description: Condition contains details for one aspect of the current
+ state of this API Resource.
+ properties:
+ lastTransitionTime:
+ description: |-
+ lastTransitionTime is the 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: |-
+ message is a human readable message indicating details about the transition.
+ This may be an empty string.
+ maxLength: 32768
+ type: string
+ observedGeneration:
+ description: |-
+ observedGeneration represents the .metadata.generation that the condition was set based upon.
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+ with respect to the current state of the instance.
+ format: int64
+ minimum: 0
+ type: integer
+ reason:
+ description: |-
+ reason contains a programmatic identifier indicating the reason for the condition's last transition.
+ Producers of specific condition types may define expected values and meanings for this field,
+ and whether the values are considered a guaranteed API.
+ The value should be a CamelCase string.
+ This field may not be empty.
+ maxLength: 1024
+ minLength: 1
+ pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
+ type: string
+ status:
+ description: status of the condition, one of True, False, Unknown.
+ enum:
+ - "True"
+ - "False"
+ - Unknown
+ type: string
+ type:
+ description: type of condition in CamelCase or in foo.example.com/CamelCase.
+ maxLength: 316
+ pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
+ type: string
+ required:
+ - lastTransitionTime
+ - message
+ - reason
+ - status
+ - type
+ type: object
+ maxItems: 10
+ minItems: 1
+ type: array
+ x-kubernetes-list-map-keys:
+ - type
+ x-kubernetes-list-type: map
+ encryptionMetadata:
+ description: |-
+ encryptionMetadata contains metadata about the encryption of the backup.
+ When present, at least one platform-specific encryption block must be set.
+ maxProperties: 1
+ minProperties: 1
+ properties:
+ aws:
+ description: aws contains AWS-specific encryption metadata for
+ the backup.
+ properties:
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup in S3.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ required:
+ - kmsKeyARN
+ type: object
+ azure:
+ description: azure contains Azure-specific encryption metadata
+ for the backup.
+ properties:
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key used for encryption of the backup.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure Key Vault
+ (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ required:
+ - encryptionKeyURL
+ type: object
+ type: object
+ snapshotURL:
+ description: |-
+ snapshotURL is the URL of the completed backup snapshot in cloud storage.
+ Must be a valid URL with scheme https or s3.
+ maxLength: 2048
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: snapshotURL must be a valid URL
+ rule: isURL(self)
+ - message: snapshotURL scheme must be https or s3
+ rule: url(self).getScheme() == 'https' || url(self).getScheme()
+ == 's3'
+ type: object
+ required:
+ - spec
+ type: object
+ served: true
+ storage: true
+ subresources:
+ status: {}
diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPEtcdBackup.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPEtcdBackup.yaml
new file mode 100644
index 000000000000..281868c713f7
--- /dev/null
+++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPEtcdBackup.yaml
@@ -0,0 +1,6673 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ feature-gate.release.openshift.io/HCPEtcdBackup: "true"
+ name: hostedclusters.hypershift.openshift.io
+spec:
+ group: hypershift.openshift.io
+ names:
+ kind: HostedCluster
+ listKind: HostedClusterList
+ plural: hostedclusters
+ shortNames:
+ - hc
+ - hcs
+ singular: hostedcluster
+ scope: Namespaced
+ versions:
+ - additionalPrinterColumns:
+ - description: Version
+ jsonPath: .status.version.history[?(@.state=="Completed")].version
+ name: Version
+ type: string
+ - description: KubeConfig Secret
+ jsonPath: .status.kubeconfig.name
+ name: KubeConfig
+ type: string
+ - description: Progress
+ jsonPath: .status.version.history[?(@.state!="")].state
+ name: Progress
+ type: string
+ - description: Available
+ jsonPath: .status.conditions[?(@.type=="Available")].status
+ name: Available
+ type: string
+ - description: Progressing
+ jsonPath: .status.conditions[?(@.type=="Progressing")].status
+ name: Progressing
+ type: string
+ - description: Message
+ jsonPath: .status.conditions[?(@.type=="Available")].message
+ name: Message
+ type: string
+ name: v1beta1
+ schema:
+ openAPIV3Schema:
+ description: |-
+ HostedCluster is the primary representation of a HyperShift cluster and encapsulates
+ the control plane and common data plane configuration. Creating a HostedCluster
+ results in a fully functional OpenShift control plane with no attached nodes.
+ To support workloads (e.g. pods), a HostedCluster may have one or more associated
+ NodePool resources.
+ properties:
+ apiVersion:
+ description: |-
+ APIVersion defines the versioned schema of this representation of an object.
+ Servers should convert recognized schemas to the latest internal value, and
+ may reject unrecognized values.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |-
+ Kind is a string value representing the REST resource this object represents.
+ Servers may infer this from the endpoint the client submits requests to.
+ Cannot be updated.
+ In CamelCase.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: spec is the desired behavior of the HostedCluster.
+ properties:
+ additionalTrustBundle:
+ description: |-
+ additionalTrustBundle is a local reference to a ConfigMap that must have a "ca-bundle.crt" key
+ whose content must be a PEM-encoded X.509 certificate bundle that will be added to the hosted controlplane and nodes
+ If the reference is set but none of the above requirements are met, the HostedCluster will enter a degraded state.
+ This will be part of every payload generated by the controllers for any NodePool of the HostedCluster.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ 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
+ auditWebhook:
+ description: |-
+ auditWebhook contains metadata for configuring an audit webhook endpoint
+ for a cluster to process cluster audit events. It references a secret that
+ contains the webhook information for the audit webhook endpoint. It is a
+ secret because if the endpoint has mTLS the kubeconfig will contain client
+ keys. The kubeconfig needs to be stored in the secret with a secret key
+ name that corresponds to the constant AuditWebhookKubeconfigKey.
+ 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
+ autoscaling:
+ description: |-
+ autoscaling specifies auto-scaling behavior that applies to all NodePools
+ associated with this HostedCluster.
+ properties:
+ balancingIgnoredLabels:
+ description: |-
+ balancingIgnoredLabels sets "--balancing-ignore-label " flag on cluster-autoscaler for each listed label.
+ This option specifies labels that cluster autoscaler should ignore when considering node group similarity.
+ For example, if you have nodes with "topology.ebs.csi.aws.com/zone" label, you can add name of this label here
+ to prevent cluster autoscaler from splitting nodes into different node groups based on its value.
+
+ HyperShift automatically appends platform-specific balancing ignore labels:
+ - AWS: "lifecycle", "k8s.amazonaws.com/eniConfig", "topology.k8s.aws/zone-id"
+ - Azure: "agentpool", "kubernetes.azure.com/agentpool"
+ - Common:
+ - "hypershift.openshift.io/nodePool"
+ - "topology.ebs.csi.aws.com/zone"
+ - "topology.disk.csi.azure.com/zone"
+ - "ibm-cloud.kubernetes.io/worker-id"
+ - "vpc-block-csi-driver-labels"
+ These labels are added by default and do not need to be manually specified.
+ items:
+ maxLength: 317
+ type: string
+ maxItems: 64
+ type: array
+ x-kubernetes-validations:
+ - message: Each balancingIgnoredLabels item must be a valid label
+ key
+ rule: self.all(l, l.matches('^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?[a-zA-Z0-9]([a-zA-Z0-9_.-]{0,61}[a-zA-Z0-9])?$'))
+ expanders:
+ description: |-
+ expanders guide the autoscaler in choosing node groups during scale-out.
+ Sets the order of expanders for scaling out node groups.
+ Options include:
+ * LeastWaste - selects the group with minimal idle CPU and memory after scaling.
+ * Priority - selects the group with the highest user-defined priority.
+ * Random - selects a group randomly.
+ If not specified, `[Priority, LeastWaste]` is the default.
+ Maximum of 3 expanders can be specified.
+ items:
+ description: ExpanderString contains the name of an expander
+ to be used by the cluster autoscaler.
+ enum:
+ - LeastWaste
+ - Priority
+ - Random
+ type: string
+ maxItems: 3
+ minItems: 1
+ type: array
+ maxFreeDifferenceRatioPercent:
+ description: |-
+ maxFreeDifferenceRatioPercent sets the maximum difference ratio for free resources between similar node groups. This parameter controls how strict the similarity check is when comparing node groups for load balancing.
+ The value represents a percentage from 0 to 100.
+ When set to 0, this means node groups must have exactly the same free resources to be considered similar (no difference allowed).
+ When set to 100, this means node groups will be considered similar regardless of their free resource differences (any difference allowed).
+ A value between 0 and 100 represents the maximum allowed difference ratio for free resources between node groups to be considered similar.
+ When omitted, the autoscaler defaults to 10%.
+ This affects the "--max-free-difference-ratio" flag on cluster-autoscaler.
+ format: int32
+ maximum: 100
+ minimum: 0
+ type: integer
+ maxNodeProvisionTime:
+ description: |-
+ maxNodeProvisionTime is the maximum time to wait for node provisioning
+ before considering the provisioning to be unsuccessful, expressed as a Go
+ duration string. The default is 15 minutes.
+ maxLength: 100
+ pattern: ^([0-9]+(\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$
+ type: string
+ maxNodesTotal:
+ description: |-
+ maxNodesTotal is the maximum allowable number of nodes for the Autoscaler scale out to be operational.
+ The autoscaler will not grow the cluster beyond this number.
+ If omitted, the autoscaler will not have a maximum limit.
+ number.
+ format: int32
+ minimum: 0
+ type: integer
+ maxPodGracePeriod:
+ description: |-
+ maxPodGracePeriod is the maximum seconds to wait for graceful pod
+ termination before scaling down a NodePool. The default is 600 seconds.
+ format: int32
+ minimum: 0
+ type: integer
+ podPriorityThreshold:
+ description: |-
+ podPriorityThreshold enables users to schedule "best-effort" pods, which
+ shouldn't trigger autoscaler actions, but only run when there are spare
+ resources available. The default is -10.
+
+ See the following for more details:
+ https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-does-cluster-autoscaler-work-with-pod-priority-and-preemption
+ format: int32
+ type: integer
+ scaleDown:
+ description: |-
+ scaleDown configures the behavior of the Cluster Autoscaler scale down operation.
+ This field is only valid when scaling is set to ScaleUpAndScaleDown.
+ properties:
+ delayAfterAddSeconds:
+ description: |-
+ delayAfterAddSeconds sets how long after scale up the scale down evaluation resumes in seconds.
+ It must be between 0 and 86400 (24 hours).
+ When set to 0, this means scale down evaluation will resume immediately after scale up, without any delay.
+ When omitted, the autoscaler defaults to 600s (10 minutes).
+ format: int32
+ maximum: 86400
+ minimum: 0
+ type: integer
+ delayAfterDeleteSeconds:
+ description: |-
+ delayAfterDeleteSeconds sets how long after node deletion, scale down evaluation resumes, defaults to scan-interval.
+ It must be between 0 and 86400 (24 hours).
+ When set to 0, this means scale down evaluation will resume immediately after node deletion, without any delay.
+ When omitted, the autoscaler defaults to 0s.
+ format: int32
+ maximum: 86400
+ minimum: 0
+ type: integer
+ delayAfterFailureSeconds:
+ description: |-
+ delayAfterFailureSeconds sets how long after a scale down failure, scale down evaluation resumes.
+ It must be between 0 and 86400 (24 hours).
+ When set to 0, this means scale down evaluation will resume immediately after a scale down failure, without any delay.
+ When omitted, the autoscaler defaults to 180s (3 minutes).
+ format: int32
+ maximum: 86400
+ minimum: 0
+ type: integer
+ unneededDurationSeconds:
+ description: |-
+ unneededDurationSeconds establishes how long a node should be unneeded before it is eligible for scale down in seconds.
+ It must be between 0 and 86400 (24 hours).
+ When omitted, the autoscaler defaults to 600s (10 minutes).
+ format: int32
+ maximum: 86400
+ minimum: 0
+ type: integer
+ utilizationThresholdPercent:
+ description: |-
+ utilizationThresholdPercent determines the node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down.
+ The value represents a percentage from 0 to 100.
+ When set to 0, this means nodes will only be considered for scale down if they are completely idle (0% utilization).
+ When set to 100, this means nodes will be considered for scale down regardless of their utilization level.
+ A value between 0 and 100 represents the utilization threshold below which a node can be considered for scale down.
+ When omitted, the autoscaler defaults to 50%.
+ format: int32
+ maximum: 100
+ minimum: 0
+ type: integer
+ type: object
+ scaling:
+ default: ScaleUpAndScaleDown
+ description: |-
+ scaling defines the scaling behavior for the cluster autoscaler.
+ ScaleUpOnly means the autoscaler will only scale up nodes, never scale down.
+ ScaleUpAndScaleDown means the autoscaler will both scale up and scale down nodes.
+ When set to ScaleUpAndScaleDown, the scaleDown field can be used to configure scale down behavior.
+
+ Note: This field is only supported in OpenShift versions 4.19 and above.
+ enum:
+ - ScaleUpOnly
+ - ScaleUpAndScaleDown
+ type: string
+ type: object
+ x-kubernetes-validations:
+ - message: scaleDown can only be set when scaling is ScaleUpAndScaleDown
+ rule: 'self.scaling == ''ScaleUpAndScaleDown'' ? true : !has(self.scaleDown)'
+ capabilities:
+ default: {}
+ description: |-
+ capabilities allows for disabling optional components at cluster install time.
+ This field is optional and once set cannot be changed.
+ properties:
+ disabled:
+ description: |-
+ disabled when specified, explicitly disables the specified capabilitÃes on the hosted cluster.
+ Once set, this field cannot be changed.
+
+ Note: Disabling 'openshift-samples','Insights', 'Console', 'NodeTuning', 'Ingress' are only supported in OpenShift versions 4.20 and above.
+ items:
+ enum:
+ - ImageRegistry
+ - openshift-samples
+ - Insights
+ - baremetal
+ - Console
+ - NodeTuning
+ - Ingress
+ type: string
+ maxItems: 25
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: Disabled is immutable. Changes might result in unpredictable
+ and disruptive behavior.
+ rule: self == oldSelf
+ - message: Ingress capability can only be disabled if Console
+ capability is also disabled
+ rule: '!self.exists(cap, cap == ''Ingress'') || self.exists(cap,
+ cap == ''Console'')'
+ enabled:
+ description: |-
+ enabled when specified, explicitly enables the specified capabilitÃes on the hosted cluster.
+ Once set, this field cannot be changed.
+ items:
+ enum:
+ - ImageRegistry
+ - openshift-samples
+ - Insights
+ - baremetal
+ - Console
+ - NodeTuning
+ - Ingress
+ type: string
+ maxItems: 25
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: Enabled is immutable. Changes might result in unpredictable
+ and disruptive behavior.
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: Capabilities is immutable. Changes might result in unpredictable
+ and disruptive behavior.
+ rule: self == oldSelf
+ - message: Capabilities can not be both enabled and disabled at once.
+ rule: 'has(self.enabled) && has(self.disabled) ? self.enabled.all(e,
+ !(e in self.disabled)) : true'
+ channel:
+ description: |-
+ channel is an identifier for explicitly requesting that a non-default set of updates be applied to this cluster.
+ If omitted no particular upgrades are suggested.
+ maxLength: 100
+ minLength: 1
+ type: string
+ clusterID:
+ description: |-
+ clusterID uniquely identifies this cluster. This is expected to be an RFC4122 UUID value (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx in hexadecimal digits).
+ As with a Kubernetes metadata.uid, this ID uniquely identifies this cluster in space and time.
+ This value identifies the cluster in metrics pushed to telemetry and metrics produced by the control plane operators.
+ If a value is not specified, a random clusterID will be generated and set by the controller.
+ Once set, this value is immutable.
+ maxLength: 36
+ minLength: 36
+ type: string
+ x-kubernetes-validations:
+ - message: clusterID must be an RFC4122 UUID value (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ in hexadecimal digits)
+ rule: self.matches('[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}')
+ - message: clusterID is immutable
+ rule: oldSelf == "" || self == oldSelf
+ configuration:
+ description: |-
+ configuration specifies configuration for individual OCP components in the
+ cluster, represented as embedded resources that correspond to the openshift
+ configuration API.
+ properties:
+ apiServer:
+ description: |-
+ apiServer holds configuration (like serving certificates, client CA and CORS domains)
+ shared by all API servers in the system, among them especially kube-apiserver
+ and openshift-apiserver.
+ properties:
+ additionalCORSAllowedOrigins:
+ description: |-
+ additionalCORSAllowedOrigins lists additional, user-defined regular expressions describing hosts for which the
+ API server allows access using the CORS headers. This may be needed to access the API and the integrated OAuth
+ server from JavaScript applications.
+ The values are regular expressions that correspond to the Golang regular expression language.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ audit:
+ default:
+ profile: Default
+ description: |-
+ audit specifies the settings for audit configuration to be applied to all OpenShift-provided
+ API servers in the cluster.
+ properties:
+ customRules:
+ description: |-
+ customRules specify profiles per group. These profile take precedence over the
+ top-level profile field if they apply. They are evaluation from top to bottom and
+ the first one that matches, applies.
+ items:
+ description: |-
+ AuditCustomRule describes a custom rule for an audit profile that takes precedence over
+ the top-level profile.
+ properties:
+ group:
+ description: group is a name of group a request
+ user must be member of in order to this profile
+ to apply.
+ minLength: 1
+ type: string
+ profile:
+ description: |-
+ profile specifies the name of the desired audit policy configuration to be deployed to
+ all OpenShift-provided API servers in the cluster.
+
+ The following profiles are provided:
+ - Default: the existing default policy.
+ - WriteRequestBodies: like 'Default', but logs request and response HTTP payloads for
+ write requests (create, update, patch).
+ - AllRequestBodies: like 'WriteRequestBodies', but also logs request and response
+ HTTP payloads for read requests (get, list).
+ - None: no requests are logged at all, not even oauthaccesstokens and oauthauthorizetokens.
+
+ If unset, the 'Default' profile is used as the default.
+ enum:
+ - Default
+ - WriteRequestBodies
+ - AllRequestBodies
+ - None
+ type: string
+ required:
+ - group
+ - profile
+ type: object
+ type: array
+ x-kubernetes-list-map-keys:
+ - group
+ x-kubernetes-list-type: map
+ profile:
+ default: Default
+ description: |-
+ profile specifies the name of the desired top-level audit profile to be applied to all requests
+ sent to any of the OpenShift-provided API servers in the cluster (kube-apiserver,
+ openshift-apiserver and oauth-apiserver), with the exception of those requests that match
+ one or more of the customRules.
+
+ The following profiles are provided:
+ - Default: default policy which means MetaData level logging with the exception of events
+ (not logged at all), oauthaccesstokens and oauthauthorizetokens (both logged at RequestBody
+ level).
+ - WriteRequestBodies: like 'Default', but logs request and response HTTP payloads for
+ write requests (create, update, patch).
+ - AllRequestBodies: like 'WriteRequestBodies', but also logs request and response
+ HTTP payloads for read requests (get, list).
+ - None: no requests are logged at all, not even oauthaccesstokens and oauthauthorizetokens.
+
+ Warning: It is not recommended to disable audit logging by using the `None` profile unless you
+ are fully aware of the risks of not logging data that can be beneficial when troubleshooting issues.
+ If you disable audit logging and a support situation arises, you might need to enable audit logging
+ and reproduce the issue in order to troubleshoot properly.
+
+ If unset, the 'Default' profile is used as the default.
+ enum:
+ - Default
+ - WriteRequestBodies
+ - AllRequestBodies
+ - None
+ type: string
+ type: object
+ clientCA:
+ description: |-
+ clientCA references a ConfigMap containing a certificate bundle for the signers that will be recognized for
+ incoming client certificates in addition to the operator managed signers. If this is empty, then only operator managed signers are valid.
+ You usually only have to set this if you have your own PKI you wish to honor client certificates from.
+ The ConfigMap must exist in the openshift-config namespace and contain the following required fields:
+ - ConfigMap.Data["ca-bundle.crt"] - CA bundle.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ encryption:
+ description: encryption allows the configuration of encryption
+ of resources at the datastore layer.
+ properties:
+ type:
+ description: |-
+ type defines what encryption type should be used to encrypt resources at the datastore layer.
+ When this field is unset (i.e. when it is set to the empty string), identity is implied.
+ The behavior of unset can and will change over time. Even if encryption is enabled by default,
+ the meaning of unset may change to a different encryption type based on changes in best practices.
+
+ When encryption is enabled, all sensitive resources shipped with the platform are encrypted.
+ This list of sensitive resources can and will change over time. The current authoritative list is:
+
+ 1. secrets
+ 2. configmaps
+ 3. routes.route.openshift.io
+ 4. oauthaccesstokens.oauth.openshift.io
+ 5. oauthauthorizetokens.oauth.openshift.io
+ type: string
+ type: object
+ servingCerts:
+ description: |-
+ servingCert is the TLS cert info for serving secure traffic. If not specified, operator managed certificates
+ will be used for serving secure traffic.
+ properties:
+ namedCertificates:
+ description: |-
+ namedCertificates references secrets containing the TLS cert info for serving secure traffic to specific hostnames.
+ If no named certificates are provided, or no named certificates match the server name as understood by a client,
+ the defaultServingCertificate will be used.
+ items:
+ description: APIServerNamedServingCert maps a server
+ DNS name, as understood by a client, to a certificate.
+ properties:
+ names:
+ description: |-
+ names is a optional list of explicit DNS names (leading wildcards allowed) that should use this certificate to
+ serve secure traffic. If no names are provided, the implicit names will be extracted from the certificates.
+ Exact names trump over wildcard names. Explicit names defined here trump over extracted implicit names.
+ items:
+ type: string
+ maxItems: 64
+ type: array
+ x-kubernetes-list-type: atomic
+ servingCertificate:
+ description: |-
+ servingCertificate references a kubernetes.io/tls type secret containing the TLS cert info for serving secure traffic.
+ The secret must exist in the openshift-config namespace and contain the following required fields:
+ - Secret.Data["tls.key"] - TLS private key.
+ - Secret.Data["tls.crt"] - TLS certificate.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ maxItems: 32
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ tlsSecurityProfile:
+ description: |-
+ tlsSecurityProfile specifies settings for TLS connections for externally exposed servers.
+
+ When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
+ The current default is the Intermediate profile.
+ properties:
+ custom:
+ description: |-
+ custom is a user-defined TLS security profile. Be extremely careful using a custom
+ profile as invalid configurations can be catastrophic. An example custom profile
+ looks like this:
+
+ minTLSVersion: VersionTLS11
+ ciphers:
+ - ECDHE-ECDSA-CHACHA20-POLY1305
+ - ECDHE-RSA-CHACHA20-POLY1305
+ - ECDHE-RSA-AES128-GCM-SHA256
+ - ECDHE-ECDSA-AES128-GCM-SHA256
+ nullable: true
+ properties:
+ ciphers:
+ description: |-
+ ciphers is used to specify the cipher algorithms that are negotiated
+ during the TLS handshake. Operators may remove entries their operands
+ do not support. For example, to use DES-CBC3-SHA (yaml):
+
+ ciphers:
+ - DES-CBC3-SHA
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ minTLSVersion:
+ description: |-
+ minTLSVersion is used to specify the minimal version of the TLS protocol
+ that is negotiated during the TLS handshake. For example, to use TLS
+ versions 1.1, 1.2 and 1.3 (yaml):
+
+ minTLSVersion: VersionTLS11
+ enum:
+ - VersionTLS10
+ - VersionTLS11
+ - VersionTLS12
+ - VersionTLS13
+ type: string
+ type: object
+ intermediate:
+ description: |-
+ intermediate is a TLS profile for use when you do not need compatibility with
+ legacy clients and want to remain highly secure while being compatible with
+ most clients currently in use.
+
+ The cipher list includes TLS 1.3 ciphers for forward compatibility, followed
+ by the "intermediate" profile ciphers.
+
+ This profile is equivalent to a Custom profile specified as:
+ minTLSVersion: VersionTLS12
+ ciphers:
+ - TLS_AES_128_GCM_SHA256
+ - TLS_AES_256_GCM_SHA384
+ - TLS_CHACHA20_POLY1305_SHA256
+ - ECDHE-ECDSA-AES128-GCM-SHA256
+ - ECDHE-RSA-AES128-GCM-SHA256
+ - ECDHE-ECDSA-AES256-GCM-SHA384
+ - ECDHE-RSA-AES256-GCM-SHA384
+ - ECDHE-ECDSA-CHACHA20-POLY1305
+ - ECDHE-RSA-CHACHA20-POLY1305
+ - DHE-RSA-AES128-GCM-SHA256
+ - DHE-RSA-AES256-GCM-SHA384
+ nullable: true
+ type: object
+ modern:
+ description: |-
+ modern is a TLS security profile for use with clients that support TLS 1.3 and
+ do not need backward compatibility for older clients.
+
+ This profile is equivalent to a Custom profile specified as:
+ minTLSVersion: VersionTLS13
+ ciphers:
+ - TLS_AES_128_GCM_SHA256
+ - TLS_AES_256_GCM_SHA384
+ - TLS_CHACHA20_POLY1305_SHA256
+ nullable: true
+ type: object
+ old:
+ description: |-
+ old is a TLS profile for use when services need to be accessed by very old
+ clients or libraries and should be used only as a last resort.
+
+ The cipher list includes TLS 1.3 ciphers for forward compatibility, followed
+ by the "old" profile ciphers.
+
+ This profile is equivalent to a Custom profile specified as:
+ minTLSVersion: VersionTLS10
+ ciphers:
+ - TLS_AES_128_GCM_SHA256
+ - TLS_AES_256_GCM_SHA384
+ - TLS_CHACHA20_POLY1305_SHA256
+ - ECDHE-ECDSA-AES128-GCM-SHA256
+ - ECDHE-RSA-AES128-GCM-SHA256
+ - ECDHE-ECDSA-AES256-GCM-SHA384
+ - ECDHE-RSA-AES256-GCM-SHA384
+ - ECDHE-ECDSA-CHACHA20-POLY1305
+ - ECDHE-RSA-CHACHA20-POLY1305
+ - DHE-RSA-AES128-GCM-SHA256
+ - DHE-RSA-AES256-GCM-SHA384
+ - DHE-RSA-CHACHA20-POLY1305
+ - ECDHE-ECDSA-AES128-SHA256
+ - ECDHE-RSA-AES128-SHA256
+ - ECDHE-ECDSA-AES128-SHA
+ - ECDHE-RSA-AES128-SHA
+ - ECDHE-ECDSA-AES256-SHA384
+ - ECDHE-RSA-AES256-SHA384
+ - ECDHE-ECDSA-AES256-SHA
+ - ECDHE-RSA-AES256-SHA
+ - DHE-RSA-AES128-SHA256
+ - DHE-RSA-AES256-SHA256
+ - AES128-GCM-SHA256
+ - AES256-GCM-SHA384
+ - AES128-SHA256
+ - AES256-SHA256
+ - AES128-SHA
+ - AES256-SHA
+ - DES-CBC3-SHA
+ nullable: true
+ type: object
+ type:
+ description: |-
+ type is one of Old, Intermediate, Modern or Custom. Custom provides the
+ ability to specify individual TLS security profile parameters.
+
+ The profiles are currently based on version 5.0 of the Mozilla Server Side TLS
+ configuration guidelines (released 2019-06-28) with TLS 1.3 ciphers added for
+ forward compatibility. See: https://ssl-config.mozilla.org/guidelines/5.0.json
+
+ The profiles are intent based, so they may change over time as new ciphers are
+ developed and existing ciphers are found to be insecure. Depending on
+ precisely which ciphers are available to a process, the list may be reduced.
+ enum:
+ - Old
+ - Intermediate
+ - Modern
+ - Custom
+ type: string
+ type: object
+ type: object
+ authentication:
+ description: |-
+ authentication specifies cluster-wide settings for authentication (like OAuth and
+ webhook token authenticators).
+ properties:
+ oauthMetadata:
+ description: |-
+ oauthMetadata contains the discovery endpoint data for OAuth 2.0
+ Authorization Server Metadata for an external OAuth server.
+ This discovery document can be viewed from its served location:
+ oc get --raw '/.well-known/oauth-authorization-server'
+ For further details, see the IETF Draft:
+ https://tools.ietf.org/html/draft-ietf-oauth-discovery-04#section-2
+ If oauthMetadata.name is non-empty, this value has precedence
+ over any metadata reference stored in status.
+ The key "oauthMetadata" is used to locate the data.
+ If specified and the config map or expected key is not found, no metadata is served.
+ If the specified metadata is not valid, no metadata is served.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ serviceAccountIssuer:
+ description: |-
+ serviceAccountIssuer is the identifier of the bound service account token
+ issuer.
+ The default is https://kubernetes.default.svc
+ WARNING: Updating this field will not result in immediate invalidation of all bound tokens with the
+ previous issuer value. Instead, the tokens issued by previous service account issuer will continue to
+ be trusted for a time period chosen by the platform (currently set to 24h).
+ This time period is subject to change over time.
+ This allows internal components to transition to use new service account issuer without service distruption.
+ type: string
+ type:
+ description: |-
+ type identifies the cluster managed, user facing authentication mode in use.
+ Specifically, it manages the component that responds to login attempts.
+ The default is IntegratedOAuth.
+ type: string
+ webhookTokenAuthenticator:
+ description: |-
+ webhookTokenAuthenticator configures a remote token reviewer.
+ These remote authentication webhooks can be used to verify bearer tokens
+ via the tokenreviews.authentication.k8s.io REST API. This is required to
+ honor bearer tokens that are provisioned by an external authentication service.
+
+ Can only be set if "Type" is set to "None".
+ properties:
+ kubeConfig:
+ description: |-
+ kubeConfig references a secret that contains kube config file data which
+ describes how to access the remote webhook service.
+ The namespace for the referenced secret is openshift-config.
+
+ For further details, see:
+
+ https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication
+
+ The key "kubeConfig" is used to locate the data.
+ If the secret or expected key is not found, the webhook is not honored.
+ If the specified kube config data is not valid, the webhook is not honored.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ required:
+ - kubeConfig
+ type: object
+ webhookTokenAuthenticators:
+ description: webhookTokenAuthenticators is DEPRECATED, setting
+ it has no effect.
+ items:
+ description: |-
+ deprecatedWebhookTokenAuthenticator holds the necessary configuration options for a remote token authenticator.
+ It's the same as WebhookTokenAuthenticator but it's missing the 'required' validation on KubeConfig field.
+ properties:
+ kubeConfig:
+ description: |-
+ kubeConfig contains kube config file data which describes how to access the remote webhook service.
+ For further details, see:
+ https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication
+ The key "kubeConfig" is used to locate the data.
+ If the secret or expected key is not found, the webhook is not honored.
+ If the specified kube config data is not valid, the webhook is not honored.
+ The namespace for this secret is determined by the point of use.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ featureGate:
+ description: featureGate holds cluster-wide information about
+ feature gates.
+ properties:
+ customNoUpgrade:
+ description: |-
+ customNoUpgrade allows the enabling or disabling of any feature. Turning this feature set on IS NOT SUPPORTED, CANNOT BE UNDONE, and PREVENTS UPGRADES.
+ Because of its nature, this setting cannot be validated. If you have any typos or accidentally apply invalid combinations
+ your cluster may fail in an unrecoverable way. featureSet must equal "CustomNoUpgrade" must be set to use this field.
+ nullable: true
+ properties:
+ disabled:
+ description: disabled is a list of all feature gates that
+ you want to force off
+ items:
+ description: FeatureGateName is a string to enforce
+ patterns on the name of a FeatureGate
+ pattern: ^([A-Za-z0-9-]+\.)*[A-Za-z0-9-]+\.?$
+ type: string
+ type: array
+ enabled:
+ description: enabled is a list of all feature gates that
+ you want to force on
+ items:
+ description: FeatureGateName is a string to enforce
+ patterns on the name of a FeatureGate
+ pattern: ^([A-Za-z0-9-]+\.)*[A-Za-z0-9-]+\.?$
+ type: string
+ type: array
+ type: object
+ featureSet:
+ description: |-
+ featureSet changes the list of features in the cluster. The default is empty. Be very careful adjusting this setting.
+ Turning on or off features may cause irreversible changes in your cluster which cannot be undone.
+ enum:
+ - CustomNoUpgrade
+ - DevPreviewNoUpgrade
+ - TechPreviewNoUpgrade
+ - OKD
+ - ""
+ type: string
+ x-kubernetes-validations:
+ - message: CustomNoUpgrade may not be changed
+ rule: 'oldSelf == ''CustomNoUpgrade'' ? self == ''CustomNoUpgrade''
+ : true'
+ - message: TechPreviewNoUpgrade may not be changed
+ rule: 'oldSelf == ''TechPreviewNoUpgrade'' ? self == ''TechPreviewNoUpgrade''
+ : true'
+ - message: DevPreviewNoUpgrade may not be changed
+ rule: 'oldSelf == ''DevPreviewNoUpgrade'' ? self == ''DevPreviewNoUpgrade''
+ : true'
+ - message: OKD cannot transition to Default
+ rule: 'oldSelf == ''OKD'' ? self != '''' : true'
+ type: object
+ image:
+ description: |-
+ image governs policies related to imagestream imports and runtime configuration
+ for external registries. It allows cluster admins to configure which registries
+ OpenShift is allowed to import images from, extra CA trust bundles for external
+ registries, and policies to block or allow registry hostnames.
+ When exposing OpenShift's image registry to the public, this also lets cluster
+ admins specify the external hostname.
+ This input will be part of every payload generated by the controllers for any NodePool of the HostedCluster.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ properties:
+ additionalTrustedCA:
+ description: |-
+ additionalTrustedCA is a reference to a ConfigMap containing additional CAs that
+ should be trusted during imagestream import, pod image pull, build image pull, and
+ imageregistry pullthrough.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ allowedRegistriesForImport:
+ description: |-
+ allowedRegistriesForImport limits the container image registries that normal users may import
+ images from. Set this list to the registries that you trust to contain valid Docker
+ images and that you want applications to be able to import from. Users with
+ permission to create Images or ImageStreamMappings via the API are not affected by
+ this policy - typically only administrators or system integrations will have those
+ permissions.
+ items:
+ description: |-
+ RegistryLocation contains a location of the registry specified by the registry domain
+ name. The domain name might include wildcards, like '*' or '??'.
+ properties:
+ domainName:
+ description: |-
+ domainName specifies a domain name for the registry
+ In case the registry use non-standard (80 or 443) port, the port should be included
+ in the domain name as well.
+ type: string
+ insecure:
+ description: |-
+ insecure indicates whether the registry is secure (https) or insecure (http)
+ By default (if not specified) the registry is assumed as secure.
+ type: boolean
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ externalRegistryHostnames:
+ description: |-
+ externalRegistryHostnames provides the hostnames for the default external image
+ registry. The external hostname should be set only when the image registry
+ is exposed externally. The first value is used in 'publicDockerImageRepository'
+ field in ImageStreams. The value must be in "hostname[:port]" format.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ registrySources:
+ description: |-
+ registrySources contains configuration that determines how the container runtime
+ should treat individual registries when accessing images for builds+pods. (e.g.
+ whether or not to allow insecure access). It does not contain configuration for the
+ internal cluster registry.
+ properties:
+ allowedRegistries:
+ description: |-
+ allowedRegistries are the only registries permitted for image pull and push actions. All other registries are denied.
+
+ Only one of BlockedRegistries or AllowedRegistries may be set.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ blockedRegistries:
+ description: |-
+ blockedRegistries cannot be used for image pull and push actions. All other registries are permitted.
+
+ Only one of BlockedRegistries or AllowedRegistries may be set.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ containerRuntimeSearchRegistries:
+ description: |-
+ containerRuntimeSearchRegistries are registries that will be searched when pulling images that do not have fully qualified
+ domains in their pull specs. Registries will be searched in the order provided in the list.
+ Note: this search list only works with the container runtime, i.e CRI-O. Will NOT work with builds or imagestream imports.
+ format: hostname
+ items:
+ type: string
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: set
+ insecureRegistries:
+ description: insecureRegistries are registries which do
+ not have a valid TLS certificates or only support HTTP
+ connections.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ x-kubernetes-validations:
+ - message: Only one of blockedRegistries or allowedRegistries
+ may be set
+ rule: 'has(self.blockedRegistries) ? !has(self.allowedRegistries)
+ : true'
+ type: object
+ ingress:
+ description: |-
+ ingress holds cluster-wide information about ingress, including the default ingress domain
+ used for routes.
+ properties:
+ appsDomain:
+ description: |-
+ appsDomain is an optional domain to use instead of the one specified
+ in the domain field when a Route is created without specifying an explicit
+ host. If appsDomain is nonempty, this value is used to generate default
+ host values for Route. Unlike domain, appsDomain may be modified after
+ installation.
+ This assumes a new ingresscontroller has been setup with a wildcard
+ certificate.
+ type: string
+ componentRoutes:
+ description: |-
+ componentRoutes is an optional list of routes that are managed by OpenShift components
+ that a cluster-admin is able to configure the hostname and serving certificate for.
+ The namespace and name of each route in this list should match an existing entry in the
+ status.componentRoutes list.
+
+ To determine the set of configurable Routes, look at namespace and name of entries in the
+ .status.componentRoutes list, where participating operators write the status of
+ configurable routes.
+ items:
+ description: ComponentRouteSpec allows for configuration
+ of a route's hostname and serving certificate.
+ properties:
+ hostname:
+ description: hostname is the hostname that should be
+ used by the route.
+ pattern: ^([a-zA-Z0-9\p{S}\p{L}]((-?[a-zA-Z0-9\p{S}\p{L}]{0,62})?)|([a-zA-Z0-9\p{S}\p{L}](([a-zA-Z0-9-\p{S}\p{L}]{0,61}[a-zA-Z0-9\p{S}\p{L}])?)(\.)){1,}([a-zA-Z\p{L}]){2,63})$|^(([a-z0-9][-a-z0-9]{0,61}[a-z0-9]|[a-z0-9]{1,63})[\.]){0,}([a-z0-9][-a-z0-9]{0,61}[a-z0-9]|[a-z0-9]{1,63})$
+ type: string
+ name:
+ description: |-
+ name is the logical name of the route to customize.
+
+ The namespace and name of this componentRoute must match a corresponding
+ entry in the list of status.componentRoutes if the route is to be customized.
+ maxLength: 256
+ minLength: 1
+ type: string
+ namespace:
+ description: |-
+ namespace is the namespace of the route to customize.
+
+ The namespace and name of this componentRoute must match a corresponding
+ entry in the list of status.componentRoutes if the route is to be customized.
+ maxLength: 63
+ minLength: 1
+ pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
+ type: string
+ servingCertKeyPairSecret:
+ description: |-
+ servingCertKeyPairSecret is a reference to a secret of type `kubernetes.io/tls` in the openshift-config namespace.
+ The serving cert/key pair must match and will be used by the operator to fulfill the intent of serving with this name.
+ If the custom hostname uses the default routing suffix of the cluster,
+ the Secret specification for a serving certificate will not be needed.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ required:
+ - hostname
+ - name
+ - namespace
+ type: object
+ type: array
+ x-kubernetes-list-map-keys:
+ - namespace
+ - name
+ x-kubernetes-list-type: map
+ domain:
+ description: |-
+ domain is used to generate a default host name for a route when the
+ route's host name is empty. The generated host name will follow this
+ pattern: "..".
+
+ It is also used as the default wildcard domain suffix for ingress. The
+ default ingresscontroller domain will follow this pattern: "*.".
+
+ Once set, changing domain is not currently supported.
+ type: string
+ loadBalancer:
+ description: |-
+ loadBalancer contains the load balancer details in general which are not only specific to the underlying infrastructure
+ provider of the current cluster and are required for Ingress Controller to work on OpenShift.
+ properties:
+ platform:
+ description: |-
+ platform holds configuration specific to the underlying
+ infrastructure provider for the ingress load balancers.
+ When omitted, this means the user has no opinion and the platform is left
+ to choose reasonable defaults. These defaults are subject to change over time.
+ properties:
+ aws:
+ description: aws contains settings specific to the
+ Amazon Web Services infrastructure provider.
+ properties:
+ type:
+ description: |-
+ type allows user to set a load balancer type.
+ When this field is set the default ingresscontroller will get created using the specified LBType.
+ If this field is not set then the default ingress controller of LBType Classic will be created.
+ Valid values are:
+
+ * "Classic": A Classic Load Balancer that makes routing decisions at either
+ the transport layer (TCP/SSL) or the application layer (HTTP/HTTPS). See
+ the following for additional details:
+
+ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#clb
+
+ * "NLB": A Network Load Balancer that makes routing decisions at the
+ transport layer (TCP/SSL). See the following for additional details:
+
+ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#nlb
+ enum:
+ - NLB
+ - Classic
+ type: string
+ required:
+ - type
+ type: object
+ type:
+ description: |-
+ type is the underlying infrastructure provider for the cluster.
+ Allowed values are "AWS", "Azure", "BareMetal", "GCP", "Libvirt",
+ "OpenStack", "VSphere", "oVirt", "KubeVirt", "EquinixMetal", "PowerVS",
+ "AlibabaCloud", "Nutanix" and "None". Individual components may not support all platforms,
+ and must handle unrecognized platforms as None if they do not support that platform.
+ enum:
+ - ""
+ - AWS
+ - Azure
+ - BareMetal
+ - GCP
+ - Libvirt
+ - OpenStack
+ - None
+ - VSphere
+ - oVirt
+ - IBMCloud
+ - KubeVirt
+ - EquinixMetal
+ - PowerVS
+ - AlibabaCloud
+ - Nutanix
+ - External
+ type: string
+ type: object
+ type: object
+ requiredHSTSPolicies:
+ description: |-
+ requiredHSTSPolicies specifies HSTS policies that are required to be set on newly created or updated routes
+ matching the domainPattern/s and namespaceSelector/s that are specified in the policy.
+ Each requiredHSTSPolicy must have at least a domainPattern and a maxAge to validate a route HSTS Policy route
+ annotation, and affect route admission.
+
+ A candidate route is checked for HSTS Policies if it has the HSTS Policy route annotation:
+ "haproxy.router.openshift.io/hsts_header"
+ E.g. haproxy.router.openshift.io/hsts_header: max-age=31536000;preload;includeSubDomains
+
+ - For each candidate route, if it matches a requiredHSTSPolicy domainPattern and optional namespaceSelector,
+ then the maxAge, preloadPolicy, and includeSubdomainsPolicy must be valid to be admitted. Otherwise, the route
+ is rejected.
+ - The first match, by domainPattern and optional namespaceSelector, in the ordering of the RequiredHSTSPolicies
+ determines the route's admission status.
+ - If the candidate route doesn't match any requiredHSTSPolicy domainPattern and optional namespaceSelector,
+ then it may use any HSTS Policy annotation.
+
+ The HSTS policy configuration may be changed after routes have already been created. An update to a previously
+ admitted route may then fail if the updated route does not conform to the updated HSTS policy configuration.
+ However, changing the HSTS policy configuration will not cause a route that is already admitted to stop working.
+
+ Note that if there are no RequiredHSTSPolicies, any HSTS Policy annotation on the route is valid.
+ items:
+ properties:
+ domainPatterns:
+ description: |-
+ domainPatterns is a list of domains for which the desired HSTS annotations are required.
+ If domainPatterns is specified and a route is created with a spec.host matching one of the domains,
+ the route must specify the HSTS Policy components described in the matching RequiredHSTSPolicy.
+
+ The use of wildcards is allowed like this: *.foo.com matches everything under foo.com.
+ foo.com only matches foo.com, so to cover foo.com and everything under it, you must specify *both*.
+ items:
+ type: string
+ minItems: 1
+ type: array
+ includeSubDomainsPolicy:
+ description: |-
+ includeSubDomainsPolicy means the HSTS Policy should apply to any subdomains of the host's
+ domain name. Thus, for the host bar.foo.com, if includeSubDomainsPolicy was set to RequireIncludeSubDomains:
+ - the host app.bar.foo.com would inherit the HSTS Policy of bar.foo.com
+ - the host bar.foo.com would inherit the HSTS Policy of bar.foo.com
+ - the host foo.com would NOT inherit the HSTS Policy of bar.foo.com
+ - the host def.foo.com would NOT inherit the HSTS Policy of bar.foo.com
+ enum:
+ - RequireIncludeSubDomains
+ - RequireNoIncludeSubDomains
+ - NoOpinion
+ type: string
+ maxAge:
+ description: |-
+ maxAge is the delta time range in seconds during which hosts are regarded as HSTS hosts.
+ If set to 0, it negates the effect, and hosts are removed as HSTS hosts.
+ If set to 0 and includeSubdomains is specified, all subdomains of the host are also removed as HSTS hosts.
+ maxAge is a time-to-live value, and if this policy is not refreshed on a client, the HSTS
+ policy will eventually expire on that client.
+ properties:
+ largestMaxAge:
+ description: |-
+ The largest allowed value (in seconds) of the RequiredHSTSPolicy max-age
+ This value can be left unspecified, in which case no upper limit is enforced.
+ format: int32
+ maximum: 2147483647
+ minimum: 0
+ type: integer
+ smallestMaxAge:
+ description: |-
+ The smallest allowed value (in seconds) of the RequiredHSTSPolicy max-age
+ Setting max-age=0 allows the deletion of an existing HSTS header from a host. This is a necessary
+ tool for administrators to quickly correct mistakes.
+ This value can be left unspecified, in which case no lower limit is enforced.
+ format: int32
+ maximum: 2147483647
+ minimum: 0
+ type: integer
+ type: object
+ namespaceSelector:
+ description: |-
+ namespaceSelector specifies a label selector such that the policy applies only to those routes that
+ are in namespaces with labels that match the selector, and are in one of the DomainPatterns.
+ Defaults to the empty LabelSelector, which matches 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
+ x-kubernetes-list-type: atomic
+ required:
+ - key
+ - operator
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ 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
+ preloadPolicy:
+ description: |-
+ preloadPolicy directs the client to include hosts in its host preload list so that
+ it never needs to do an initial load to get the HSTS header (note that this is not defined
+ in RFC 6797 and is therefore client implementation-dependent).
+ enum:
+ - RequirePreload
+ - RequireNoPreload
+ - NoOpinion
+ type: string
+ required:
+ - domainPatterns
+ type: object
+ type: array
+ type: object
+ network:
+ description: |-
+ network holds cluster-wide information about the network. It is used to configure the desired network configuration, such as: IP address pools for services/pod IPs, network plugin, etc.
+ Please view network.spec for an explanation on what applies when configuring this resource.
+ properties:
+ clusterNetwork:
+ description: |-
+ IP address pool to use for pod IPs.
+ This field is immutable after installation.
+ items:
+ description: |-
+ ClusterNetworkEntry is a contiguous block of IP addresses from which pod IPs
+ are allocated.
+ properties:
+ cidr:
+ description: The complete block for pod IPs.
+ type: string
+ hostPrefix:
+ description: |-
+ The size (prefix) of block to allocate to each node. If this
+ field is not used by the plugin, it can be left unset.
+ format: int32
+ minimum: 0
+ type: integer
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ externalIP:
+ description: |-
+ externalIP defines configuration for controllers that
+ affect Service.ExternalIP. If nil, then ExternalIP is
+ not allowed to be set.
+ properties:
+ autoAssignCIDRs:
+ description: |-
+ autoAssignCIDRs is a list of CIDRs from which to automatically assign
+ Service.ExternalIP. These are assigned when the service is of type
+ LoadBalancer. In general, this is only useful for bare-metal clusters.
+ In Openshift 3.x, this was misleadingly called "IngressIPs".
+ Automatically assigned External IPs are not affected by any
+ ExternalIPPolicy rules.
+ Currently, only one entry may be provided.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ policy:
+ description: |-
+ policy is a set of restrictions applied to the ExternalIP field.
+ If nil or empty, then ExternalIP is not allowed to be set.
+ properties:
+ allowedCIDRs:
+ description: allowedCIDRs is the list of allowed CIDRs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ rejectedCIDRs:
+ description: |-
+ rejectedCIDRs is the list of disallowed CIDRs. These take precedence
+ over allowedCIDRs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ type: object
+ networkType:
+ description: |-
+ networkType is the plugin that is to be deployed (e.g. OVNKubernetes).
+ This should match a value that the cluster-network-operator understands,
+ or else no networking will be installed.
+ Currently supported values are:
+ - OVNKubernetes
+ This field is immutable after installation.
+ type: string
+ serviceNetwork:
+ description: |-
+ IP address pool for services.
+ Currently, we only support a single entry here.
+ This field is immutable after installation.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ serviceNodePortRange:
+ description: |-
+ The port range allowed for Services of type NodePort.
+ If not specified, the default of 30000-32767 will be used.
+ Such Services without a NodePort specified will have one
+ automatically allocated from this range.
+ This parameter can be updated after the cluster is
+ installed.
+ pattern: ^([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])-([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$
+ type: string
+ type: object
+ oauth:
+ description: |-
+ oauth holds cluster-wide information about OAuth.
+ It is used to configure the integrated OAuth server.
+ This configuration is only honored when the top level Authentication config has type set to IntegratedOAuth.
+ properties:
+ identityProviders:
+ description: |-
+ identityProviders is an ordered list of ways for a user to identify themselves.
+ When this list is empty, no identities are provisioned for users.
+ items:
+ description: IdentityProvider provides identities for users
+ authenticating using credentials
+ properties:
+ basicAuth:
+ description: basicAuth contains configuration options
+ for the BasicAuth IdP
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ tlsClientCert:
+ description: |-
+ tlsClientCert is an optional reference to a secret by name that contains the
+ PEM-encoded TLS client certificate to present when connecting to the server.
+ The key "tls.crt" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ If the specified certificate data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ tlsClientKey:
+ description: |-
+ tlsClientKey is an optional reference to a secret by name that contains the
+ PEM-encoded TLS private key for the client certificate referenced in tlsClientCert.
+ The key "tls.key" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ If the specified certificate data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ url:
+ description: url is the remote URL to connect to
+ type: string
+ type: object
+ github:
+ description: github enables user authentication using
+ GitHub credentials
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ This can only be configured when hostname is set to a non-empty value.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ clientID:
+ description: clientID is the oauth client ID
+ type: string
+ clientSecret:
+ description: |-
+ clientSecret is a required reference to the secret by name containing the oauth client secret.
+ The key "clientSecret" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ hostname:
+ description: |-
+ hostname is the optional domain (e.g. "mycompany.com") for use with a hosted instance of
+ GitHub Enterprise.
+ It must match the GitHub Enterprise settings value configured at /setup/settings#hostname.
+ type: string
+ organizations:
+ description: organizations optionally restricts
+ which organizations are allowed to log in
+ items:
+ type: string
+ type: array
+ teams:
+ description: teams optionally restricts which teams
+ are allowed to log in. Format is /.
+ items:
+ type: string
+ type: array
+ type: object
+ gitlab:
+ description: gitlab enables user authentication using
+ GitLab credentials
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ clientID:
+ description: clientID is the oauth client ID
+ type: string
+ clientSecret:
+ description: |-
+ clientSecret is a required reference to the secret by name containing the oauth client secret.
+ The key "clientSecret" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ url:
+ description: url is the oauth server base URL
+ type: string
+ type: object
+ google:
+ description: google enables user authentication using
+ Google credentials
+ properties:
+ clientID:
+ description: clientID is the oauth client ID
+ type: string
+ clientSecret:
+ description: |-
+ clientSecret is a required reference to the secret by name containing the oauth client secret.
+ The key "clientSecret" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ hostedDomain:
+ description: hostedDomain is the optional Google
+ App domain (e.g. "mycompany.com") to restrict
+ logins to
+ type: string
+ type: object
+ htpasswd:
+ description: htpasswd enables user authentication using
+ an HTPasswd file to validate credentials
+ properties:
+ fileData:
+ description: |-
+ fileData is a required reference to a secret by name containing the data to use as the htpasswd file.
+ The key "htpasswd" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ If the specified htpasswd data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ keystone:
+ description: keystone enables user authentication using
+ keystone password credentials
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ domainName:
+ description: domainName is required for keystone
+ v3
+ type: string
+ tlsClientCert:
+ description: |-
+ tlsClientCert is an optional reference to a secret by name that contains the
+ PEM-encoded TLS client certificate to present when connecting to the server.
+ The key "tls.crt" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ If the specified certificate data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ tlsClientKey:
+ description: |-
+ tlsClientKey is an optional reference to a secret by name that contains the
+ PEM-encoded TLS private key for the client certificate referenced in tlsClientCert.
+ The key "tls.key" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ If the specified certificate data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ url:
+ description: url is the remote URL to connect to
+ type: string
+ type: object
+ ldap:
+ description: ldap enables user authentication using
+ LDAP credentials
+ properties:
+ attributes:
+ description: attributes maps LDAP attributes to
+ identities
+ properties:
+ email:
+ description: |-
+ email is the list of attributes whose values should be used as the email address. Optional.
+ If unspecified, no email is set for the identity
+ items:
+ type: string
+ type: array
+ id:
+ description: |-
+ id is the list of attributes whose values should be used as the user ID. Required.
+ First non-empty attribute is used. At least one attribute is required. If none of the listed
+ attribute have a value, authentication fails.
+ LDAP standard identity attribute is "dn"
+ items:
+ type: string
+ type: array
+ name:
+ description: |-
+ name is the list of attributes whose values should be used as the display name. Optional.
+ If unspecified, no display name is set for the identity
+ LDAP standard display name attribute is "cn"
+ items:
+ type: string
+ type: array
+ preferredUsername:
+ description: |-
+ preferredUsername is the list of attributes whose values should be used as the preferred username.
+ LDAP standard login attribute is "uid"
+ items:
+ type: string
+ type: array
+ type: object
+ bindDN:
+ description: bindDN is an optional DN to bind with
+ during the search phase.
+ type: string
+ bindPassword:
+ description: |-
+ bindPassword is an optional reference to a secret by name
+ containing a password to bind with during the search phase.
+ The key "bindPassword" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ insecure:
+ description: |-
+ insecure, if true, indicates the connection should not use TLS
+ WARNING: Should not be set to `true` with the URL scheme "ldaps://" as "ldaps://" URLs always
+ attempt to connect using TLS, even when `insecure` is set to `true`
+ When `true`, "ldap://" URLS connect insecurely. When `false`, "ldap://" URLs are upgraded to
+ a TLS connection using StartTLS as specified in https://tools.ietf.org/html/rfc2830.
+ type: boolean
+ url:
+ description: |-
+ url is an RFC 2255 URL which specifies the LDAP search parameters to use.
+ The syntax of the URL is:
+ ldap://host:port/basedn?attribute?scope?filter
+ type: string
+ type: object
+ mappingMethod:
+ description: |-
+ mappingMethod determines how identities from this provider are mapped to users
+ Defaults to "claim"
+ type: string
+ name:
+ description: |-
+ name is used to qualify the identities returned by this provider.
+ - It MUST be unique and not shared by any other identity provider used
+ - It MUST be a valid path segment: name cannot equal "." or ".." or contain "/" or "%" or ":"
+ Ref: https://godoc.org/github.com/openshift/origin/pkg/user/apis/user/validation#ValidateIdentityProviderName
+ type: string
+ openID:
+ description: openID enables user authentication using
+ OpenID credentials
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ claims:
+ description: claims mappings
+ properties:
+ email:
+ description: |-
+ email is the list of claims whose values should be used as the email address. Optional.
+ If unspecified, no email is set for the identity
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ groups:
+ description: |-
+ groups is the list of claims value of which should be used to synchronize groups
+ from the OIDC provider to OpenShift for the user.
+ If multiple claims are specified, the first one with a non-empty value is used.
+ items:
+ description: |-
+ OpenIDClaim represents a claim retrieved from an OpenID provider's tokens or userInfo
+ responses
+ minLength: 1
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ name:
+ description: |-
+ name is the list of claims whose values should be used as the display name. Optional.
+ If unspecified, no display name is set for the identity
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ preferredUsername:
+ description: |-
+ preferredUsername is the list of claims whose values should be used as the preferred username.
+ If unspecified, the preferred username is determined from the value of the sub claim
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ clientID:
+ description: clientID is the oauth client ID
+ type: string
+ clientSecret:
+ description: |-
+ clientSecret is a required reference to the secret by name containing the oauth client secret.
+ The key "clientSecret" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ extraAuthorizeParameters:
+ additionalProperties:
+ type: string
+ description: extraAuthorizeParameters are any custom
+ parameters to add to the authorize request.
+ type: object
+ extraScopes:
+ description: extraScopes are any scopes to request
+ in addition to the standard "openid" scope.
+ items:
+ type: string
+ type: array
+ issuer:
+ description: |-
+ issuer is the URL that the OpenID Provider asserts as its Issuer Identifier.
+ It must use the https scheme with no query or fragment component.
+ type: string
+ type: object
+ requestHeader:
+ description: requestHeader enables user authentication
+ using request header credentials
+ properties:
+ ca:
+ description: |-
+ ca is a required reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ Specifically, it allows verification of incoming requests to prevent header spoofing.
+ The key "ca.crt" is used to locate the data.
+ If the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ challengeURL:
+ description: |-
+ challengeURL is a URL to redirect unauthenticated /authorize requests to
+ Unauthenticated requests from OAuth clients which expect WWW-Authenticate challenges will be
+ redirected here.
+ ${url} is replaced with the current URL, escaped to be safe in a query parameter
+ https://www.example.com/sso-login?then=${url}
+ ${query} is replaced with the current query string
+ https://www.example.com/auth-proxy/oauth/authorize?${query}
+ Required when challenge is set to true.
+ type: string
+ clientCommonNames:
+ description: |-
+ clientCommonNames is an optional list of common names to require a match from. If empty, any
+ client certificate validated against the clientCA bundle is considered authoritative.
+ items:
+ type: string
+ type: array
+ emailHeaders:
+ description: emailHeaders is the set of headers
+ to check for the email address
+ items:
+ type: string
+ type: array
+ headers:
+ description: headers is the set of headers to check
+ for identity information
+ items:
+ type: string
+ type: array
+ loginURL:
+ description: |-
+ loginURL is a URL to redirect unauthenticated /authorize requests to
+ Unauthenticated requests from OAuth clients which expect interactive logins will be redirected here
+ ${url} is replaced with the current URL, escaped to be safe in a query parameter
+ https://www.example.com/sso-login?then=${url}
+ ${query} is replaced with the current query string
+ https://www.example.com/auth-proxy/oauth/authorize?${query}
+ Required when login is set to true.
+ type: string
+ nameHeaders:
+ description: nameHeaders is the set of headers to
+ check for the display name
+ items:
+ type: string
+ type: array
+ preferredUsernameHeaders:
+ description: preferredUsernameHeaders is the set
+ of headers to check for the preferred username
+ items:
+ type: string
+ type: array
+ type: object
+ type:
+ description: type identifies the identity provider type
+ for this entry.
+ type: string
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ templates:
+ description: templates allow you to customize pages like the
+ login page.
+ properties:
+ error:
+ description: |-
+ error is the name of a secret that specifies a go template to use to render error pages
+ during the authentication or grant flow.
+ The key "errors.html" is used to locate the template data.
+ If specified and the secret or expected key is not found, the default error page is used.
+ If the specified template is not valid, the default error page is used.
+ If unspecified, the default error page is used.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ login:
+ description: |-
+ login is the name of a secret that specifies a go template to use to render the login page.
+ The key "login.html" is used to locate the template data.
+ If specified and the secret or expected key is not found, the default login page is used.
+ If the specified template is not valid, the default login page is used.
+ If unspecified, the default login page is used.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ providerSelection:
+ description: |-
+ providerSelection is the name of a secret that specifies a go template to use to render
+ the provider selection page.
+ The key "providers.html" is used to locate the template data.
+ If specified and the secret or expected key is not found, the default provider selection page is used.
+ If the specified template is not valid, the default provider selection page is used.
+ If unspecified, the default provider selection page is used.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ tokenConfig:
+ description: tokenConfig contains options for authorization
+ and access tokens
+ properties:
+ accessTokenInactivityTimeout:
+ description: |-
+ accessTokenInactivityTimeout defines the token inactivity timeout
+ for tokens granted by any client.
+ The value represents the maximum amount of time that can occur between
+ consecutive uses of the token. Tokens become invalid if they are not
+ used within this temporal window. The user will need to acquire a new
+ token to regain access once a token times out. Takes valid time
+ duration string such as "5m", "1.5h" or "2h45m". The minimum allowed
+ value for duration is 300s (5 minutes). If the timeout is configured
+ per client, then that value takes precedence. If the timeout value is
+ not specified and the client does not override the value, then tokens
+ are valid until their lifetime.
+
+ WARNING: existing tokens' timeout will not be affected (lowered) by changing this value
+ type: string
+ accessTokenInactivityTimeoutSeconds:
+ description: 'accessTokenInactivityTimeoutSeconds - DEPRECATED:
+ setting this field has no effect.'
+ format: int32
+ type: integer
+ accessTokenMaxAgeSeconds:
+ description: accessTokenMaxAgeSeconds defines the maximum
+ age of access tokens
+ format: int32
+ type: integer
+ type: object
+ type: object
+ x-kubernetes-validations:
+ - message: spec.configuration.oauth.tokenConfig.accessTokenInactivityTimeout
+ minimum acceptable token timeout value is 300 seconds
+ rule: '!has(self.tokenConfig) || !has(self.tokenConfig.accessTokenInactivityTimeout)
+ || duration(self.tokenConfig.accessTokenInactivityTimeout).getSeconds()
+ >= 300'
+ operatorhub:
+ description: |-
+ operatorhub specifies the configuration for the Operator Lifecycle Manager in the HostedCluster. This is only configured at deployment time but the controller are not reconcilling over it.
+ The OperatorHub configuration will be constantly reconciled if catalog placement is management, but only on cluster creation otherwise.
+ properties:
+ disableAllDefaultSources:
+ description: |-
+ disableAllDefaultSources allows you to disable all the default hub
+ sources. If this is true, a specific entry in sources can be used to
+ enable a default source. If this is false, a specific entry in
+ sources can be used to disable or enable a default source.
+ type: boolean
+ sources:
+ description: |-
+ sources is the list of default hub sources and their configuration.
+ If the list is empty, it implies that the default hub sources are
+ enabled on the cluster unless disableAllDefaultSources is true.
+ If disableAllDefaultSources is true and sources is not empty,
+ the configuration present in sources will take precedence. The list of
+ default hub sources and their current state will always be reflected in
+ the status block.
+ items:
+ description: HubSource is used to specify the hub source
+ and its configuration
+ properties:
+ disabled:
+ description: disabled is used to disable a default hub
+ source on cluster
+ type: boolean
+ name:
+ description: name is the name of one of the default
+ hub sources
+ maxLength: 253
+ minLength: 1
+ type: string
+ type: object
+ type: array
+ type: object
+ proxy:
+ description: |-
+ proxy holds cluster-wide information on how to configure default proxies for the cluster.
+ This affects traffic flowing from the hosted cluster data plane.
+ The controllers will generate a machineConfig with the proxy config for the cluster.
+ This MachineConfig will be part of every payload generated by the controllers for any NodePool of the HostedCluster.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ properties:
+ httpProxy:
+ description: httpProxy is the URL of the proxy for HTTP requests. Empty
+ means unset and will not result in an env var.
+ type: string
+ httpsProxy:
+ description: httpsProxy is the URL of the proxy for HTTPS
+ requests. Empty means unset and will not result in an env
+ var.
+ type: string
+ noProxy:
+ description: |-
+ noProxy is a comma-separated list of hostnames and/or CIDRs and/or IPs for which the proxy should not be used.
+ Empty means unset and will not result in an env var.
+ type: string
+ readinessEndpoints:
+ description: readinessEndpoints is a list of endpoints used
+ to verify readiness of the proxy.
+ items:
+ type: string
+ type: array
+ trustedCA:
+ description: |-
+ trustedCA is a reference to a ConfigMap containing a CA certificate bundle.
+ The trustedCA field should only be consumed by a proxy validator. The
+ validator is responsible for reading the certificate bundle from the required
+ key "ca-bundle.crt", merging it with the system default trust bundle,
+ and writing the merged trust bundle to a ConfigMap named "trusted-ca-bundle"
+ in the "openshift-config-managed" namespace. Clients that expect to make
+ proxy connections must use the trusted-ca-bundle for all HTTPS requests to
+ the proxy, and may use the trusted-ca-bundle for non-proxy HTTPS requests as
+ well.
+
+ The namespace for the ConfigMap referenced by trustedCA is
+ "openshift-config". Here is an example ConfigMap (in yaml):
+
+ apiVersion: v1
+ kind: ConfigMap
+ metadata:
+ name: user-ca-bundle
+ namespace: openshift-config
+ data:
+ ca-bundle.crt: |
+ -----BEGIN CERTIFICATE-----
+ Custom CA certificate bundle.
+ -----END CERTIFICATE-----
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ scheduler:
+ description: |-
+ scheduler holds cluster-wide config information to run the Kubernetes Scheduler
+ and influence its placement decisions. The canonical name for this config is `cluster`.
+ properties:
+ defaultNodeSelector:
+ description: |-
+ defaultNodeSelector helps set the cluster-wide default node selector to
+ restrict pod placement to specific nodes. This is applied to the pods
+ created in all namespaces and creates an intersection with any existing
+ nodeSelectors already set on a pod, additionally constraining that pod's selector.
+ For example,
+ defaultNodeSelector: "type=user-node,region=east" would set nodeSelector
+ field in pod spec to "type=user-node,region=east" to all pods created
+ in all namespaces. Namespaces having project-wide node selectors won't be
+ impacted even if this field is set. This adds an annotation section to
+ the namespace.
+ For example, if a new namespace is created with
+ node-selector='type=user-node,region=east',
+ the annotation openshift.io/node-selector: type=user-node,region=east
+ gets added to the project. When the openshift.io/node-selector annotation
+ is set on the project the value is used in preference to the value we are setting
+ for defaultNodeSelector field.
+ For instance,
+ openshift.io/node-selector: "type=user-node,region=west" means
+ that the default of "type=user-node,region=east" set in defaultNodeSelector
+ would not be applied.
+ type: string
+ mastersSchedulable:
+ description: |-
+ mastersSchedulable allows masters nodes to be schedulable. When this flag is
+ turned on, all the master nodes in the cluster will be made schedulable,
+ so that workload pods can run on them. The default value for this field is false,
+ meaning none of the master nodes are schedulable.
+ Important Note: Once the workload pods start running on the master nodes,
+ extreme care must be taken to ensure that cluster-critical control plane components
+ are not impacted.
+ Please turn on this field after doing due diligence.
+ type: boolean
+ policy:
+ description: |-
+ DEPRECATED: the scheduler Policy API has been deprecated and will be removed in a future release.
+ policy is a reference to a ConfigMap containing scheduler policy which has
+ user specified predicates and priorities. If this ConfigMap is not available
+ scheduler will default to use DefaultAlgorithmProvider.
+ The namespace for this configmap is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ profile:
+ description: |-
+ profile sets which scheduling profile should be set in order to configure scheduling
+ decisions for new pods.
+
+ Valid values are "LowNodeUtilization", "HighNodeUtilization", "NoScoring"
+ Defaults to "LowNodeUtilization"
+ enum:
+ - ""
+ - LowNodeUtilization
+ - HighNodeUtilization
+ - NoScoring
+ type: string
+ type: object
+ type: object
+ controlPlaneRelease:
+ description: |-
+ controlPlaneRelease is like spec.release but only for the components running on the management cluster.
+ This excludes any operand which will land in the hosted cluster data plane.
+ It is useful when you need to apply patch management side like a CVE, transparently for the hosted cluster.
+ Version input for this field is free, no validation is performed against spec.release or maximum and minimum is performed.
+ If defined, it will dicate the version of the components running management side, while spec.release will dictate the version of the components landing in the hosted cluster data plane.
+ If not defined, spec.release is used for both.
+ Changing this field will trigger a rollout of the control plane.
+ The behavior of the rollout will be driven by the ControllerAvailabilityPolicy and InfrastructureAvailabilityPolicy for PDBs and maxUnavailable and surce policies.
+ properties:
+ image:
+ description: |-
+ image is the image pullspec of an OCP release payload image.
+ See https://quay.io/repository/openshift-release-dev/ocp-release?tab=tags for a list of available images.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: Image must start with a word character (letters, digits,
+ or underscores) and contain no white spaces
+ rule: self.matches('^(\\w+\\S+)$')
+ required:
+ - image
+ type: object
+ controllerAvailabilityPolicy:
+ default: HighlyAvailable
+ description: |-
+ controllerAvailabilityPolicy specifies the availability policy applied to critical control plane components like the Kube API Server.
+ Possible values are HighlyAvailable and SingleReplica. The default value is HighlyAvailable.
+ This field is immutable.
+ enum:
+ - HighlyAvailable
+ - SingleReplica
+ type: string
+ x-kubernetes-validations:
+ - message: ControllerAvailabilityPolicy is immutable
+ rule: self == oldSelf
+ dns:
+ description: dns specifies the DNS configuration for the hosted cluster
+ ingress.
+ properties:
+ baseDomain:
+ description: |-
+ baseDomain is the base domain of the hosted cluster.
+ It will be used to configure ingress in the hosted cluster through the subdomain baseDomainPrefix.baseDomain.
+ If baseDomainPrefix is omitted, the hostedCluster.name will be used as the subdomain.
+ Once set, this field is immutable.
+ When the value is the empty string "", the controller might default to a value depending on the platform.
+ maxLength: 253
+ type: string
+ x-kubernetes-validations:
+ - message: baseDomain must be a valid domain name (e.g., example,
+ example.com, sub.example.com)
+ rule: self == "" || self.matches('^(?:(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}|[a-zA-Z0-9-]+)$')
+ - message: baseDomain is immutable
+ rule: oldSelf == "" || self == oldSelf
+ baseDomainPrefix:
+ description: |-
+ baseDomainPrefix is the base domain prefix for the hosted cluster ingress.
+ It will be used to configure ingress in the hosted cluster through the subdomain baseDomainPrefix.baseDomain.
+ If baseDomainPrefix is omitted, the hostedCluster.name will be used as the subdomain.
+ Set baseDomainPrefix to an empty string "", if you don't want a prefix at all (not even hostedCluster.name) to be prepended to baseDomain.
+ This field is immutable.
+ maxLength: 253
+ type: string
+ x-kubernetes-validations:
+ - message: baseDomainPrefix must be a valid domain name (e.g.,
+ example, example.com, sub.example.com)
+ rule: self == "" || self.matches('^(?:(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}|[a-zA-Z0-9-]+)$')
+ - message: baseDomainPrefix is immutable
+ rule: self == oldSelf
+ privateZoneID:
+ description: |-
+ privateZoneID is the Hosted Zone ID where all the DNS records that are only available internally to the cluster exist.
+ This field is optional and mainly leveraged in cloud environments where the DNS records for the .baseDomain are created by controllers in this zone.
+ Once set, this value is immutable.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: privateZoneID is immutable
+ rule: oldSelf == "" || self == oldSelf
+ publicZoneID:
+ description: |-
+ publicZoneID is the Hosted Zone ID where all the DNS records that are publicly accessible to the internet exist.
+ This field is optional and mainly leveraged in cloud environments where the DNS records for the .baseDomain are created by controllers in this zone.
+ Once set, this value is immutable.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: publicZoneID is immutable
+ rule: oldSelf == "" || self == oldSelf
+ required:
+ - baseDomain
+ type: object
+ etcd:
+ default:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ description: |-
+ etcd specifies configuration for the control plane etcd cluster. The
+ default managementType is Managed. Once set, the managementType cannot be
+ changed.
+ properties:
+ managed:
+ description: managed specifies the behavior of an etcd cluster
+ managed by HyperShift.
+ properties:
+ backup:
+ description: |-
+ backup defines the backup configuration for managed etcd, including
+ optional KMS key settings for artifact encryption in cloud storage.
+ This configuration is only used when an HCPEtcdBackup CR exists.
+ properties:
+ aws:
+ description: |-
+ aws contains AWS-specific backup encryption configuration.
+ Required when platform is "AWS", and forbidden otherwise.
+ properties:
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN
+ (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ required:
+ - kmsKeyARN
+ type: object
+ azure:
+ description: |-
+ azure contains Azure-specific backup encryption configuration.
+ Required when platform is "Azure", and forbidden otherwise.
+ properties:
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS
+ URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure
+ Key Vault (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ required:
+ - encryptionKeyURL
+ type: object
+ platform:
+ description: |-
+ platform specifies the cloud platform for backup encryption configuration.
+ Valid values are "AWS" for AWS KMS encryption and "Azure" for Azure Key Vault encryption.
+ enum:
+ - AWS
+ - Azure
+ type: string
+ required:
+ - platform
+ type: object
+ x-kubernetes-validations:
+ - message: aws configuration is required when platform is
+ AWS, and forbidden otherwise
+ rule: 'self.platform == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: azure configuration is required when platform is
+ Azure, and forbidden otherwise
+ rule: 'self.platform == ''Azure'' ? has(self.azure) : !has(self.azure)'
+ storage:
+ description: storage specifies how etcd data is persisted.
+ properties:
+ persistentVolume:
+ description: |-
+ persistentVolume is the configuration for PersistentVolume etcd storage.
+ With this implementation, a PersistentVolume will be allocated for every
+ etcd member (either 1 or 3 depending on the HostedCluster control plane
+ availability configuration).
+ properties:
+ size:
+ anyOf:
+ - type: integer
+ - type: string
+ default: 8Gi
+ description: |-
+ size is the minimum size of the data volume for each etcd member.
+ Default is 8Gi.
+ This field is immutable
+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
+ x-kubernetes-int-or-string: true
+ x-kubernetes-validations:
+ - message: Etcd PV storage size is immutable
+ rule: self == oldSelf
+ storageClassName:
+ description: |-
+ storageClassName is the StorageClass of the data volume for each etcd member.
+ See https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1.
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: storageClassName is immutable
+ rule: self == oldSelf
+ type: object
+ restoreSnapshotURL:
+ description: |-
+ restoreSnapshotURL allows an optional URL to be provided where
+ an etcd snapshot can be downloaded, for example a pre-signed URL
+ referencing a storage service.
+ This snapshot will be restored on initial startup, only when the etcd PV
+ is empty.
+ items:
+ maxLength: 1024
+ type: string
+ maxItems: 1
+ type: array
+ x-kubernetes-list-type: set
+ x-kubernetes-validations:
+ - message: RestoreSnapshotURL shouldn't contain more than
+ 1 entry
+ rule: self.size() <= 1
+ type:
+ description: |-
+ type is the kind of persistent storage implementation to use for etcd.
+ Only PersistentVolume is supported at the moment.
+ enum:
+ - PersistentVolume
+ type: string
+ required:
+ - type
+ type: object
+ required:
+ - storage
+ type: object
+ managementType:
+ description: |-
+ managementType defines how the etcd cluster is managed.
+ This can be either Managed or Unmanaged.
+ This field is immutable.
+ enum:
+ - Managed
+ - Unmanaged
+ type: string
+ x-kubernetes-validations:
+ - message: managementType is immutable
+ rule: self == oldSelf
+ unmanaged:
+ description: |-
+ unmanaged specifies configuration which enables the control plane to
+ integrate with an externally managed etcd cluster.
+ properties:
+ endpoint:
+ description: |-
+ endpoint is the full etcd cluster client endpoint URL. For example:
+
+ https://etcd-client:2379
+
+ If the URL uses an HTTPS scheme, the TLS field is required.
+ maxLength: 255
+ pattern: ^https://
+ type: string
+ tls:
+ description: tls specifies TLS configuration for HTTPS etcd
+ client endpoints.
+ properties:
+ clientSecret:
+ description: |-
+ clientSecret refers to a secret for client mTLS authentication with the etcd cluster. It
+ may have the following key/value pairs:
+
+ etcd-client-ca.crt: Certificate Authority value
+ etcd-client.crt: Client certificate value
+ etcd-client.key: Client certificate key value
+ 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
+ required:
+ - clientSecret
+ type: object
+ required:
+ - endpoint
+ - tls
+ type: object
+ required:
+ - managementType
+ type: object
+ x-kubernetes-validations:
+ - message: Only managed configuration must be set when managementType
+ is Managed
+ rule: 'self.managementType == ''Managed'' ? has(self.managed) :
+ !has(self.managed)'
+ - message: Only unmanaged configuration must be set when managementType
+ is Unmanaged
+ rule: 'self.managementType == ''Unmanaged'' ? has(self.unmanaged)
+ : !has(self.unmanaged)'
+ fips:
+ description: |-
+ fips indicates whether this cluster's nodes will be running in FIPS mode.
+ If set to true, the control plane's ignition server will be configured to
+ expect that nodes joining the cluster will be FIPS-enabled.
+ type: boolean
+ x-kubernetes-validations:
+ - message: fips is immutable
+ rule: self == oldSelf
+ imageContentSources:
+ description: |-
+ imageContentSources specifies image mirrors that can be used by cluster
+ nodes to pull content.
+ When imageContentSources is set, the controllers will generate a machineConfig.
+ This MachineConfig will be part of every payload generated by the controllers for any NodePool of the HostedCluster.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ items:
+ description: |-
+ ImageContentSource specifies image mirrors that can be used by cluster nodes
+ to pull content. For cluster workloads, if a container image registry host of
+ the pullspec matches Source then one of the Mirrors are substituted as hosts
+ in the pullspec and tried in order to fetch the image.
+ properties:
+ mirrors:
+ description: mirrors are one or more repositories that may also
+ contain the same images.
+ items:
+ maxLength: 255
+ type: string
+ maxItems: 255
+ type: array
+ x-kubernetes-list-type: set
+ source:
+ description: |-
+ source is the repository that users refer to, e.g. in image pull
+ specifications.
+ maxLength: 255
+ type: string
+ required:
+ - source
+ type: object
+ maxItems: 255
+ type: array
+ infraID:
+ description: |-
+ infraID is a globally unique identifier for the cluster.
+ It must consist of lowercase alphanumeric characters and hyphens ('-') only, and start and end with an alphanumeric character.
+ It must be no more than 253 characters in length.
+ This identifier will be used to associate various cloud resources with the HostedCluster and its associated NodePools.
+ infraID is used to compute and tag created resources with "kubernetes.io/cluster/"+hcluster.Spec.InfraID which has contractual meaning for the cloud provider implementations.
+ If a value is not specified, a random infraID will be generated and set by the controller.
+ Once set, this value is immutable.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: infraID must consist of lowercase alphanumeric characters
+ or '-', start and end with an alphanumeric character, and be between
+ 1 and 253 characters
+ rule: self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')
+ - message: infraID is immutable
+ rule: oldSelf == "" || self == oldSelf
+ infrastructureAvailabilityPolicy:
+ default: SingleReplica
+ description: |-
+ infrastructureAvailabilityPolicy specifies the availability policy applied to infrastructure services which run on the hosted cluster data plane like the ingress controller and image registry controller.
+ Possible values are HighlyAvailable and SingleReplica. The default value is SingleReplica.
+ enum:
+ - HighlyAvailable
+ - SingleReplica
+ type: string
+ issuerURL:
+ default: https://kubernetes.default.svc
+ description: |-
+ issuerURL is an OIDC issuer URL which will be used as the issuer in all
+ ServiceAccount tokens generated by the control plane API server via --service-account-issuer kube api server flag.
+ https://k8s-docs.netlify.app/en/docs/reference/command-line-tools-reference/kube-apiserver/
+ https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#serviceaccount-token-volume-projection
+ The default value is kubernetes.default.svc, which only works for in-cluster
+ validation.
+ If the platform is AWS and this value is set, the controller will update an s3 object with the appropriate OIDC documents (using the serviceAccountSigningKey info) into that issuerURL.
+ The expectation is for this s3 url to be backed by an OIDC provider in the AWS IAM.
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: issuerURL is immutable
+ rule: self == oldSelf
+ - message: issuerURL must be a valid absolute URL
+ rule: isURL(self)
+ kubeAPIServerDNSName:
+ description: |-
+ kubeAPIServerDNSName specifies a desired DNS name to resolve to the KAS.
+ When set, the controller will automatically generate a secret with kubeconfig and expose it in the hostedCluster Status.customKubeconfig field.
+ If it's set or removed day 2, the kubeconfig generated secret will be created, recreated or deleted.
+ The DNS entries should be resolvable from the cluster, so this should be manually configured in the DNS provider.
+ This field works in conjunction with configuration.APIServer.ServingCerts.NamedCertificates to enable
+ access to the API server via a custom domain name. The NamedCertificates provide the TLS certificates
+ for the custom domain, while this field triggers the generation of a kubeconfig that uses those certificates.
+ This API endpoint only works in OCP version 4.19 or later. Older versions will result in a no-op.
+ maxLength: 253
+ type: string
+ x-kubernetes-validations:
+ - message: kubeAPIServerDNSName must be a valid URL name (e.g., api.example.com)
+ rule: self == "" || self.matches('^(?:(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}|[a-zA-Z0-9-]+)$')
+ labels:
+ additionalProperties:
+ type: string
+ description: |-
+ labels when specified, define what custom labels are added to the hcp pods.
+ Changing this day 2 will cause a rollout of all hcp pods.
+ Duplicate keys are not supported. If duplicate keys are defined, only the last key/value pair is preserved.
+ Valid values are those in https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set
+
+ -kubebuilder:validation:XValidation:rule=`self.all(key, size(key) <= 317 && key.matches('^(([A-Za-z0-9]+(\\.[A-Za-z0-9]+)?)*[A-Za-z0-9]\\/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$'))`, message="label key must have two segments: an optional prefix and name, separated by a slash (/). The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots (.), not longer than 253 characters in total, followed by a slash (/)"
+ -kubebuilder:validation:XValidation:rule=`self.all(key, size(self[key]) <= 63 && self[key].matches('^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$'))`, message="label value must be 63 characters or less (can be empty), consist of alphanumeric characters, dashes (-), underscores (_) or dots (.), and begin and end with an alphanumeric character"
+ maxProperties: 20
+ type: object
+ networking:
+ default:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ description: |-
+ networking specifies network configuration for the hosted cluster.
+ Defaults to OVNKubernetes with a cluster network of cidr: "10.132.0.0/14" and a service network of cidr: "172.31.0.0/16".
+ properties:
+ allocateNodeCIDRs:
+ description: |-
+ allocateNodeCIDRs controls whether the kube-controller-manager manages node CIDR allocation.
+ When using networkType=Other, it is recommended to set this field to "Enabled"
+ if Flannel is used as the CNI, as it relies on this behavior.
+ Default is "Disabled".
+ This field can only be set to "Enabled" when NetworkType is "Other". Setting it to "Enabled"
+ with any other NetworkType will result in a validation error during cluster creation.
+ enum:
+ - Enabled
+ - Disabled
+ type: string
+ x-kubernetes-validations:
+ - message: allocateNodeCIDRs is immutable and cannot be modified
+ once set.
+ rule: self == oldSelf
+ apiServer:
+ description: |-
+ apiServer contains advanced network settings for the API server that affect
+ how the APIServer is exposed inside a hosted cluster node.
+ properties:
+ advertiseAddress:
+ description: |-
+ advertiseAddress is the address that pods within the nodes will use to talk to the API
+ server. This is an address associated with the loopback adapter of each
+ node. If not specified, the controller will take default values.
+ The default values will be set as 172.20.0.1 or fd00::1.
+ This value is immutable.
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: advertiseAddress is immutable
+ rule: self == oldSelf
+ allowedCIDRBlocks:
+ description: |-
+ allowedCIDRBlocks is an allow list of CIDR blocks that can access the APIServer.
+ If not specified, traffic is allowed from all addresses.
+ This field is enforced for ARO (Azure Red Hat OpenShift) via the shared-ingress HAProxy.
+ For platforms other than ARO, the enforcement depends on whether the underlying cloud provider supports the Service LoadBalancerSourceRanges field.
+ If the platform does not support LoadBalancerSourceRanges, this field may have no effect.
+ items:
+ maxLength: 43
+ type: string
+ x-kubernetes-validations:
+ - message: cidr must be a valid IPv4 or IPv6 CIDR notation
+ (e.g., 192.168.1.0/24 or 2001:db8::/64)
+ rule: self.matches('^((\\d{1,3}\\.){3}\\d{1,3}/\\d{1,2})$')
+ || self.matches('^([0-9a-fA-F]{0,4}:){2,7}([0-9a-fA-F]{0,4})?/[0-9]{1,3}$')
+ maxItems: 500
+ type: array
+ x-kubernetes-list-type: set
+ port:
+ description: |-
+ port is the port at which the APIServer is exposed inside a node. Other
+ pods using host networking cannot listen on this port.
+ If omitted 6443 is used.
+ This is useful to choose a port other than the default one which might interfere with customer environments e.g. https://github.com/openshift/hypershift/pull/356.
+ Setting this to 443 is possible only for backward compatibility reasons and it's discouraged.
+ Doing so, it would result in the controller overriding the KAS endpoint in the guest cluster having a discrepancy with the KAS Pod and potentially causing temporarily network failures.
+ This value is immutable.
+ format: int32
+ type: integer
+ x-kubernetes-validations:
+ - message: port is immutable
+ rule: self == oldSelf
+ type: object
+ clusterNetwork:
+ default:
+ - cidr: 10.132.0.0/14
+ description: |-
+ clusterNetwork is the list of IP address pools for pods.
+ Defaults to cidr: "10.132.0.0/14".
+ Currently only one entry is supported.
+ This field is immutable.
+ items:
+ description: |-
+ ClusterNetworkEntry is a single IP address block for pod IP blocks. IP blocks
+ are allocated with size 2^HostSubnetLength.
+ properties:
+ cidr:
+ description: cidr is the IP block address pool.
+ maxLength: 43
+ type: string
+ x-kubernetes-validations:
+ - message: cidr must be a valid IPv4 or IPv6 CIDR notation
+ (e.g., 192.168.1.0/24 or 2001:db8::/64)
+ rule: self.matches('^((\\d{1,3}\\.){3}\\d{1,3}/\\d{1,2})$')
+ || self.matches('^([0-9a-fA-F]{0,4}:){2,7}([0-9a-fA-F]{0,4})?/[0-9]{1,3}$')
+ hostPrefix:
+ description: |-
+ hostPrefix is the prefix size to allocate to each node from the CIDR.
+ For example, 24 would allocate 2^(32-24)=2^8=256 addresses to each node. If this
+ field is not used by the plugin, it can be left unset.
+ format: int32
+ type: integer
+ required:
+ - cidr
+ type: object
+ maxItems: 2
+ minItems: 1
+ type: array
+ x-kubernetes-validations:
+ - message: clusterNetwork is immutable and cannot be modified
+ once set.
+ rule: self == oldSelf
+ machineNetwork:
+ description: |-
+ machineNetwork is the list of IP address pools for machines.
+ This might be used among other things to generate appropriate networking security groups in some clouds providers.
+ Currently only one entry or two for dual stack is supported.
+ This field is immutable.
+ items:
+ description: MachineNetworkEntry is a single IP address block
+ for node IP blocks.
+ properties:
+ cidr:
+ description: cidr is the IP block address pool for machines
+ within the cluster.
+ maxLength: 43
+ type: string
+ x-kubernetes-validations:
+ - message: cidr must be a valid IPv4 or IPv6 CIDR notation
+ (e.g., 192.168.1.0/24 or 2001:db8::/64)
+ rule: self.matches('^((\\d{1,3}\\.){3}\\d{1,3}/\\d{1,2})$')
+ || self.matches('^([0-9a-fA-F]{0,4}:){2,7}([0-9a-fA-F]{0,4})?/[0-9]{1,3}$')
+ required:
+ - cidr
+ type: object
+ maxItems: 2
+ minItems: 1
+ type: array
+ x-kubernetes-validations:
+ - message: machineNetwork is immutable and cannot be modified
+ once set.
+ rule: self == oldSelf
+ networkType:
+ default: OVNKubernetes
+ description: |-
+ networkType specifies the SDN provider used for cluster networking.
+ Defaults to OVNKubernetes.
+ This field is required and immutable.
+ kubebuilder:validation:XValidation:rule="self == oldSelf", message="networkType is immutable"
+ enum:
+ - OpenShiftSDN
+ - Calico
+ - OVNKubernetes
+ - Other
+ type: string
+ serviceNetwork:
+ default:
+ - cidr: 172.31.0.0/16
+ description: |-
+ serviceNetwork is the list of IP address pools for services.
+ Defaults to cidr: "172.31.0.0/16".
+ Currently only one entry is supported.
+ This field is immutable.
+ items:
+ description: ServiceNetworkEntry is a single IP address block
+ for the service network.
+ properties:
+ cidr:
+ description: cidr is the IP block address pool for services
+ within the cluster in CIDR format (e.g., 192.168.1.0/24
+ or 2001:0db8::/64)
+ maxLength: 43
+ type: string
+ x-kubernetes-validations:
+ - message: cidr must be a valid IPv4 or IPv6 CIDR notation
+ (e.g., 192.168.1.0/24 or 2001:db8::/64)
+ rule: self.matches('^((\\d{1,3}\\.){3}\\d{1,3}/\\d{1,2})$')
+ || self.matches('^([0-9a-fA-F]{0,4}:){2,7}([0-9a-fA-F]{0,4})?/[0-9]{1,3}$')
+ required:
+ - cidr
+ type: object
+ maxItems: 2
+ minItems: 1
+ type: array
+ x-kubernetes-validations:
+ - message: serviceNetwork is immutable and cannot be modified
+ once set.
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: CIDR ranges in machineNetwork, clusterNetwork, and serviceNetwork
+ must be unique and non-overlapping
+ rule: (!has(self.machineNetwork) && self.clusterNetwork.all(c, self.serviceNetwork.all(s,
+ c.cidr != s.cidr)) || (has(self.machineNetwork) && (self.machineNetwork.all(m,
+ self.clusterNetwork.all(c, m.cidr != c.cidr)) && self.machineNetwork.all(m,
+ self.serviceNetwork.all(s, m.cidr != s.cidr)) && self.clusterNetwork.all(c,
+ self.serviceNetwork.all(s, c.cidr != s.cidr)))))
+ - message: allocateNodeCIDRs can only be set to Enabled when networkType
+ is 'Other'
+ rule: 'has(self.allocateNodeCIDRs) && self.allocateNodeCIDRs ==
+ ''Enabled'' ? self.networkType == ''Other'' : true'
+ nodeSelector:
+ additionalProperties:
+ type: string
+ description: |-
+ nodeSelector when specified, is propagated to all control plane Deployments and Stateful sets running management side.
+ It must be satisfied by the management Nodes for the pods to be scheduled. Otherwise the HostedCluster will enter a degraded state.
+ Changes to this field will propagate to existing Deployments and StatefulSets.
+ type: object
+ x-kubernetes-validations:
+ - message: nodeSelector map can have at most 20 entries
+ rule: size(self) <= 20
+ olmCatalogPlacement:
+ default: management
+ description: |-
+ olmCatalogPlacement specifies the placement of OLM catalog components. By default,
+ this is set to management and OLM catalog components are deployed onto the management
+ cluster. If set to guest, the OLM catalog components will be deployed onto the guest
+ cluster.
+ enum:
+ - management
+ - guest
+ type: string
+ x-kubernetes-validations:
+ - message: OLMCatalogPlacement is immutable
+ rule: self == oldSelf
+ operatorConfiguration:
+ description: operatorConfiguration specifies configuration for individual
+ OCP operators in the cluster.
+ properties:
+ clusterNetworkOperator:
+ description: clusterNetworkOperator specifies the configuration
+ for the Cluster Network Operator in the hosted cluster.
+ properties:
+ disableMultiNetwork:
+ default: false
+ description: |-
+ disableMultiNetwork when set to true disables the Multus CNI plugin and related components
+ in the hosted cluster. This prevents the installation of multus daemon sets in the
+ guest cluster and the multus-admission-controller in the management cluster.
+ Default is false (Multus is enabled).
+ This field is immutable.
+ This field can only be set to true when NetworkType is "Other". Setting it to true
+ with any other NetworkType will result in a validation error during cluster creation.
+ type: boolean
+ x-kubernetes-validations:
+ - message: disableMultiNetwork is immutable
+ rule: self == oldSelf
+ ovnKubernetesConfig:
+ description: |-
+ ovnKubernetesConfig holds OVN-Kubernetes specific configuration.
+ This is only consumed when NetworkType is OVNKubernetes.
+ minProperties: 1
+ properties:
+ ipv4:
+ description: |-
+ ipv4 allows users to configure IP settings for IPv4 connections. When omitted,
+ this means no opinions and the default configuration is used. Check individual
+ fields within ipv4 for details of default values.
+ minProperties: 1
+ properties:
+ internalJoinSubnet:
+ description: |-
+ internalJoinSubnet is a v4 subnet used internally by ovn-kubernetes in case the
+ default one is being already used by something else. It must not overlap with
+ any other subnet being used by OpenShift or by the node network. The size of the
+ subnet must be larger than the number of nodes.
+ The current default value is 100.64.0.0/16
+ The subnet must be large enough to accommodate one IP per node in your cluster
+ The value must be in proper IPV4 CIDR format
+ maxLength: 18
+ minLength: 9
+ type: string
+ x-kubernetes-validations:
+ - message: Subnet must be in a valid IPv4 CIDR format
+ (e.g., 192.168.1.1/24)
+ rule: self.matches('^([0-9]{1,3}\\.){3}[0-9]{1,3}/([0-9]|[1-2][0-9]|3[0-2])$')
+ && self.split('/')[0].split('.').all(oct, int(oct)
+ >= 0 && int(oct) <= 255)
+ - message: subnet must be in the range /0 to /30 inclusive
+ rule: self.matches('^.*/[0-9]+$') && int(self.split('/')[1])
+ <= 30
+ - message: first IP address octet must not be 0
+ rule: self.matches('^[0-9]{1,3}\\..*') && int(self.split('/')[0].split('.')[0])
+ > 0
+ internalTransitSwitchSubnet:
+ description: |-
+ internalTransitSwitchSubnet is a v4 subnet in IPV4 CIDR format used internally
+ by OVN-Kubernetes for the distributed transit switch in the OVN Interconnect
+ architecture that connects the cluster routers on each node together to enable
+ east west traffic. The subnet chosen should not overlap with other networks
+ specified for OVN-Kubernetes as well as other networks used on the host.
+ When omitted, this means no opinion and the platform is left to choose a reasonable
+ default which is subject to change over time.
+ The current default subnet is 100.88.0.0/16
+ The subnet must be large enough to accommodate one IP per node in your cluster
+ The value must be in proper IPV4 CIDR format
+ maxLength: 18
+ minLength: 9
+ type: string
+ x-kubernetes-validations:
+ - message: Subnet must be in a valid IPv4 CIDR format
+ rule: self.matches('^([0-9]{1,3}\\.){3}[0-9]{1,3}/([0-9]|[1-2][0-9]|3[0-2])$')
+ && self.split('/')[0].split('.').all(oct, int(oct)
+ >= 0 && int(oct) <= 255)
+ - message: subnet must be in the range /0 to /30 inclusive
+ rule: self.matches('^.*/[0-9]+$') && int(self.split('/')[1])
+ <= 30
+ - message: first IP address octet must not be 0
+ rule: self.matches('^[0-9]{1,3}\\..*') && int(self.split('/')[0].split('.')[0])
+ > 0
+ type: object
+ type: object
+ x-kubernetes-validations:
+ - message: internalJoinSubnet and internalTransitSwitchSubnet
+ must not be the same
+ rule: '!has(self.ipv4) || !has(self.ipv4.internalJoinSubnet)
+ || !has(self.ipv4.internalTransitSwitchSubnet) || self.ipv4.internalJoinSubnet
+ != self.ipv4.internalTransitSwitchSubnet'
+ type: object
+ ingressOperator:
+ description: |-
+ ingressOperator specifies the configuration for the Ingress Operator in the hosted cluster.
+ This allows configuring how the default ingress controller endpoints are published.
+ properties:
+ endpointPublishingStrategy:
+ description: |-
+ endpointPublishingStrategy is used to publish the default ingress controller endpoints.
+
+ The endpoint publishing strategy is determined by the following precedence order:
+ 1. User-specified endpointPublishingStrategy (highest priority) - if this field is set,
+ it takes precedence over all other configuration methods
+ 2. Platform-specific defaults with annotation overrides - if no user strategy is set,
+ the platform type determines the default strategy, which can be further modified by:
+ - hypershift.openshift.io/private-ingress-controller annotation (sets PrivateStrategyType)
+ - hypershift.openshift.io/ingress-controller-load-balancer-scope annotation (sets LoadBalancerScope)
+ 3. Generic LoadBalancer fallback - if the platform is not recognized, defaults to
+ LoadBalancerService with External scope
+
+ Platform-specific defaults when endpointPublishingStrategy is not set:
+ - AWS: LoadBalancerService with External scope (or NLB if configured)
+ - Azure, GCP: LoadBalancerService with External scope
+ - IBMCloud: LoadBalancerService with External scope (or NodePort for UPI)
+ - None: HostNetwork
+ - KubeVirt: NodePortService
+ - OpenStack: LoadBalancerService with External scope and optional FloatingIP
+ - Other platforms: LoadBalancerService with External scope
+
+ See the OpenShift Ingress Operator EndpointPublishingStrategy type for the full specification:
+ https://github.com/openshift/api/blob/master/operator/v1/types_ingress.go
+ properties:
+ hostNetwork:
+ description: |-
+ hostNetwork holds parameters for the HostNetwork endpoint publishing
+ strategy. Present only if type is HostNetwork.
+ properties:
+ httpPort:
+ default: 80
+ description: |-
+ httpPort is the port on the host which should be used to listen for
+ HTTP requests. This field should be set when port 80 is already in use.
+ The value should not coincide with the NodePort range of the cluster.
+ When the value is 0 or is not specified it defaults to 80.
+ format: int32
+ maximum: 65535
+ minimum: 0
+ type: integer
+ httpsPort:
+ default: 443
+ description: |-
+ httpsPort is the port on the host which should be used to listen for
+ HTTPS requests. This field should be set when port 443 is already in use.
+ The value should not coincide with the NodePort range of the cluster.
+ When the value is 0 or is not specified it defaults to 443.
+ format: int32
+ maximum: 65535
+ minimum: 0
+ type: integer
+ protocol:
+ description: |-
+ protocol specifies whether the IngressController expects incoming
+ connections to use plain TCP or whether the IngressController expects
+ PROXY protocol.
+
+ PROXY protocol can be used with load balancers that support it to
+ communicate the source addresses of client connections when
+ forwarding those connections to the IngressController. Using PROXY
+ protocol enables the IngressController to report those source
+ addresses instead of reporting the load balancer's address in HTTP
+ headers and logs. Note that enabling PROXY protocol on the
+ IngressController will cause connections to fail if you are not using
+ a load balancer that uses PROXY protocol to forward connections to
+ the IngressController. See
+ http://www.haproxy.org/download/2.2/doc/proxy-protocol.txt for
+ information about PROXY protocol.
+
+ The following values are valid for this field:
+
+ * The empty string.
+ * "TCP".
+ * "PROXY".
+
+ The empty string specifies the default, which is TCP without PROXY
+ protocol. Note that the default is subject to change.
+ enum:
+ - ""
+ - TCP
+ - PROXY
+ type: string
+ statsPort:
+ default: 1936
+ description: |-
+ statsPort is the port on the host where the stats from the router are
+ published. The value should not coincide with the NodePort range of the
+ cluster. If an external load balancer is configured to forward connections
+ to this IngressController, the load balancer should use this port for
+ health checks. The load balancer can send HTTP probes on this port on a
+ given node, with the path /healthz/ready to determine if the ingress
+ controller is ready to receive traffic on the node. For proper operation
+ the load balancer must not forward traffic to a node until the health
+ check reports ready. The load balancer should also stop forwarding requests
+ within a maximum of 45 seconds after /healthz/ready starts reporting
+ not-ready. Probing every 5 to 10 seconds, with a 5-second timeout and with
+ a threshold of two successful or failed requests to become healthy or
+ unhealthy respectively, are well-tested values. When the value is 0 or
+ is not specified it defaults to 1936.
+ format: int32
+ maximum: 65535
+ minimum: 0
+ type: integer
+ type: object
+ loadBalancer:
+ description: |-
+ loadBalancer holds parameters for the load balancer. Present only if
+ type is LoadBalancerService.
+ properties:
+ allowedSourceRanges:
+ description: |-
+ allowedSourceRanges specifies an allowlist of IP address ranges to which
+ access to the load balancer should be restricted. Each range must be
+ specified using CIDR notation (e.g. "10.0.0.0/8" or "fd00::/8"). If no range is
+ specified, "0.0.0.0/0" for IPv4 and "::/0" for IPv6 are used by default,
+ which allows all source addresses.
+
+ To facilitate migration from earlier versions of OpenShift that did
+ not have the allowedSourceRanges field, you may set the
+ service.beta.kubernetes.io/load-balancer-source-ranges annotation on
+ the "router-" service in the
+ "openshift-ingress" namespace, and this annotation will take
+ effect if allowedSourceRanges is empty on OpenShift 4.12.
+ items:
+ description: |-
+ CIDR is an IP address range in CIDR notation (for example, "10.0.0.0/8"
+ or "fd00::/8").
+ pattern: (^(([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|[12][0-9]|3[0-2])$)|(^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*(\/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9]))$)
+ type: string
+ nullable: true
+ type: array
+ x-kubernetes-list-type: atomic
+ dnsManagementPolicy:
+ default: Managed
+ description: |-
+ dnsManagementPolicy indicates if the lifecycle of the wildcard DNS record
+ associated with the load balancer service will be managed by
+ the ingress operator. It defaults to Managed.
+ Valid values are: Managed and Unmanaged.
+ enum:
+ - Managed
+ - Unmanaged
+ type: string
+ providerParameters:
+ description: |-
+ providerParameters holds desired load balancer information specific to
+ the underlying infrastructure provider.
+
+ If empty, defaults will be applied. See specific providerParameters
+ fields for details about their defaults.
+ properties:
+ aws:
+ description: |-
+ aws provides configuration settings that are specific to AWS
+ load balancers.
+
+ If empty, defaults will be applied. See specific aws fields for
+ details about their defaults.
+ properties:
+ classicLoadBalancer:
+ description: |-
+ classicLoadBalancerParameters holds configuration parameters for an AWS
+ classic load balancer. Present only if type is Classic.
+ properties:
+ connectionIdleTimeout:
+ description: |-
+ connectionIdleTimeout specifies the maximum time period that a
+ connection may be idle before the load balancer closes the
+ connection. The value must be parseable as a time duration value;
+ see . A nil or zero value
+ means no opinion, in which case a default value is used. The default
+ value for this field is 60s. This default is subject to change.
+ format: duration
+ type: string
+ subnets:
+ description: |-
+ subnets specifies the subnets to which the load balancer will
+ attach. The subnets may be specified by either their
+ ID or name. The total number of subnets is limited to 10.
+
+ In order for the load balancer to be provisioned with subnets,
+ each subnet must exist, each subnet must be from a different
+ availability zone, and the load balancer service must be
+ recreated to pick up new values.
+
+ When omitted from the spec, the subnets will be auto-discovered
+ for each availability zone. Auto-discovered subnets are not reported
+ in the status of the IngressController object.
+ properties:
+ ids:
+ description: |-
+ ids specifies a list of AWS subnets by subnet ID.
+ Subnet IDs must start with "subnet-", consist only
+ of alphanumeric characters, must be exactly 24
+ characters long, must be unique, and the total
+ number of subnets specified by ids and names
+ must not exceed 10.
+ items:
+ description: AWSSubnetID is a reference
+ to an AWS subnet ID.
+ maxLength: 24
+ minLength: 24
+ pattern: ^subnet-[0-9A-Za-z]+$
+ type: string
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: subnet ids cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ names:
+ description: |-
+ names specifies a list of AWS subnets by subnet name.
+ Subnet names must not start with "subnet-", must not
+ include commas, must be under 256 characters in length,
+ must be unique, and the total number of subnets
+ specified by ids and names must not exceed 10.
+ items:
+ description: AWSSubnetName is a
+ reference to an AWS subnet name.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: subnet name cannot contain
+ a comma
+ rule: '!self.contains('','')'
+ - message: subnet name cannot start
+ with 'subnet-'
+ rule: '!self.startsWith(''subnet-'')'
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: subnet names cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ type: object
+ x-kubernetes-validations:
+ - message: the total number of subnets
+ cannot exceed 10
+ rule: 'has(self.ids) && has(self.names)
+ ? size(self.ids + self.names) <= 10
+ : true'
+ - message: must specify at least 1 subnet
+ name or id
+ rule: has(self.ids) && self.ids.size()
+ > 0 || has(self.names) && self.names.size()
+ > 0
+ type: object
+ networkLoadBalancer:
+ description: |-
+ networkLoadBalancerParameters holds configuration parameters for an AWS
+ network load balancer. Present only if type is NLB.
+ properties:
+ eipAllocations:
+ description: |-
+ eipAllocations is a list of IDs for Elastic IP (EIP) addresses that
+ are assigned to the Network Load Balancer.
+ The following restrictions apply:
+
+ eipAllocations can only be used with external scope, not internal.
+ An EIP can be allocated to only a single IngressController.
+ The number of EIP allocations must match the number of subnets that are used for the load balancer.
+ Each EIP allocation must be unique.
+ A maximum of 10 EIP allocations are permitted.
+
+ See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html for general
+ information about configuration, characteristics, and limitations of Elastic IP addresses.
+ items:
+ description: |-
+ EIPAllocation is an ID for an Elastic IP (EIP) address that can be allocated to an ELB in the AWS environment.
+ Values must begin with `eipalloc-` followed by exactly 17 hexadecimal (`[0-9a-fA-F]`) characters.
+ maxLength: 26
+ minLength: 26
+ type: string
+ x-kubernetes-validations:
+ - message: eipAllocations should start
+ with 'eipalloc-'
+ rule: self.startsWith('eipalloc-')
+ - message: eipAllocations must be 'eipalloc-'
+ followed by exactly 17 hexadecimal
+ characters (0-9, a-f, A-F)
+ rule: self.split("-", 2)[1].matches('[0-9a-fA-F]{17}$')
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: eipAllocations cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ subnets:
+ description: |-
+ subnets specifies the subnets to which the load balancer will
+ attach. The subnets may be specified by either their
+ ID or name. The total number of subnets is limited to 10.
+
+ In order for the load balancer to be provisioned with subnets,
+ each subnet must exist, each subnet must be from a different
+ availability zone, and the load balancer service must be
+ recreated to pick up new values.
+
+ When omitted from the spec, the subnets will be auto-discovered
+ for each availability zone. Auto-discovered subnets are not reported
+ in the status of the IngressController object.
+ properties:
+ ids:
+ description: |-
+ ids specifies a list of AWS subnets by subnet ID.
+ Subnet IDs must start with "subnet-", consist only
+ of alphanumeric characters, must be exactly 24
+ characters long, must be unique, and the total
+ number of subnets specified by ids and names
+ must not exceed 10.
+ items:
+ description: AWSSubnetID is a reference
+ to an AWS subnet ID.
+ maxLength: 24
+ minLength: 24
+ pattern: ^subnet-[0-9A-Za-z]+$
+ type: string
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: subnet ids cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ names:
+ description: |-
+ names specifies a list of AWS subnets by subnet name.
+ Subnet names must not start with "subnet-", must not
+ include commas, must be under 256 characters in length,
+ must be unique, and the total number of subnets
+ specified by ids and names must not exceed 10.
+ items:
+ description: AWSSubnetName is a
+ reference to an AWS subnet name.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: subnet name cannot contain
+ a comma
+ rule: '!self.contains('','')'
+ - message: subnet name cannot start
+ with 'subnet-'
+ rule: '!self.startsWith(''subnet-'')'
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: subnet names cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ type: object
+ x-kubernetes-validations:
+ - message: the total number of subnets
+ cannot exceed 10
+ rule: 'has(self.ids) && has(self.names)
+ ? size(self.ids + self.names) <= 10
+ : true'
+ - message: must specify at least 1 subnet
+ name or id
+ rule: has(self.ids) && self.ids.size()
+ > 0 || has(self.names) && self.names.size()
+ > 0
+ type: object
+ x-kubernetes-validations:
+ - message: number of subnets must be equal
+ to number of eipAllocations
+ rule: 'has(self.subnets) && has(self.subnets.ids)
+ && has(self.subnets.names) && has(self.eipAllocations)
+ ? size(self.subnets.ids + self.subnets.names)
+ == size(self.eipAllocations) : true'
+ - message: number of subnets must be equal
+ to number of eipAllocations
+ rule: 'has(self.subnets) && has(self.subnets.ids)
+ && !has(self.subnets.names) && has(self.eipAllocations)
+ ? size(self.subnets.ids) == size(self.eipAllocations)
+ : true'
+ - message: number of subnets must be equal
+ to number of eipAllocations
+ rule: 'has(self.subnets) && has(self.subnets.names)
+ && !has(self.subnets.ids) && has(self.eipAllocations)
+ ? size(self.subnets.names) == size(self.eipAllocations)
+ : true'
+ type:
+ description: |-
+ type is the type of AWS load balancer to instantiate for an ingresscontroller.
+
+ Valid values are:
+
+ * "Classic": A Classic Load Balancer that makes routing decisions at either
+ the transport layer (TCP/SSL) or the application layer (HTTP/HTTPS). See
+ the following for additional details:
+
+ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#clb
+
+ * "NLB": A Network Load Balancer that makes routing decisions at the
+ transport layer (TCP/SSL). See the following for additional details:
+
+ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#nlb
+ enum:
+ - Classic
+ - NLB
+ type: string
+ required:
+ - type
+ type: object
+ gcp:
+ description: |-
+ gcp provides configuration settings that are specific to GCP
+ load balancers.
+
+ If empty, defaults will be applied. See specific gcp fields for
+ details about their defaults.
+ properties:
+ clientAccess:
+ description: |-
+ clientAccess describes how client access is restricted for internal
+ load balancers.
+
+ Valid values are:
+ * "Global": Specifying an internal load balancer with Global client access
+ allows clients from any region within the VPC to communicate with the load
+ balancer.
+
+ https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing#global_access
+
+ * "Local": Specifying an internal load balancer with Local client access
+ means only clients within the same region (and VPC) as the GCP load balancer
+ can communicate with the load balancer. Note that this is the default behavior.
+
+ https://cloud.google.com/load-balancing/docs/internal#client_access
+ enum:
+ - Global
+ - Local
+ type: string
+ type: object
+ ibm:
+ description: |-
+ ibm provides configuration settings that are specific to IBM Cloud
+ load balancers.
+
+ If empty, defaults will be applied. See specific ibm fields for
+ details about their defaults.
+ properties:
+ protocol:
+ description: |-
+ protocol specifies whether the load balancer uses PROXY protocol to forward connections to
+ the IngressController. See "service.kubernetes.io/ibm-load-balancer-cloud-provider-enable-features:
+ "proxy-protocol"" at https://cloud.ibm.com/docs/containers?topic=containers-vpc-lbaas"
+
+ PROXY protocol can be used with load balancers that support it to
+ communicate the source addresses of client connections when
+ forwarding those connections to the IngressController. Using PROXY
+ protocol enables the IngressController to report those source
+ addresses instead of reporting the load balancer's address in HTTP
+ headers and logs. Note that enabling PROXY protocol on the
+ IngressController will cause connections to fail if you are not using
+ a load balancer that uses PROXY protocol to forward connections to
+ the IngressController. See
+ http://www.haproxy.org/download/2.2/doc/proxy-protocol.txt for
+ information about PROXY protocol.
+
+ Valid values for protocol are TCP, PROXY and omitted.
+ When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
+ The current default is TCP, without the proxy protocol enabled.
+ enum:
+ - ""
+ - TCP
+ - PROXY
+ type: string
+ type: object
+ openstack:
+ description: |-
+ openstack provides configuration settings that are specific to OpenStack
+ load balancers.
+
+ If empty, defaults will be applied. See specific openstack fields for
+ details about their defaults.
+ properties:
+ floatingIP:
+ description: |-
+ floatingIP specifies the IP address that the load balancer will use.
+ When not specified, an IP address will be assigned randomly by the OpenStack cloud provider.
+ When specified, the floating IP has to be pre-created. If the
+ specified value is not a floating IP or is already claimed, the
+ OpenStack cloud provider won't be able to provision the load
+ balancer.
+ This field may only be used if the IngressController has External scope.
+ This value must be a valid IPv4 or IPv6 address.
+ type: string
+ x-kubernetes-validations:
+ - message: floatingIP must be a valid IPv4
+ or IPv6 address
+ rule: isIP(self)
+ type: object
+ type:
+ description: |-
+ type is the underlying infrastructure provider for the load balancer.
+ Allowed values are "AWS", "Azure", "BareMetal", "GCP", "IBM", "Nutanix",
+ "OpenStack", and "VSphere".
+ enum:
+ - AWS
+ - Azure
+ - BareMetal
+ - GCP
+ - Nutanix
+ - OpenStack
+ - VSphere
+ - IBM
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-validations:
+ - message: openstack is not permitted when type is
+ not OpenStack
+ rule: 'has(self.type) && self.type == ''OpenStack''
+ ? true : !has(self.openstack)'
+ scope:
+ description: |-
+ scope indicates the scope at which the load balancer is exposed.
+ Possible values are "External" and "Internal".
+ enum:
+ - Internal
+ - External
+ type: string
+ required:
+ - dnsManagementPolicy
+ - scope
+ type: object
+ x-kubernetes-validations:
+ - message: eipAllocations are forbidden when the scope
+ is Internal.
+ rule: '!has(self.scope) || self.scope != ''Internal''
+ || !has(self.providerParameters) || !has(self.providerParameters.aws)
+ || !has(self.providerParameters.aws.networkLoadBalancer)
+ || !has(self.providerParameters.aws.networkLoadBalancer.eipAllocations)'
+ - message: cannot specify a floating ip when scope is
+ internal
+ rule: '!has(self.scope) || self.scope != ''Internal''
+ || !has(self.providerParameters) || !has(self.providerParameters.openstack)
+ || !has(self.providerParameters.openstack.floatingIP)
+ || self.providerParameters.openstack.floatingIP ==
+ ""'
+ nodePort:
+ description: |-
+ nodePort holds parameters for the NodePortService endpoint publishing strategy.
+ Present only if type is NodePortService.
+ properties:
+ protocol:
+ description: |-
+ protocol specifies whether the IngressController expects incoming
+ connections to use plain TCP or whether the IngressController expects
+ PROXY protocol.
+
+ PROXY protocol can be used with load balancers that support it to
+ communicate the source addresses of client connections when
+ forwarding those connections to the IngressController. Using PROXY
+ protocol enables the IngressController to report those source
+ addresses instead of reporting the load balancer's address in HTTP
+ headers and logs. Note that enabling PROXY protocol on the
+ IngressController will cause connections to fail if you are not using
+ a load balancer that uses PROXY protocol to forward connections to
+ the IngressController. See
+ http://www.haproxy.org/download/2.2/doc/proxy-protocol.txt for
+ information about PROXY protocol.
+
+ The following values are valid for this field:
+
+ * The empty string.
+ * "TCP".
+ * "PROXY".
+
+ The empty string specifies the default, which is TCP without PROXY
+ protocol. Note that the default is subject to change.
+ enum:
+ - ""
+ - TCP
+ - PROXY
+ type: string
+ type: object
+ private:
+ description: |-
+ private holds parameters for the Private endpoint publishing
+ strategy. Present only if type is Private.
+ properties:
+ protocol:
+ description: |-
+ protocol specifies whether the IngressController expects incoming
+ connections to use plain TCP or whether the IngressController expects
+ PROXY protocol.
+
+ PROXY protocol can be used with load balancers that support it to
+ communicate the source addresses of client connections when
+ forwarding those connections to the IngressController. Using PROXY
+ protocol enables the IngressController to report those source
+ addresses instead of reporting the load balancer's address in HTTP
+ headers and logs. Note that enabling PROXY protocol on the
+ IngressController will cause connections to fail if you are not using
+ a load balancer that uses PROXY protocol to forward connections to
+ the IngressController. See
+ http://www.haproxy.org/download/2.2/doc/proxy-protocol.txt for
+ information about PROXY protocol.
+
+ The following values are valid for this field:
+
+ * The empty string.
+ * "TCP".
+ * "PROXY".
+
+ The empty string specifies the default, which is TCP without PROXY
+ protocol. Note that the default is subject to change.
+ enum:
+ - ""
+ - TCP
+ - PROXY
+ type: string
+ type: object
+ type:
+ description: |-
+ type is the publishing strategy to use. Valid values are:
+
+ * LoadBalancerService
+
+ Publishes the ingress controller using a Kubernetes LoadBalancer Service.
+
+ In this configuration, the ingress controller deployment uses container
+ networking. A LoadBalancer Service is created to publish the deployment.
+
+ See: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
+
+ If domain is set, a wildcard DNS record will be managed to point at the
+ LoadBalancer Service's external name. DNS records are managed only in DNS
+ zones defined by dns.config.openshift.io/cluster .spec.publicZone and
+ .spec.privateZone.
+
+ Wildcard DNS management is currently supported only on the AWS, Azure,
+ and GCP platforms.
+
+ * HostNetwork
+
+ Publishes the ingress controller on node ports where the ingress controller
+ is deployed.
+
+ In this configuration, the ingress controller deployment uses host
+ networking, bound to node ports 80 and 443. The user is responsible for
+ configuring an external load balancer to publish the ingress controller via
+ the node ports.
+
+ * Private
+
+ Does not publish the ingress controller.
+
+ In this configuration, the ingress controller deployment uses container
+ networking, and is not explicitly published. The user must manually publish
+ the ingress controller.
+
+ * NodePortService
+
+ Publishes the ingress controller using a Kubernetes NodePort Service.
+
+ In this configuration, the ingress controller deployment uses container
+ networking. A NodePort Service is created to publish the deployment. The
+ specific node ports are dynamically allocated by OpenShift; however, to
+ support static port allocations, user changes to the node port
+ field of the managed NodePort Service will preserved.
+ enum:
+ - LoadBalancerService
+ - HostNetwork
+ - Private
+ - NodePortService
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ type: object
+ type: object
+ pausedUntil:
+ description: |-
+ pausedUntil is a field that can be used to pause reconciliation on the HostedCluster controller, resulting in any change to the HostedCluster being ignored.
+ Either a date can be provided in RFC3339 format or a boolean as in 'true', 'false', 'True', 'False'. If a date is
+ provided: reconciliation is paused on the resource until that date. If the boolean true is
+ provided: reconciliation is paused on the resource until the field is removed.
+ maxLength: 35
+ minLength: 4
+ type: string
+ x-kubernetes-validations:
+ - message: PausedUntil must be a date in RFC3339 format or 'True',
+ 'true', 'False' or 'false'
+ rule: self.matches('^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.*$')
+ || self in ['true', 'false', 'True', 'False']
+ platform:
+ description: |-
+ platform specifies the underlying infrastructure provider for the cluster
+ and is used to configure platform specific behavior.
+ properties:
+ agent:
+ description: agent specifies configuration for agent-based installations.
+ properties:
+ agentNamespace:
+ description: agentNamespace is the namespace where to search
+ for Agents for this cluster
+ maxLength: 63
+ type: string
+ required:
+ - agentNamespace
+ type: object
+ aws:
+ description: aws specifies configuration for clusters running
+ on Amazon Web Services.
+ properties:
+ additionalAllowedPrincipals:
+ description: |-
+ additionalAllowedPrincipals specifies a list of additional allowed principal ARNs
+ to be added to the hosted control plane's VPC Endpoint Service to enable additional
+ VPC Endpoint connection requests to be automatically accepted.
+ See https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html
+ for more details around VPC Endpoint Service allowed principals.
+ items:
+ maxLength: 255
+ type: string
+ maxItems: 25
+ type: array
+ cloudProviderConfig:
+ description: |-
+ cloudProviderConfig specifies AWS networking configuration for the control
+ plane.
+ This is mainly used for cloud provider controller config:
+ https://github.com/kubernetes/kubernetes/blob/f5be5052e3d0808abb904aebd3218fe4a5c2dd82/staging/src/k8s.io/legacy-cloud-providers/aws/aws.go#L1347-L1364
+ properties:
+ subnet:
+ description: subnet is the subnet to use for control plane
+ cloud resources.
+ properties:
+ filters:
+ description: |-
+ filters is a set of key/value pairs used to identify a resource
+ They are applied according to the rules defined by the AWS API:
+ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Filtering.html
+ items:
+ description: Filter is a filter used to identify
+ an AWS resource
+ properties:
+ name:
+ description: name is the name of the filter.
+ maxLength: 255
+ type: string
+ values:
+ description: values is a list of values for
+ the filter.
+ items:
+ maxLength: 255
+ type: string
+ maxItems: 50
+ type: array
+ required:
+ - name
+ - values
+ type: object
+ maxItems: 50
+ type: array
+ id:
+ description: id of resource
+ maxLength: 255
+ type: string
+ type: object
+ vpc:
+ description: vpc is the VPC to use for control plane cloud
+ resources.
+ maxLength: 255
+ type: string
+ zone:
+ description: |-
+ zone is the availability zone where control plane cloud resources are
+ created.
+ maxLength: 255
+ type: string
+ required:
+ - vpc
+ type: object
+ endpointAccess:
+ default: Public
+ description: |-
+ endpointAccess specifies the publishing scope of cluster endpoints. The
+ default is Public.
+ enum:
+ - Public
+ - PublicAndPrivate
+ - Private
+ type: string
+ multiArch:
+ default: false
+ description: |-
+ multiArch specifies whether the Hosted Cluster will be expected to support NodePools with different
+ CPU architectures, i.e., supporting arm64 NodePools and supporting amd64 NodePools on the same Hosted Cluster.
+ Deprecated: This field is no longer used. The HyperShift Operator now performs multi-arch validations
+ automatically despite the platform type. The HyperShift Operator will set HostedCluster.Status.PayloadArch based
+ on the HostedCluster release image. This field is used by the NodePool controller to validate the
+ NodePool.Spec.Arch is supported.
+ type: boolean
+ region:
+ description: |-
+ region is the AWS region in which the cluster resides. This configures the
+ OCP control plane cloud integrations, and is used by NodePool to resolve
+ the correct boot AMI for a given release.
+ maxLength: 255
+ type: string
+ resourceTags:
+ description: |-
+ resourceTags is a list of additional tags to apply to AWS resources created
+ for the cluster. See
+ https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html for
+ information on tagging AWS resources. AWS supports a maximum of 50 tags per
+ resource. OpenShift reserves 25 tags for its use, leaving 25 tags available
+ for the user.
+ Changes to this field will be propagated in-place to AWS resources (VPC Endpoints, EC2 instances, initial EBS volumes and default/endpoint security groups).
+ These tags will be propagated to the infrastructure CR in the guest cluster, where other OCP operators might choose to honor this input to reconcile AWS resources created by them.
+ Please consult the official documentation for a list of all AWS resources that support in-place tag updates.
+ These take precedence over tags defined out of band (i.e., tags added manually or by other tools outside of HyperShift) in AWS in case of conflicts.
+ items:
+ description: AWSResourceTag is a tag to apply to AWS resources
+ created for the cluster.
+ properties:
+ key:
+ description: key is the key of the tag.
+ maxLength: 128
+ minLength: 1
+ pattern: ^[0-9A-Za-z_.:/=+-@]+$
+ type: string
+ value:
+ description: |-
+ value is the value of the tag.
+
+ Some AWS service do not support empty values. Since tags are added to
+ resources in many services, the length of the tag value must meet the
+ requirements of all services.
+ maxLength: 256
+ minLength: 1
+ pattern: ^[0-9A-Za-z_.:/=+-@]+$
+ type: string
+ required:
+ - key
+ - value
+ type: object
+ maxItems: 25
+ type: array
+ rolesRef:
+ description: |-
+ rolesRef contains references to various AWS IAM roles required to enable
+ integrations such as OIDC.
+ properties:
+ controlPlaneOperatorARN:
+ description: "controlPlaneOperatorARN is an ARN value
+ referencing a role appropriate for the Control Plane
+ Operator.\n\nThe following is an example of a valid
+ policy document:\n\n{\n\t\"Version\": \"2012-10-17\",\n\t\"Statement\":
+ [\n\t\t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:CreateVpcEndpoint\",\n\t\t\t\t\"ec2:DescribeVpcEndpoints\",\n\t\t\t\t\"ec2:ModifyVpcEndpoint\",\n\t\t\t\t\"ec2:DeleteVpcEndpoints\",\n\t\t\t\t\"ec2:CreateTags\",\n\t\t\t\t\"route53:ListHostedZones\",\n\t\t\t\t\"ec2:CreateSecurityGroup\",\n\t\t\t\t\"ec2:AuthorizeSecurityGroupIngress\",\n\t\t\t\t\"ec2:AuthorizeSecurityGroupEgress\",\n\t\t\t\t\"ec2:DeleteSecurityGroup\",\n\t\t\t\t\"ec2:RevokeSecurityGroupIngress\",\n\t\t\t\t\"ec2:RevokeSecurityGroupEgress\",\n\t\t\t\t\"ec2:DescribeSecurityGroups\",\n\t\t\t\t\"ec2:DescribeVpcs\",\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t},\n\t\t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"route53:ChangeResourceRecordSets\",\n\t\t\t\t\"route53:ListResourceRecordSets\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"arn:aws:route53:::%s\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ imageRegistryARN:
+ description: "imageRegistryARN is an ARN value referencing
+ a role appropriate for the Image Registry Operator.\n\nThe
+ following is an example of a valid policy document:\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"s3:CreateBucket\",\n\t\t\t\t\"s3:DeleteBucket\",\n\t\t\t\t\"s3:PutBucketTagging\",\n\t\t\t\t\"s3:GetBucketTagging\",\n\t\t\t\t\"s3:PutBucketPublicAccessBlock\",\n\t\t\t\t\"s3:GetBucketPublicAccessBlock\",\n\t\t\t\t\"s3:PutEncryptionConfiguration\",\n\t\t\t\t\"s3:GetEncryptionConfiguration\",\n\t\t\t\t\"s3:PutLifecycleConfiguration\",\n\t\t\t\t\"s3:GetLifecycleConfiguration\",\n\t\t\t\t\"s3:GetBucketLocation\",\n\t\t\t\t\"s3:ListBucket\",\n\t\t\t\t\"s3:GetObject\",\n\t\t\t\t\"s3:PutObject\",\n\t\t\t\t\"s3:DeleteObject\",\n\t\t\t\t\"s3:ListBucketMultipartUploads\",\n\t\t\t\t\"s3:AbortMultipartUpload\",\n\t\t\t\t\"s3:ListMultipartUploadParts\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ ingressARN:
+ description: "ingressARN is an ARN value referencing a
+ role appropriate for the Ingress Operator.\n\nThe following
+ is an example of a valid policy document:\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"elasticloadbalancing:DescribeLoadBalancers\",\n\t\t\t\t\"tag:GetResources\",\n\t\t\t\t\"route53:ListHostedZones\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t},\n\t\t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"route53:ChangeResourceRecordSets\"\n\t\t\t],\n\t\t\t\"Resource\":
+ [\n\t\t\t\t\"arn:aws:route53:::PUBLIC_ZONE_ID\",\n\t\t\t\t\"arn:aws:route53:::PRIVATE_ZONE_ID\"\n\t\t\t]\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ kubeCloudControllerARN:
+ description: |-
+ kubeCloudControllerARN is an ARN value referencing a role appropriate for the KCM/KCC.
+ Source: https://cloud-provider-aws.sigs.k8s.io/prerequisites/#iam-policies
+
+ The following is an example of a valid policy document:
+
+ {
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Action": [
+ "autoscaling:DescribeAutoScalingGroups",
+ "autoscaling:DescribeLaunchConfigurations",
+ "autoscaling:DescribeTags",
+ "ec2:DescribeAvailabilityZones",
+ "ec2:DescribeInstances",
+ "ec2:DescribeImages",
+ "ec2:DescribeRegions",
+ "ec2:DescribeRouteTables",
+ "ec2:DescribeSecurityGroups",
+ "ec2:DescribeSubnets",
+ "ec2:DescribeVolumes",
+ "ec2:CreateSecurityGroup",
+ "ec2:CreateTags",
+ "ec2:CreateVolume",
+ "ec2:ModifyInstanceAttribute",
+ "ec2:ModifyVolume",
+ "ec2:AttachVolume",
+ "ec2:AuthorizeSecurityGroupIngress",
+ "ec2:CreateRoute",
+ "ec2:DeleteRoute",
+ "ec2:DeleteSecurityGroup",
+ "ec2:DeleteVolume",
+ "ec2:DetachVolume",
+ "ec2:RevokeSecurityGroupIngress",
+ "ec2:DescribeVpcs",
+ "elasticloadbalancing:AddTags",
+ "elasticloadbalancing:AttachLoadBalancerToSubnets",
+ "elasticloadbalancing:ApplySecurityGroupsToLoadBalancer",
+ "elasticloadbalancing:CreateLoadBalancer",
+ "elasticloadbalancing:CreateLoadBalancerPolicy",
+ "elasticloadbalancing:CreateLoadBalancerListeners",
+ "elasticloadbalancing:ConfigureHealthCheck",
+ "elasticloadbalancing:DeleteLoadBalancer",
+ "elasticloadbalancing:DeleteLoadBalancerListeners",
+ "elasticloadbalancing:DescribeLoadBalancers",
+ "elasticloadbalancing:DescribeLoadBalancerAttributes",
+ "elasticloadbalancing:DetachLoadBalancerFromSubnets",
+ "elasticloadbalancing:DeregisterInstancesFromLoadBalancer",
+ "elasticloadbalancing:ModifyLoadBalancerAttributes",
+ "elasticloadbalancing:RegisterInstancesWithLoadBalancer",
+ "elasticloadbalancing:SetLoadBalancerPoliciesForBackendServer",
+ "elasticloadbalancing:AddTags",
+ "elasticloadbalancing:CreateListener",
+ "elasticloadbalancing:CreateTargetGroup",
+ "elasticloadbalancing:DeleteListener",
+ "elasticloadbalancing:DeleteTargetGroup",
+ "elasticloadbalancing:DeregisterTargets",
+ "elasticloadbalancing:DescribeListeners",
+ "elasticloadbalancing:DescribeLoadBalancerPolicies",
+ "elasticloadbalancing:DescribeTargetGroups",
+ "elasticloadbalancing:DescribeTargetHealth",
+ "elasticloadbalancing:ModifyListener",
+ "elasticloadbalancing:ModifyTargetGroup",
+ "elasticloadbalancing:RegisterTargets",
+ "elasticloadbalancing:SetLoadBalancerPoliciesOfListener",
+ "iam:CreateServiceLinkedRole",
+ "kms:DescribeKey"
+ ],
+ "Resource": [
+ "*"
+ ],
+ "Effect": "Allow"
+ }
+ ]
+ }
+ maxLength: 2048
+ type: string
+ networkARN:
+ description: "networkARN is an ARN value referencing a
+ role appropriate for the Network Operator.\n\nThe following
+ is an example of a valid policy document:\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"ec2:DescribeInstances\",\n
+ \ \"ec2:DescribeInstanceStatus\",\n \"ec2:DescribeInstanceTypes\",\n
+ \ \"ec2:UnassignPrivateIpAddresses\",\n \"ec2:AssignPrivateIpAddresses\",\n
+ \ \"ec2:UnassignIpv6Addresses\",\n \"ec2:AssignIpv6Addresses\",\n
+ \ \"ec2:DescribeSubnets\",\n \"ec2:DescribeNetworkInterfaces\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ nodePoolManagementARN:
+ description: "nodePoolManagementARN is an ARN value referencing
+ a role appropriate for the CAPI Controller.\n\nThe following
+ is an example of a valid policy document:\n\n{\n \"Version\":
+ \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\":
+ [\n \"ec2:AssociateRouteTable\",\n \"ec2:AttachInternetGateway\",\n
+ \ \"ec2:AuthorizeSecurityGroupIngress\",\n \"ec2:CreateInternetGateway\",\n
+ \ \"ec2:CreateNatGateway\",\n \"ec2:CreateRoute\",\n
+ \ \"ec2:CreateRouteTable\",\n \"ec2:CreateSecurityGroup\",\n
+ \ \"ec2:CreateSubnet\",\n \"ec2:CreateTags\",\n
+ \ \"ec2:DeleteInternetGateway\",\n \"ec2:DeleteNatGateway\",\n
+ \ \"ec2:DeleteRouteTable\",\n \"ec2:DeleteSecurityGroup\",\n
+ \ \"ec2:DeleteSubnet\",\n \"ec2:DeleteTags\",\n
+ \ \"ec2:DescribeAccountAttributes\",\n \"ec2:DescribeAddresses\",\n
+ \ \"ec2:DescribeAvailabilityZones\",\n \"ec2:DescribeImages\",\n
+ \ \"ec2:DescribeInstances\",\n \"ec2:DescribeInternetGateways\",\n
+ \ \"ec2:DescribeNatGateways\",\n \"ec2:DescribeNetworkInterfaces\",\n
+ \ \"ec2:DescribeNetworkInterfaceAttribute\",\n
+ \ \"ec2:DescribeRouteTables\",\n \"ec2:DescribeSecurityGroups\",\n
+ \ \"ec2:DescribeSubnets\",\n \"ec2:DescribeVpcs\",\n
+ \ \"ec2:DescribeVpcAttribute\",\n \"ec2:DescribeVolumes\",\n
+ \ \"ec2:DetachInternetGateway\",\n \"ec2:DisassociateRouteTable\",\n
+ \ \"ec2:DisassociateAddress\",\n \"ec2:ModifyInstanceAttribute\",\n
+ \ \"ec2:ModifyNetworkInterfaceAttribute\",\n \"ec2:ModifySubnetAttribute\",\n
+ \ \"ec2:RevokeSecurityGroupIngress\",\n \"ec2:RunInstances\",\n
+ \ \"ec2:TerminateInstances\",\n \"tag:GetResources\",\n
+ \ \"ec2:CreateLaunchTemplate\",\n \"ec2:CreateLaunchTemplateVersion\",\n
+ \ \"ec2:DescribeLaunchTemplates\",\n \"ec2:DescribeLaunchTemplateVersions\",\n
+ \ \"ec2:DeleteLaunchTemplate\",\n \"ec2:DeleteLaunchTemplateVersions\"\n
+ \ ],\n \"Resource\": [\n \"*\"\n ],\n
+ \ \"Effect\": \"Allow\"\n },\n {\n \"Condition\":
+ {\n \"StringLike\": {\n \"iam:AWSServiceName\":
+ \"elasticloadbalancing.amazonaws.com\"\n }\n },\n
+ \ \"Action\": [\n \"iam:CreateServiceLinkedRole\"\n
+ \ ],\n \"Resource\": [\n \"arn:*:iam::*:role/aws-service-role/elasticloadbalancing.amazonaws.com/AWSServiceRoleForElasticLoadBalancing\"\n
+ \ ],\n \"Effect\": \"Allow\"\n },\n {\n \"Action\":
+ [\n \"iam:PassRole\"\n ],\n \"Resource\":
+ [\n \"arn:*:iam::*:role/*-worker-role\"\n ],\n
+ \ \"Effect\": \"Allow\"\n },\n\t {\n\t \t\"Effect\":
+ \"Allow\",\n\t \t\"Action\": [\n\t \t\t\"kms:Decrypt\",\n\t
+ \ \t\t\"kms:ReEncrypt\",\n\t \t\t\"kms:GenerateDataKeyWithoutPlainText\",\n\t
+ \ \t\t\"kms:DescribeKey\"\n\t \t],\n\t \t\"Resource\":
+ \"*\"\n\t },\n\t {\n\t \t\"Effect\": \"Allow\",\n\t
+ \ \t\"Action\": [\n\t \t\t\"kms:CreateGrant\"\n\t \t],\n\t
+ \ \t\"Resource\": \"*\",\n\t \t\"Condition\": {\n\t
+ \ \t\t\"Bool\": {\n\t \t\t\t\"kms:GrantIsForAWSResource\":
+ true\n\t \t\t}\n\t \t}\n\t }\n ]\n}"
+ maxLength: 2048
+ type: string
+ storageARN:
+ description: "storageARN is an ARN value referencing a
+ role appropriate for the Storage Operator.\n\nThe following
+ is an example of a valid policy document:\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"ec2:AttachVolume\",\n\t\t\t\t\"ec2:CreateSnapshot\",\n\t\t\t\t\"ec2:CreateTags\",\n\t\t\t\t\"ec2:CreateVolume\",\n\t\t\t\t\"ec2:DeleteSnapshot\",\n\t\t\t\t\"ec2:DeleteTags\",\n\t\t\t\t\"ec2:DeleteVolume\",\n\t\t\t\t\"ec2:DescribeInstances\",\n\t\t\t\t\"ec2:DescribeSnapshots\",\n\t\t\t\t\"ec2:DescribeTags\",\n\t\t\t\t\"ec2:DescribeVolumes\",\n\t\t\t\t\"ec2:DescribeVolumesModifications\",\n\t\t\t\t\"ec2:DetachVolume\",\n\t\t\t\t\"ec2:ModifyVolume\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ required:
+ - controlPlaneOperatorARN
+ - imageRegistryARN
+ - ingressARN
+ - kubeCloudControllerARN
+ - networkARN
+ - nodePoolManagementARN
+ - storageARN
+ type: object
+ serviceEndpoints:
+ description: |-
+ serviceEndpoints specifies optional custom endpoints which will override
+ the default service endpoint of specific AWS Services.
+
+ There must be only one ServiceEndpoint for a given service name.
+ items:
+ description: |-
+ AWSServiceEndpoint stores the configuration for services to
+ override existing defaults of AWS Services.
+ properties:
+ name:
+ description: |-
+ name is the name of the AWS service.
+ This must be provided and cannot be empty.
+ maxLength: 255
+ type: string
+ url:
+ description: |-
+ url is fully qualified URI with scheme https, that overrides the default generated
+ endpoint for a client.
+ This must be provided and cannot be empty.
+ maxLength: 2048
+ pattern: ^https://
+ type: string
+ required:
+ - name
+ - url
+ type: object
+ maxItems: 50
+ type: array
+ sharedVPC:
+ description: |-
+ sharedVPC contains fields that must be specified if the HostedCluster must use a VPC that is
+ created in a different AWS account and is shared with the AWS account where the HostedCluster
+ will be created.
+ properties:
+ localZoneID:
+ description: |-
+ localZoneID is the ID of the route53 hosted zone for [cluster-name].hypershift.local that is
+ associated with the HostedCluster's VPC and exists in the VPC owner account.
+ maxLength: 32
+ type: string
+ rolesRef:
+ description: |-
+ rolesRef contains references to roles in the VPC owner account that enable a
+ HostedCluster on a shared VPC.
+ properties:
+ controlPlaneARN:
+ description: "controlPlaneARN is an ARN value referencing
+ the role in the VPC owner account that allows\nthe
+ control plane operator in the cluster account to
+ create and manage a VPC endpoint, its\ncorresponding
+ Security Group, and DNS records in the hypershift
+ local hosted zone.\n\nThe referenced role must have
+ a trust relationship that allows it to be assumed
+ by the\ncontrol plane operator role in the VPC creator
+ account.\nExample:\n{\n\t \"Version\": \"2012-10-17\",\n\t
+ \"Statement\": [\n\t \t{\n\t \t\t\"Sid\": \"Statement1\",\n\t
+ \t\t\"Effect\": \"Allow\",\n\t \t\t\"Principal\":
+ {\n\t \t\t\t\"AWS\": \"arn:aws:iam::[cluster-creator-account-id]:role/[infra-id]-control-plane-operator\"\n\t
+ \t\t},\n\t \t\t\"Action\": \"sts:AssumeRole\"\n\t
+ \t}\n\t ]\n}\n\nThe following is an example of the
+ policy document for this role.\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"ec2:CreateVpcEndpoint\",\n\t\t\t\t\"ec2:DescribeVpcEndpoints\",\n\t\t\t\t\"ec2:ModifyVpcEndpoint\",\n\t\t\t\t\"ec2:DeleteVpcEndpoints\",\n\t\t\t\t\"ec2:CreateTags\",\n\t\t\t\t\"route53:ListHostedZones\",\n\t\t\t\t\"ec2:CreateSecurityGroup\",\n\t\t\t\t\"ec2:AuthorizeSecurityGroupIngress\",\n\t\t\t\t\"ec2:AuthorizeSecurityGroupEgress\",\n\t\t\t\t\"ec2:DeleteSecurityGroup\",\n\t\t\t\t\"ec2:RevokeSecurityGroupIngress\",\n\t\t\t\t\"ec2:RevokeSecurityGroupEgress\",\n\t\t\t\t\"ec2:DescribeSecurityGroups\",\n\t\t\t\t\"ec2:DescribeVpcs\",\n\t\t\t\t\"route53:ChangeResourceRecordSets\",\n\t\t\t\t\"route53:ListResourceRecordSets\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ pattern: ^arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role\/.*$
+ type: string
+ ingressARN:
+ description: "ingressARN is an ARN value referencing
+ the role in the VPC owner account that allows the\ningress
+ operator in the cluster account to create and manage
+ records in the private DNS\nhosted zone.\n\nThe
+ referenced role must have a trust relationship that
+ allows it to be assumed by the\ningress operator
+ role in the VPC creator account.\nExample:\n{\n\t
+ \"Version\": \"2012-10-17\",\n\t \"Statement\":
+ [\n\t \t{\n\t \t\t\"Sid\": \"Statement1\",\n\t \t\t\"Effect\":
+ \"Allow\",\n\t \t\t\"Principal\": {\n\t \t\t\t\"AWS\":
+ \"arn:aws:iam::[cluster-creator-account-id]:role/[infra-id]-openshift-ingress\"\n\t
+ \t\t},\n\t \t\t\"Action\": \"sts:AssumeRole\"\n\t
+ \t}\n\t ]\n}\n\nThe following is an example of the
+ policy document for this role.\n(Based on https://docs.openshift.com/rosa/rosa_install_access_delete_clusters/rosa-shared-vpc-config.html#rosa-sharing-vpc-dns-and-roles_rosa-shared-vpc-config)\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"route53:ListHostedZones\",\n\t\t\t\t\"route53:ListHostedZonesByName\",\n\t\t\t\t\"route53:ChangeTagsForResource\",\n\t\t\t\t\"route53:GetAccountLimit\",\n\t\t\t\t\"route53:GetChange\",\n\t\t\t\t\"route53:GetHostedZone\",\n\t\t\t\t\"route53:ListTagsForResource\",\n\t\t\t\t\"route53:UpdateHostedZoneComment\",\n\t\t\t\t\"tag:GetResources\",\n\t\t\t\t\"tag:UntagResources\"\n\t\t\t\t\"route53:ChangeResourceRecordSets\",\n\t\t\t\t\"route53:ListResourceRecordSets\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t},\n\t]\n}"
+ maxLength: 2048
+ pattern: ^arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role\/.*$
+ type: string
+ required:
+ - controlPlaneARN
+ - ingressARN
+ type: object
+ required:
+ - localZoneID
+ - rolesRef
+ type: object
+ terminationHandlerQueueURL:
+ description: |-
+ terminationHandlerQueueURL specifies the SQS queue URL for EC2 spot interruption events.
+ This is required when using spot instances (marketType: Spot) in NodePools to enable
+ graceful handling of spot instance terminations.
+
+ The queue should be configured to receive EC2 Spot Instance Interruption Warnings
+ and EC2 Instance Rebalance Recommendations via EventBridge rules.
+ The AWS Node Termination Handler will poll this queue and cordon/drain nodes
+ before they are terminated, providing a best effort for graceful shutdown.
+
+ Supports both standard and FIFO queues (FIFO queues end with .fifo suffix).
+ maxLength: 512
+ pattern: ^https://sqs\.[a-z0-9-]+\.amazonaws\.com/[0-9]{12}/[a-zA-Z0-9_-]+(\.fifo)?$
+ type: string
+ required:
+ - region
+ - rolesRef
+ type: object
+ azure:
+ description: azure defines azure specific settings
+ properties:
+ azureAuthenticationConfig:
+ description: |-
+ azureAuthenticationConfig is the type of Azure authentication configuration to use to authenticate with Azure's
+ Cloud API.
+ properties:
+ azureAuthenticationConfigType:
+ description: |-
+ azureAuthenticationConfigType is the type of identity configuration used in the Hosted Cluster. This field is
+ used to determine which identity configuration is being used. Valid values are "ManagedIdentities" and
+ "WorkloadIdentities".
+ enum:
+ - ManagedIdentities
+ - WorkloadIdentities
+ type: string
+ managedIdentities:
+ description: |-
+ managedIdentities contains the managed identities needed for HCP control plane and data plane components that
+ authenticate with Azure's API.
+
+ These are required for managed Azure, also known as ARO HCP.
+ properties:
+ controlPlane:
+ description: |-
+ controlPlane contains the client IDs of all the managed identities on the HCP control plane needing to
+ authenticate with Azure's API.
+ properties:
+ cloudProvider:
+ description: |-
+ cloudProvider is a pre-existing managed identity associated with the azure cloud provider, aka cloud controller
+ manager.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ controlPlaneOperator:
+ description: controlPlaneOperator is a pre-existing
+ managed identity associated with the control
+ plane operator.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ disk:
+ description: disk is a pre-existing managed identity
+ associated with the azure-disk-controller.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ file:
+ description: file is a pre-existing managed identity
+ associated with the azure-disk-controller.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ imageRegistry:
+ description: imageRegistry is a pre-existing managed
+ identity associated with the cluster-image-registry-operator.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ ingress:
+ description: ingress is a pre-existing managed
+ identity associated with the cluster-ingress-operator.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ managedIdentitiesKeyVault:
+ description: |-
+ managedIdentitiesKeyVault contains information on the management cluster's managed identities Azure Key Vault.
+ This Key Vault is where the managed identities certificates are stored. These certificates are pulled out of the
+ Key Vault by the Secrets Store CSI driver and mounted into a volume on control plane pods requiring
+ authentication with Azure API.
+
+ More information on how the Secrets Store CSI driver works to do this can be found here:
+ https://learn.microsoft.com/en-us/azure/aks/csi-secrets-store-driver.
+ properties:
+ name:
+ description: name is the name of the Azure
+ Key Vault on the management cluster.
+ maxLength: 255
+ type: string
+ tenantID:
+ description: tenantID is the tenant ID of
+ the Azure Key Vault on the management cluster.
+ maxLength: 255
+ type: string
+ required:
+ - name
+ - tenantID
+ type: object
+ network:
+ description: network is a pre-existing managed
+ identity associated with the cluster-network-operator.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ nodePoolManagement:
+ description: nodePoolManagement is a pre-existing
+ managed identity associated with the operator
+ managing the NodePools.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ required:
+ - cloudProvider
+ - controlPlaneOperator
+ - disk
+ - file
+ - ingress
+ - managedIdentitiesKeyVault
+ - network
+ - nodePoolManagement
+ type: object
+ dataPlane:
+ description: |-
+ dataPlane contains the client IDs of all the managed identities on the data plane needing to authenticate with
+ Azure's API.
+ properties:
+ diskMSIClientID:
+ description: diskMSIClientID is the client ID
+ of a pre-existing managed identity ID associated
+ with the CSI Disk driver.
+ maxLength: 255
+ type: string
+ fileMSIClientID:
+ description: fileMSIClientID is the client ID
+ of a pre-existing managed identity ID associated
+ with the CSI File driver.
+ maxLength: 255
+ type: string
+ imageRegistryMSIClientID:
+ description: |-
+ imageRegistryMSIClientID is the client ID of a pre-existing managed identity ID associated with the image
+ registry controller.
+ maxLength: 255
+ type: string
+ required:
+ - diskMSIClientID
+ - fileMSIClientID
+ - imageRegistryMSIClientID
+ type: object
+ required:
+ - controlPlane
+ - dataPlane
+ type: object
+ workloadIdentities:
+ description: |-
+ workloadIdentities is a struct of client IDs for each component that needs to authenticate with Azure's API in
+ self-managed Azure. These client IDs are used to authenticate with Azure cloud on both the control plane and data
+ plane.
+
+ This is required for self-managed Azure.
+ properties:
+ cloudProvider:
+ description: |-
+ cloudProvider is the client ID of a federated managed identity, associated with azure-cloud-provider, used in
+ workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ disk:
+ description: |-
+ disk is the client ID of a federated managed identity, associated with cluster-storage-operator-disk,
+ used in workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ file:
+ description: |-
+ file is the client ID of a federated managed identity, associated with cluster-storage-operator-file,
+ used in workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ imageRegistry:
+ description: |-
+ imageRegistry is the client ID of a federated managed identity, associated with cluster-image-registry-operator, used in
+ workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ ingress:
+ description: |-
+ ingress is the client ID of a federated managed identity, associated with cluster-ingress-operator, used in
+ workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ network:
+ description: |-
+ network is the client ID of a federated managed identity, associated with cluster-network-operator, used in
+ workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ nodePoolManagement:
+ description: |-
+ nodePoolManagement is the client ID of a federated managed identity, associated with cluster-api-provider-azure, used
+ in workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ required:
+ - cloudProvider
+ - disk
+ - file
+ - imageRegistry
+ - ingress
+ - network
+ - nodePoolManagement
+ type: object
+ required:
+ - azureAuthenticationConfigType
+ type: object
+ x-kubernetes-validations:
+ - message: managedIdentities is required when azureAuthenticationConfigType
+ is ManagedIdentities, and forbidden otherwise
+ rule: 'self.azureAuthenticationConfigType == ''ManagedIdentities''
+ ? has(self.managedIdentities) : !has(self.managedIdentities)'
+ - message: workloadIdentities is required when azureAuthenticationConfigType
+ is WorkloadIdentities, and forbidden otherwise
+ rule: 'self.azureAuthenticationConfigType == ''WorkloadIdentities''
+ ? has(self.workloadIdentities) : !has(self.workloadIdentities)'
+ cloud:
+ default: AzurePublicCloud
+ description: 'cloud is the cloud environment identifier, valid
+ values could be found here: https://github.com/Azure/go-autorest/blob/4c0e21ca2bbb3251fe7853e6f9df6397f53dd419/autorest/azure/environments.go#L33'
+ enum:
+ - AzurePublicCloud
+ - AzureUSGovernmentCloud
+ - AzureChinaCloud
+ - AzureGermanCloud
+ - AzureStackCloud
+ type: string
+ location:
+ description: |-
+ location is the Azure region in where all the cloud infrastructure resources will be created.
+
+ Example: eastus
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: Location is immutable
+ rule: self == oldSelf
+ resourceGroup:
+ default: default
+ description: |-
+ resourceGroup is the name of an existing resource group where all cloud resources created by the Hosted
+ Cluster are to be placed. The resource group is expected to exist under the same subscription as SubscriptionID.
+
+ In ARO HCP, this will be the managed resource group where customer cloud resources will be created.
+
+ Resource group naming requirements can be found here: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.ResourceGroup.Name/.
+
+ Example: if your resource group ID is /subscriptions//resourceGroups/, your
+ ResourceGroupName is .
+ maxLength: 90
+ pattern: ^[a-zA-Z0-9_()\-\.]{1,89}[a-zA-Z0-9_()\-]$
+ type: string
+ x-kubernetes-validations:
+ - message: ResourceGroupName is immutable
+ rule: self == oldSelf
+ securityGroupID:
+ description: |-
+ securityGroupID is the ID of an existing security group on the SubnetID. This field is provided as part of the
+ configuration for the Azure cloud provider, aka Azure cloud controller manager (CCM). This security group is
+ expected to exist under the same subscription as SubscriptionID.
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: SecurityGroupID is immutable
+ rule: self == oldSelf
+ subnetID:
+ description: |-
+ subnetID is the subnet ID of an existing subnet where the nodes in the nodepool will be created. This can be a
+ different subnet than the one listed in the HostedCluster, HostedCluster.Spec.Platform.Azure.SubnetID, but must
+ exist in the same network, HostedCluster.Spec.Platform.Azure.VnetID, and must exist under the same subscription ID,
+ HostedCluster.Spec.Platform.Azure.SubscriptionID.
+ subnetID is immutable once set.
+ The subnetID should be in the format `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}`.
+ The subscriptionId in the encryptionSetID must be a valid UUID. It should be 5 groups of hyphen separated hexadecimal characters in the form 8-4-4-4-12.
+ The resourceGroupName should be between 1 and 90 characters, consisting only of alphanumeric characters, hyphens, underscores, periods and parenthesis and must not end with a period (.) character.
+ The vnetName should be between 2 and 64 characters, consisting only of alphanumeric characters, hyphens, underscores and periods and must not end with either a period (.) or hyphen (-) character.
+ The subnetName should be between 1 and 80 characters, consisting only of alphanumeric characters, hyphens and underscores and must start with an alphanumeric character and must not end with a period (.) or hyphen (-) character.
+ maxLength: 355
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionSetID must be in the format `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}`
+ rule: size(self.split('/')) == 11 && self.matches('^/subscriptions/.*/resourceGroups/.*/providers/Microsoft.Network/virtualNetworks/.*/subnets/.*$')
+ - message: The resourceGroupName should be between 1 and 90
+ characters, consisting only of alphanumeric characters,
+ hyphens, underscores, periods and parenthesis
+ rule: self.split('/')[4].matches('[a-zA-Z0-9-_\\(\\)\\.]{1,90}')
+ - message: the resourceGroupName in the subnetID must not
+ end with a period (.) character
+ rule: '!self.split(''/'')[4].endsWith(''.'')'
+ - message: The vnetName should be between 2 and 64 characters,
+ consisting only of alphanumeric characters, hyphens, underscores
+ and periods
+ rule: self.split('/')[8].matches('[a-zA-Z0-9-_\\.]{2,64}')
+ - message: the vnetName in the subnetID must not end with
+ either a period (.) or hyphen (-) character
+ rule: '!self.split(''/'')[8].endsWith(''.'') && !self.split(''/'')[8].endsWith(''-'')'
+ - message: The subnetName should be between 1 and 80 characters,
+ consisting only of alphanumeric characters, hyphens and
+ underscores and must start with an alphanumeric character
+ rule: self.split('/')[10].matches('[a-zA-Z0-9][a-zA-Z0-9-_\\.]{0,79}')
+ - message: the subnetName in the subnetID must not end with
+ a period (.) or hyphen (-) character
+ rule: '!self.split(''/'')[10].endsWith(''.'') && !self.split(''/'')[10].endsWith(''-'')'
+ - message: SubnetID is immutable
+ rule: self == oldSelf
+ subscriptionID:
+ description: subscriptionID is a unique identifier for an
+ Azure subscription used to manage resources.
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: SubscriptionID is immutable
+ rule: self == oldSelf
+ tenantID:
+ description: tenantID is a unique identifier for the tenant
+ where Azure resources will be created and managed in.
+ maxLength: 255
+ type: string
+ vnetID:
+ description: |-
+ vnetID is the ID of an existing VNET to use in creating VMs. The VNET can exist in a different resource group
+ other than the one specified in ResourceGroupName, but it must exist under the same subscription as
+ SubscriptionID.
+
+ In ARO HCP, this will be the ID of the customer provided VNET.
+
+ Example: /subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: VnetID is immutable
+ rule: self == oldSelf
+ required:
+ - azureAuthenticationConfig
+ - location
+ - resourceGroup
+ - securityGroupID
+ - subnetID
+ - subscriptionID
+ - tenantID
+ - vnetID
+ type: object
+ ibmcloud:
+ description: ibmcloud defines IBMCloud specific settings for components
+ properties:
+ providerType:
+ description: providerType is a specific supported infrastructure
+ provider within IBM Cloud.
+ type: string
+ type: object
+ kubevirt:
+ description: kubevirt defines KubeVirt specific settings for cluster
+ components.
+ properties:
+ baseDomainPassthrough:
+ description: |-
+ baseDomainPassthrough toggles whether or not an automatically
+ generated base domain for the guest cluster should be used that
+ is a subdomain of the management cluster's *.apps DNS.
+
+ For the KubeVirt platform, the basedomain can be autogenerated using
+ the *.apps domain of the management/infra hosting cluster
+ This makes the guest cluster's base domain a subdomain of the
+ hypershift infra/mgmt cluster's base domain.
+
+ Example:
+ Infra/Mgmt cluster's DNS
+ Base: example.com
+ Cluster: mgmt-cluster.example.com
+ Apps: *.apps.mgmt-cluster.example.com
+ KubeVirt Guest cluster's DNS
+ Base: apps.mgmt-cluster.example.com
+ Cluster: guest.apps.mgmt-cluster.example.com
+ Apps: *.apps.guest.apps.mgmt-cluster.example.com
+
+ This is possible using OCP wildcard routes
+ type: boolean
+ x-kubernetes-validations:
+ - message: baseDomainPassthrough is immutable
+ rule: self == oldSelf
+ credentials:
+ description: |-
+ credentials defines the client credentials used when creating KubeVirt virtual machines.
+ Defining credentials is only necessary when the KubeVirt virtual machines are being placed
+ on a cluster separate from the one hosting the Hosted Control Plane components.
+
+ The default behavior when Credentials is not defined is for the KubeVirt VMs to be placed on
+ the same cluster and namespace as the Hosted Control Plane.
+ properties:
+ infraKubeConfigSecret:
+ description: |-
+ infraKubeConfigSecret is a reference to the secret containing the kubeconfig
+ of an external infrastructure cluster for kubevirt provider
+ properties:
+ key:
+ description: key is the key in the secret containing
+ the kubeconfig.
+ maxLength: 255
+ type: string
+ name:
+ description: name is the name of the secret containing
+ the kubeconfig.
+ maxLength: 255
+ type: string
+ required:
+ - key
+ - name
+ type: object
+ x-kubernetes-validations:
+ - message: infraKubeConfigSecret is immutable
+ rule: self == oldSelf
+ infraNamespace:
+ description: |-
+ infraNamespace is the namespace in the external infrastructure cluster
+ where kubevirt resources will be created
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: infraNamespace is immutable
+ rule: self == oldSelf
+ required:
+ - infraNamespace
+ type: object
+ generateID:
+ description: |-
+ generateID is used to uniquely apply a name suffix to resources associated with
+ kubevirt infrastructure resources
+ maxLength: 11
+ type: string
+ x-kubernetes-validations:
+ - message: Kubevirt GenerateID is immutable once set
+ rule: self == oldSelf
+ storageDriver:
+ description: |-
+ storageDriver defines how the KubeVirt CSI driver exposes StorageClasses on
+ the infra cluster (hosting the VMs) to the guest cluster.
+ properties:
+ manual:
+ description: |-
+ manual is used to explicitly define how the infra storageclasses are
+ mapped to guest storageclasses
+ properties:
+ storageClassMapping:
+ description: |-
+ storageClassMapping maps StorageClasses on the infra cluster hosting
+ the KubeVirt VMs to StorageClasses that are made available within the
+ Guest Cluster.
+
+ NOTE: It is possible that not all capabilities of an infra cluster's
+ storageclass will be present for the corresponding guest clusters storageclass.
+ items:
+ properties:
+ group:
+ description: group contains which group this
+ mapping belongs to.
+ maxLength: 255
+ type: string
+ guestStorageClassName:
+ description: |-
+ guestStorageClassName is the name that the corresponding storageclass will
+ be called within the guest cluster
+ maxLength: 255
+ type: string
+ infraStorageClassName:
+ description: |-
+ infraStorageClassName is the name of the infra cluster storage class that
+ will be exposed to the guest.
+ maxLength: 255
+ type: string
+ required:
+ - guestStorageClassName
+ - infraStorageClassName
+ type: object
+ maxItems: 50
+ type: array
+ x-kubernetes-validations:
+ - message: storageClassMapping is immutable
+ rule: self == oldSelf
+ volumeSnapshotClassMapping:
+ description: |-
+ volumeSnapshotClassMapping maps VolumeSnapshotClasses on the infra cluster hosting
+ the KubeVirt VMs to VolumeSnapshotClasses that are made available within the
+ Guest Cluster.
+ items:
+ properties:
+ group:
+ description: group contains which group this
+ mapping belongs to.
+ maxLength: 255
+ type: string
+ guestVolumeSnapshotClassName:
+ description: |-
+ guestVolumeSnapshotClassName is the name that the corresponding volumeSnapshotClass will
+ be called within the guest cluster
+ maxLength: 255
+ type: string
+ infraVolumeSnapshotClassName:
+ description: |-
+ infraVolumeSnapshotClassName is the name of the infra cluster volume snapshot class that
+ will be exposed to the guest.
+ maxLength: 255
+ type: string
+ required:
+ - guestVolumeSnapshotClassName
+ - infraVolumeSnapshotClassName
+ type: object
+ maxItems: 50
+ type: array
+ x-kubernetes-validations:
+ - message: volumeSnapshotClassMapping is immutable
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: storageDriver.Manual is immutable
+ rule: self == oldSelf
+ type:
+ default: Default
+ description: type represents the type of kubevirt csi
+ driver configuration to use
+ enum:
+ - None
+ - Default
+ - Manual
+ type: string
+ x-kubernetes-validations:
+ - message: storageDriver.Type is immutable
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: storageDriver is immutable
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: Kubevirt GenerateID is required once set
+ rule: '!has(oldSelf.generateID) || has(self.generateID)'
+ powervs:
+ description: |-
+ powervs specifies configuration for clusters running on IBMCloud Power VS Service.
+ This field is immutable. Once set, it cannot be changed.
+ properties:
+ accountID:
+ description: |-
+ accountID is the IBMCloud account id.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ cisInstanceCRN:
+ description: |-
+ cisInstanceCRN is the IBMCloud CIS Service Instance's Cloud Resource Name
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ pattern: '^crn:'
+ type: string
+ imageRegistryOperatorCloudCreds:
+ description: |-
+ imageRegistryOperatorCloudCreds is a reference to a secret containing IBM Cloud
+ credentials for the image registry operator to get authenticated with IBM Cloud.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Cloud Object Storage: Administrator (platform) and Manager (service) roles
+ - Attribute: serviceName=cloud-object-storage
+ - Roles: crn:v1:bluemix:public:iam::::role:Administrator,
+ crn:v1:bluemix:public:iam::::serviceRole:Manager
+
+ 2. Resource Group: Viewer role
+ - Attribute: resourceType=resource-group
+ - Role: crn:v1:bluemix:public:iam::::role:Viewer
+ 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
+ ingressOperatorCloudCreds:
+ description: |-
+ ingressOperatorCloudCreds is a reference to a secret containing IBM Cloud
+ credentials for the ingress operator to get authenticated with IBM Cloud.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Internet Services (CIS): Manager service role and Editor role
+ - Attribute: serviceName=internet-svcs
+ - Roles: crn:v1:bluemix:public:iam::::serviceRole:Manager,
+ crn:v1:bluemix:public:iam::::role:Editor
+ 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
+ kubeCloudControllerCreds:
+ description: |-
+ kubeCloudControllerCreds is a reference to a secret containing cloud
+ credentials with permissions matching the cloud controller policy.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Resource Group: Viewer role
+ - Attribute: resourceType=resource-group
+ - Role: crn:v1:bluemix:public:iam::::role:Viewer
+
+ 2. VPC Infrastructure Services: Editor, Operator, and Viewer roles
+ - Attribute: serviceName=is
+ - Roles: crn:v1:bluemix:public:iam::::role:Editor,
+ crn:v1:bluemix:public:iam::::role:Operator,
+ crn:v1:bluemix:public:iam::::role:Viewer
+
+ 3. Power Virtual Server (PowerVS): Viewer role, Reader and Manager service roles
+ (scoped to the PowerVS service instance identified by `serviceInstanceID`)
+ - Attributes: serviceName=power-iaas,
+ serviceInstance={serviceInstanceID}
+ - Roles: crn:v1:bluemix:public:iam::::role:Viewer,
+ crn:v1:bluemix:public:iam::::serviceRole:Reader,
+ crn:v1:bluemix:public:iam::::serviceRole:Manager
+ 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
+ nodePoolManagementCreds:
+ description: |-
+ nodePoolManagementCreds is a reference to a secret containing cloud
+ credentials with permissions matching the node pool management policy.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Power Virtual Server (PowerVS): Manager service role and Editor role
+ (scoped to the PowerVS service instance identified by `serviceInstanceID`)
+ - Attributes: serviceName=power-iaas,
+ serviceInstance={serviceInstanceID}
+ - Roles: crn:v1:bluemix:public:iam::::serviceRole:Manager,
+ crn:v1:bluemix:public:iam::::role:Editor
+ 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
+ region:
+ description: |-
+ region is the IBMCloud region in which the cluster resides. This configures the
+ OCP control plane cloud integrations, and is used by NodePool to resolve
+ the correct boot image for a given release.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ resourceGroup:
+ description: |-
+ resourceGroup is the IBMCloud Resource Group in which the cluster resides.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ serviceInstanceID:
+ description: |-
+ serviceInstanceID is the reference to the Power VS service on which the server instance(VM) will be created.
+ Power VS service is a container for all Power VS instances at a specific geographic region.
+ serviceInstance can be created via IBM Cloud catalog or CLI.
+ ServiceInstanceID is the unique identifier that can be obtained from IBM Cloud UI or IBM Cloud cli.
+
+ More detail about Power VS service instance.
+ https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-creating-power-virtual-server
+
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ storageOperatorCloudCreds:
+ description: |-
+ storageOperatorCloudCreds is a reference to a secret containing IBM Cloud
+ credentials for the storage operator to get authenticated with IBM Cloud.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Power Virtual Server (PowerVS): Manager service role and Editor role
+ (scoped to the PowerVS service instance identified by `serviceInstanceID`)
+ - Attributes: serviceName=power-iaas,
+ serviceInstance={serviceInstanceID}
+ - Roles: crn:v1:bluemix:public:iam::::serviceRole:Manager,
+ crn:v1:bluemix:public:iam::::role:Editor
+
+ 2. Resource Group: Viewer role
+ - Attribute: resourceType=resource-group
+ - Role: crn:v1:bluemix:public:iam::::role:Viewer
+ 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
+ subnet:
+ description: |-
+ subnet is the subnet to use for control plane cloud resources.
+ This field is immutable. Once set, it cannot be changed.
+ properties:
+ id:
+ description: id of resource
+ maxLength: 255
+ type: string
+ name:
+ description: name of resource
+ maxLength: 255
+ type: string
+ type: object
+ vpc:
+ description: |-
+ vpc specifies IBM Cloud PowerVS Load Balancing configuration for the control
+ plane.
+ This field is immutable. Once set, it cannot be changed.
+ properties:
+ name:
+ description: |-
+ name for VPC to used for all the service load balancer.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ region:
+ description: |-
+ region is the IBMCloud region in which VPC gets created, this VPC used for all the ingress traffic
+ into the OCP cluster.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ subnet:
+ description: |-
+ subnet is the subnet to use for load balancer.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ zone:
+ description: |-
+ zone is the availability zone where load balancer cloud resources are
+ created.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ required:
+ - name
+ - region
+ type: object
+ zone:
+ description: |-
+ zone is the availability zone where control plane cloud resources are
+ created.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ required:
+ - accountID
+ - cisInstanceCRN
+ - imageRegistryOperatorCloudCreds
+ - ingressOperatorCloudCreds
+ - kubeCloudControllerCreds
+ - nodePoolManagementCreds
+ - region
+ - resourceGroup
+ - serviceInstanceID
+ - storageOperatorCloudCreds
+ - subnet
+ - vpc
+ - zone
+ type: object
+ type:
+ description: type is the type of infrastructure provider for the
+ cluster.
+ maxLength: 100
+ type: string
+ x-kubernetes-validations:
+ - message: Type is immutable
+ rule: self == oldSelf
+ required:
+ - type
+ type: object
+ pullSecret:
+ description: |-
+ pullSecret is a local reference to a Secret that must have a ".dockerconfigjson" key whose content must be a valid Openshift pull secret JSON.
+ If the reference is set but none of the above requirements are met, the HostedCluster will enter a degraded state.
+ This pull secret will be part of every payload generated by the controllers for any NodePool of the HostedCluster
+ and it will be injected into the container runtime of all NodePools.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ Changing the content of the secret inplace will not trigger a rollout and might result in unpredictable behaviour.
+ 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
+ release:
+ description: |-
+ release specifies the desired OCP release payload for all the hosted cluster components.
+ This includes those components running management side like the Kube API Server and the CVO but also the operands which land in the hosted cluster data plane like the ingress controller, ovn agents, etc.
+ The maximum and minimum supported release versions are determined by the running Hypersfhit Operator.
+ Attempting to use an unsupported version will result in the HostedCluster being degraded and the validateReleaseImage condition being false.
+ Attempting to use a release with a skew against a NodePool release bigger than N-2 for the y-stream will result in leaving the NodePool in an unsupported state.
+ Changing this field will trigger a rollout of the control plane components.
+ The behavior of the rollout will be driven by the ControllerAvailabilityPolicy and InfrastructureAvailabilityPolicy for PDBs and maxUnavailable and surce policies.
+ properties:
+ image:
+ description: |-
+ image is the image pullspec of an OCP release payload image.
+ See https://quay.io/repository/openshift-release-dev/ocp-release?tab=tags for a list of available images.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: Image must start with a word character (letters, digits,
+ or underscores) and contain no white spaces
+ rule: self.matches('^(\\w+\\S+)$')
+ required:
+ - image
+ type: object
+ secretEncryption:
+ description: |-
+ secretEncryption specifies a Kubernetes secret encryption strategy for the
+ control plane.
+ properties:
+ aescbc:
+ description: aescbc defines metadata about the AESCBC secret encryption
+ strategy
+ properties:
+ activeKey:
+ description: activeKey defines the active key used to encrypt
+ new secrets
+ 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
+ backupKey:
+ description: |-
+ backupKey defines the old key during the rotation process so previously created
+ secrets can continue to be decrypted until they are all re-encrypted with the active key.
+ 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
+ required:
+ - activeKey
+ type: object
+ kms:
+ description: kms defines metadata about the kms secret encryption
+ strategy
+ properties:
+ aws:
+ description: aws defines metadata about the configuration
+ of the AWS KMS Secret Encryption provider
+ properties:
+ activeKey:
+ description: activeKey defines the active key used to
+ encrypt new secrets
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the
+ encryption key
+ maxLength: 2048
+ pattern: '^arn:'
+ type: string
+ required:
+ - arn
+ type: object
+ auth:
+ description: auth defines metadata about the management
+ of credentials used to interact with AWS KMS
+ properties:
+ awsKms:
+ description: "awsKms is an ARN value referencing a
+ role appropriate for managing the auth via the AWS
+ KMS key.\n\nThe following is an example of a valid
+ policy document:\n\n{\n\t\"Version\": \"2012-10-17\",\n\t\"Statement\":
+ [\n \t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"kms:Encrypt\",\n\t\t\t\t\"kms:Decrypt\",\n\t\t\t\t\"kms:ReEncrypt*\",\n\t\t\t\t\"kms:GenerateDataKey*\",\n\t\t\t\t\"kms:DescribeKey\"\n\t\t\t],\n\t\t\t\"Resource\":
+ %q\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ required:
+ - awsKms
+ type: object
+ backupKey:
+ description: |-
+ backupKey defines the old key during the rotation process so previously created
+ secrets can continue to be decrypted until they are all re-encrypted with the active key.
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the
+ encryption key
+ maxLength: 2048
+ pattern: '^arn:'
+ type: string
+ required:
+ - arn
+ type: object
+ region:
+ description: region contains the AWS region
+ maxLength: 255
+ type: string
+ required:
+ - activeKey
+ - auth
+ - region
+ type: object
+ azure:
+ description: azure defines metadata about the configuration
+ of the Azure KMS Secret Encryption provider using Azure
+ key vault
+ properties:
+ activeKey:
+ description: activeKey defines the active key used to
+ encrypt new secrets
+ properties:
+ keyName:
+ description: keyName is the name of the keyvault key
+ used for encrypt/decrypt
+ maxLength: 255
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the keyvault. Must match criteria specified at https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name
+ Your Microsoft Entra application used to create the cluster must be authorized to access this keyvault, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the
+ key to use
+ maxLength: 255
+ type: string
+ required:
+ - keyName
+ - keyVaultName
+ - keyVersion
+ type: object
+ backupKey:
+ description: |-
+ backupKey defines the old key during the rotation process so previously created
+ secrets can continue to be decrypted until they are all re-encrypted with the active key.
+ properties:
+ keyName:
+ description: keyName is the name of the keyvault key
+ used for encrypt/decrypt
+ maxLength: 255
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the keyvault. Must match criteria specified at https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name
+ Your Microsoft Entra application used to create the cluster must be authorized to access this keyvault, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the
+ key to use
+ maxLength: 255
+ type: string
+ required:
+ - keyName
+ - keyVaultName
+ - keyVersion
+ type: object
+ keyVaultAccess:
+ description: |-
+ keyVaultAccess specifies how the Key Vault should be accessed.
+ When set to "Private", the control plane routes Key Vault traffic through
+ the private router to reach the Key Vault's private endpoint in the customer VNet.
+ When set to "Public" or omitted, the Key Vault is accessed via its public endpoint.
+ enum:
+ - Public
+ - Private
+ - ""
+ type: string
+ kms:
+ description: kms is a pre-existing managed identity used
+ to authenticate with Azure KMS.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity must
+ be a valid UUID. It should be 5 groups of hyphen
+ separated hexadecimal characters in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ required:
+ - activeKey
+ - kms
+ type: object
+ x-kubernetes-validations:
+ - message: backupKey.keyVaultName must match activeKey.keyVaultName;
+ both keys must reside in the same Key Vault
+ rule: '!has(self.backupKey) || self.backupKey.keyVaultName
+ == self.activeKey.keyVaultName'
+ ibmcloud:
+ description: ibmcloud defines metadata for the IBM Cloud KMS
+ encryption strategy
+ properties:
+ auth:
+ description: auth defines metadata for how authentication
+ is done with IBM Cloud KMS
+ properties:
+ managed:
+ description: |-
+ managed defines metadata around the service to service authentication strategy for the IBM Cloud
+ KMS system (all provider managed).
+ type: object
+ type:
+ description: type defines the IBM Cloud KMS authentication
+ strategy
+ enum:
+ - Managed
+ - Unmanaged
+ type: string
+ unmanaged:
+ description: unmanaged defines the auth metadata the
+ customer provides to interact with IBM Cloud KMS
+ properties:
+ credentials:
+ description: |-
+ credentials should reference a secret with a key field of IBMCloudIAMAPIKeySecretKey that contains a apikey to
+ call IBM Cloud KMS APIs
+ 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
+ required:
+ - credentials
+ type: object
+ required:
+ - type
+ type: object
+ keyList:
+ description: keyList defines the list of keys used for
+ data encryption
+ items:
+ description: IBMCloudKMSKeyEntry defines metadata for
+ an IBM Cloud KMS encryption key
+ properties:
+ correlationID:
+ description: correlationID is an identifier used
+ to track all api call usage from hypershift
+ maxLength: 255
+ type: string
+ crkID:
+ description: crkID is the customer rook key id
+ maxLength: 255
+ type: string
+ instanceID:
+ description: instanceID is the id for the key protect
+ instance
+ maxLength: 255
+ type: string
+ keyVersion:
+ description: |-
+ keyVersion is a unique number associated with the key. The number increments whenever a new
+ key is enabled for data encryption.
+ maximum: 2147483647
+ minimum: 0
+ type: integer
+ url:
+ description: url is the url to call key protect
+ apis over
+ maxLength: 2048
+ pattern: ^https://
+ type: string
+ required:
+ - correlationID
+ - crkID
+ - instanceID
+ - keyVersion
+ - url
+ type: object
+ maxItems: 100
+ type: array
+ region:
+ description: region is the IBM Cloud region
+ maxLength: 255
+ type: string
+ required:
+ - auth
+ - keyList
+ - region
+ type: object
+ provider:
+ description: provider defines the KMS provider
+ enum:
+ - IBMCloud
+ - AWS
+ - Azure
+ type: string
+ required:
+ - provider
+ type: object
+ type:
+ description: type defines the type of kube secret encryption being
+ used
+ enum:
+ - kms
+ - aescbc
+ type: string
+ required:
+ - type
+ type: object
+ serviceAccountSigningKey:
+ description: |-
+ serviceAccountSigningKey is a local reference to a secret that must have a "key" key whose content must be the private key
+ used by the service account token issuer.
+ If not specified, a service account signing key will
+ be generated automatically for the cluster.
+ When specifying a service account signing key, an IssuerURL must also be specified.
+ If the reference is set but none of the above requirements are met, the HostedCluster will enter a degraded state.
+
+ For key rotation, the secret may optionally contain an "old-key.pub" key whose content is the PEM-encoded
+ public key of the previous signing key. When present, the kube-apiserver will accept tokens signed by
+ both the current and previous keys, allowing for graceful key rotation without invalidating existing tokens.
+ 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
+ services:
+ description: |-
+ services specifies how individual control plane services endpoints are published for consumption.
+ This requires APIServer;OAuthServer;Konnectivity;Ignition.
+ This field is immutable for all platforms but IBMCloud.
+ Max is 6 to account for OIDC;OVNSbDb for backward compatibility though they are no-op.
+
+ -kubebuilder:validation:XValidation:rule="self.all(s, !(s.service == 'APIServer' && s.servicePublishingStrategy.type == 'Route') || has(s.servicePublishingStrategy.route.hostname))",message="If serviceType is 'APIServer' and publishing strategy is 'Route', then hostname must be set"
+ -kubebuilder:validation:XValidation:rule="self.platform.type == 'IBMCloud' ? ['APIServer', 'OAuthServer', 'Konnectivity'].all(requiredType, self.exists(s, s.service == requiredType))",message="Services list must contain at least 'APIServer', 'OAuthServer', and 'Konnectivity' service types" : ['APIServer', 'OAuthServer', 'Konnectivity', 'Ignition'].all(requiredType, self.exists(s, s.service == requiredType))",message="Services list must contain at least 'APIServer', 'OAuthServer', 'Konnectivity', and 'Ignition' service types"
+ -kubebuilder:validation:XValidation:rule="self.filter(s, s.servicePublishingStrategy.type == 'Route' && has(s.servicePublishingStrategy.route) && has(s.servicePublishingStrategy.route.hostname)).all(x, self.filter(y, y.servicePublishingStrategy.type == 'Route' && (has(y.servicePublishingStrategy.route) && has(y.servicePublishingStrategy.route.hostname) && y.servicePublishingStrategy.route.hostname == x.servicePublishingStrategy.route.hostname)).size() <= 1)",message="Each route publishingStrategy 'hostname' must be unique within the Services list."
+ -kubebuilder:validation:XValidation:rule="self.filter(s, s.servicePublishingStrategy.type == 'NodePort' && has(s.servicePublishingStrategy.nodePort) && has(s.servicePublishingStrategy.nodePort.address) && has(s.servicePublishingStrategy.nodePort.port)).all(x, self.filter(y, y.servicePublishingStrategy.type == 'NodePort' && (has(y.servicePublishingStrategy.nodePort) && has(y.servicePublishingStrategy.nodePort.address) && y.servicePublishingStrategy.nodePort.address == x.servicePublishingStrategy.nodePort.address && has(y.servicePublishingStrategy.nodePort.port) && y.servicePublishingStrategy.nodePort.port == x.servicePublishingStrategy.nodePort.port )).size() <= 1)",message="Each nodePort publishingStrategy 'nodePort' and 'hostname' must be unique within the Services list."
+ items:
+ description: |-
+ ServicePublishingStrategyMapping specifies how individual control plane services endpoints are published for consumption.
+ This includes APIServer;OAuthServer;Konnectivity;Ignition.
+ If a given service is not present in this list, it will be exposed publicly by default.
+ properties:
+ service:
+ description: |-
+ service identifies the type of service being published.
+ It can be APIServer;OAuthServer;Konnectivity;Ignition
+ OVNSbDb;OIDC are no-op and kept for backward compatibility.
+ This field is immutable.
+ enum:
+ - APIServer
+ - OAuthServer
+ - OIDC
+ - Konnectivity
+ - Ignition
+ - OVNSbDb
+ type: string
+ servicePublishingStrategy:
+ description: servicePublishingStrategy specifies how to publish
+ a service endpoint.
+ properties:
+ loadBalancer:
+ description: loadBalancer configures exposing a service
+ using a dedicated LoadBalancer.
+ properties:
+ hostname:
+ description: |-
+ hostname is the name of the DNS record that will be created pointing to the LoadBalancer and passed through to consumers of the service.
+ If omitted, the value will be inferred from the corev1.Service Load balancer type .status.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: hostname must be a valid domain name (e.g.,
+ example.com)
+ rule: self.matches('^(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}$')
+ type: object
+ nodePort:
+ description: nodePort configures exposing a service using
+ a NodePort.
+ properties:
+ address:
+ description: address is the host/ip that the NodePort
+ service is exposed over.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: address must be a valid hostname, IPv4, or
+ IPv6 address
+ rule: self.matches('^(([a-zA-Z0-9][-a-zA-Z0-9]*\\.)+[a-zA-Z]{2,}|localhost)$')
+ || self.matches('^((\\d{1,3}\\.){3}\\d{1,3})$')
+ || self.matches('^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$')
+ port:
+ description: |-
+ port is the port of the NodePort service. If <=0, the port is dynamically
+ assigned when the service is created.
+ format: int32
+ type: integer
+ required:
+ - address
+ type: object
+ route:
+ description: |-
+ route configures exposing a service using a Route through and an ingress controller behind a cloud Load Balancer.
+ The specifics of the setup are platform dependent.
+ properties:
+ hostname:
+ description: |-
+ hostname is the name of the DNS record that will be created pointing to the Route and passed through to consumers of the service.
+ If omitted, the value will be inferred from management ingress.Spec.Domain.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: hostname must be a valid domain name (e.g.,
+ example.com)
+ rule: self.matches('^(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}$')
+ type: object
+ type:
+ description: |-
+ type is the publishing strategy used for the service.
+ It can be LoadBalancer;NodePort;Route;None;S3
+ enum:
+ - LoadBalancer
+ - NodePort
+ - Route
+ - None
+ - S3
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-validations:
+ - message: nodePort is required when type is NodePort, and forbidden
+ otherwise
+ rule: 'self.type == ''NodePort'' ? has(self.nodePort) : !has(self.nodePort)'
+ - message: only route is allowed when type is Route, and forbidden
+ otherwise
+ rule: 'self.type == ''Route'' ? !has(self.nodePort) && !has(self.loadBalancer)
+ : !has(self.route)'
+ - message: only loadBalancer is required when type is LoadBalancer,
+ and forbidden otherwise
+ rule: 'self.type == ''LoadBalancer'' ? !has(self.nodePort)
+ && !has(self.route) : !has(self.loadBalancer)'
+ - message: None does not allowed any configuration for loadBalancer,
+ nodePort, or route
+ rule: 'self.type == ''None'' ? !has(self.nodePort) && !has(self.route)
+ && !has(self.loadBalancer) : true'
+ - message: S3 does not allowed any configuration for loadBalancer,
+ nodePort, or route
+ rule: 'self.type == ''S3'' ? !has(self.nodePort) && !has(self.route)
+ && !has(self.loadBalancer) : true'
+ required:
+ - service
+ - servicePublishingStrategy
+ type: object
+ maxItems: 6
+ type: array
+ sshKey:
+ description: |-
+ sshKey is a local reference to a Secret that must have a "id_rsa.pub" key whose content must be the public part of 1..N SSH keys.
+ If the reference is set but none of the above requirements are met, the HostedCluster will enter a degraded state.
+ When sshKey is set, the controllers will generate a machineConfig with the sshAuthorizedKeys https://coreos.github.io/ignition/configuration-v3_2/ populated with this value.
+ This MachineConfig will be part of every payload generated by the controllers for any NodePool of the HostedCluster.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ 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
+ tolerations:
+ description: tolerations when specified, define what custom tolerations
+ are added to the hcp pods.
+ 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
+ maxItems: 25
+ type: array
+ updateService:
+ description: |-
+ updateService may be used to specify the preferred upstream update service.
+ If omitted we will use the appropriate update service for the cluster and region.
+ This is used by the control plane operator to determine and signal the appropriate available upgrades in the hostedCluster.status.
+ type: string
+ x-kubernetes-validations:
+ - message: updateService must be a valid absolute URL
+ rule: isURL(self)
+ required:
+ - etcd
+ - networking
+ - platform
+ - pullSecret
+ - release
+ - services
+ type: object
+ x-kubernetes-validations:
+ - message: spec.services in body should have at least 4 items or 3 for
+ IBMCloud
+ rule: 'self.platform.type == ''IBMCloud'' ? size(self.services) >= 3
+ : size(self.services) >= 4'
+ - message: Services is immutable. Changes might result in unpredictable
+ and disruptive behavior.
+ rule: 'self.platform.type != "IBMCloud" ? self.services == oldSelf.services
+ : true'
+ - message: Azure platform requires OAuthServer to use Route service publishing
+ strategy
+ rule: 'self.platform.type == "Azure" ? self.services.exists(s, s.service
+ == "OAuthServer" && s.servicePublishingStrategy.type == "Route") :
+ true'
+ - message: Azure platform requires Konnectivity to use Route service publishing
+ strategy
+ rule: 'self.platform.type == "Azure" ? self.services.exists(s, s.service
+ == "Konnectivity" && s.servicePublishingStrategy.type == "Route")
+ : true'
+ - message: Azure platform requires Ignition to use Route service publishing
+ strategy
+ rule: 'self.platform.type == "Azure" ? self.services.exists(s, s.service
+ == "Ignition" && s.servicePublishingStrategy.type == "Route") : true'
+ - message: If serviceAccountSigningKey is set, issuerURL must be set
+ rule: has(self.issuerURL) || !has(self.serviceAccountSigningKey)
+ - message: APIServer loadBalancer hostname cannot be in ClusterConfiguration.apiserver.servingCerts.namedCertificates[]
+ rule: '!self.services.exists(s, s.service == ''APIServer'' && has(s.servicePublishingStrategy.loadBalancer)
+ && s.servicePublishingStrategy.loadBalancer.hostname != "" && has(self.configuration)
+ && has(self.configuration.apiServer) && self.configuration.apiServer.servingCerts.namedCertificates.exists(cert,
+ cert.names.exists(n, n == s.servicePublishingStrategy.loadBalancer.hostname)))'
+ - message: disableMultiNetwork can only be set to true when networkType
+ is 'Other'
+ rule: '!has(self.operatorConfiguration) || !has(self.operatorConfiguration.clusterNetworkOperator)
+ || !has(self.operatorConfiguration.clusterNetworkOperator.disableMultiNetwork)
+ || !self.operatorConfiguration.clusterNetworkOperator.disableMultiNetwork
+ || self.networking.networkType == ''Other'''
+ - message: ovnKubernetesConfig is forbidden when networkType is not OVNKubernetes
+ rule: self.networking.networkType == 'OVNKubernetes' || !has(self.operatorConfiguration)
+ || !has(self.operatorConfiguration.clusterNetworkOperator) || !has(self.operatorConfiguration.clusterNetworkOperator.ovnKubernetesConfig)
+ status:
+ description: status is the latest observed status of the HostedCluster.
+ properties:
+ conditions:
+ description: |-
+ conditions represents the latest available observations of a control
+ plane's current state.
+ items:
+ description: Condition contains details for one aspect of the current
+ state of this API Resource.
+ properties:
+ lastTransitionTime:
+ description: |-
+ lastTransitionTime is the 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: |-
+ message is a human readable message indicating details about the transition.
+ This may be an empty string.
+ maxLength: 32768
+ type: string
+ observedGeneration:
+ description: |-
+ observedGeneration represents the .metadata.generation that the condition was set based upon.
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+ with respect to the current state of the instance.
+ format: int64
+ minimum: 0
+ type: integer
+ reason:
+ description: |-
+ reason contains a programmatic identifier indicating the reason for the condition's last transition.
+ Producers of specific condition types may define expected values and meanings for this field,
+ and whether the values are considered a guaranteed API.
+ The value should be a CamelCase string.
+ This field may not be empty.
+ maxLength: 1024
+ minLength: 1
+ pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
+ type: string
+ status:
+ description: status of the condition, one of True, False, Unknown.
+ enum:
+ - "True"
+ - "False"
+ - Unknown
+ type: string
+ type:
+ description: type of condition in CamelCase or in foo.example.com/CamelCase.
+ maxLength: 316
+ pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
+ type: string
+ required:
+ - lastTransitionTime
+ - message
+ - reason
+ - status
+ - type
+ type: object
+ maxItems: 100
+ type: array
+ x-kubernetes-list-map-keys:
+ - type
+ x-kubernetes-list-type: map
+ configuration:
+ description: configuration contains the cluster configuration status
+ of the HostedCluster
+ properties:
+ authentication:
+ description: |-
+ authentication contains the observed authentication configuration status from the hosted cluster.
+ This field reflects the current state of the cluster authentication including OAuth metadata,
+ OIDC client status, and other authentication-related configurations.
+ properties:
+ integratedOAuthMetadata:
+ description: |-
+ integratedOAuthMetadata contains the discovery endpoint data for OAuth 2.0
+ Authorization Server Metadata for the in-cluster integrated OAuth server.
+ This discovery document can be viewed from its served location:
+ oc get --raw '/.well-known/oauth-authorization-server'
+ For further details, see the IETF Draft:
+ https://tools.ietf.org/html/draft-ietf-oauth-discovery-04#section-2
+ This contains the observed value based on cluster state.
+ An explicitly set value in spec.oauthMetadata has precedence over this field.
+ This field has no meaning if authentication spec.type is not set to IntegratedOAuth.
+ The key "oauthMetadata" is used to locate the data.
+ If the config map or expected key is not found, no metadata is served.
+ If the specified metadata is not valid, no metadata is served.
+ The namespace for this config map is openshift-config-managed.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ type: object
+ controlPlaneEndpoint:
+ description: |-
+ controlPlaneEndpoint contains the endpoint information by which
+ external clients can access the control plane. This is populated
+ after the infrastructure is ready.
+ properties:
+ host:
+ description: host is the hostname on which the API server is serving.
+ maxLength: 255
+ type: string
+ port:
+ description: port is the port on which the API server is serving.
+ format: int32
+ type: integer
+ required:
+ - host
+ - port
+ type: object
+ customKubeconfig:
+ description: |-
+ customKubeconfig is a local secret reference to the external custom kubeconfig.
+ Once the hypershift operator sets this status field, it will generate a secret with the specified name containing a kubeconfig within the `HostedCluster` namespace.
+ 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
+ ignitionEndpoint:
+ description: |-
+ ignitionEndpoint is the endpoint injected in the ign config userdata.
+ It exposes the config for instances to become kubernetes nodes.
+ maxLength: 1024
+ type: string
+ kubeadminPassword:
+ description: |-
+ kubeadminPassword is a reference to the secret that contains the initial
+ kubeadmin user password for the guest cluster.
+ 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
+ kubeconfig:
+ description: |-
+ kubeconfig is a reference to the secret containing the default kubeconfig
+ for the cluster.
+ 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
+ oauthCallbackURLTemplate:
+ description: |-
+ oauthCallbackURLTemplate contains a template for the URL to use as a callback
+ for identity providers. The [identity-provider-name] placeholder must be replaced
+ with the name of an identity provider defined on the HostedCluster.
+ This is populated after the infrastructure is ready.
+ maxLength: 1024
+ type: string
+ payloadArch:
+ description: |-
+ payloadArch represents the CPU architecture type of the HostedCluster.Spec.Release.Image. The valid values are:
+ Multi, ARM64, AMD64, S390X, or PPC64LE.
+ enum:
+ - Multi
+ - ARM64
+ - AMD64
+ - PPC64LE
+ - S390X
+ type: string
+ platform:
+ description: platform contains platform-specific status of the HostedCluster
+ properties:
+ aws:
+ description: aws contains platform-specific status for AWS
+ properties:
+ defaultWorkerSecurityGroupID:
+ description: |-
+ defaultWorkerSecurityGroupID is the ID of a security group created by
+ the control plane operator. It is always added to worker machines in
+ addition to any security groups specified in the NodePool.
+ maxLength: 255
+ type: string
+ type: object
+ type: object
+ version:
+ description: |-
+ version is the status of the release version applied to the
+ HostedCluster.
+ properties:
+ availableUpdates:
+ description: |-
+ availableUpdates contains updates recommended for this
+ cluster. Updates which appear in conditionalUpdates but not in
+ availableUpdates may expose this cluster to known issues. This list
+ may be empty if no updates are recommended, if the update service
+ is unavailable, or if an invalid channel has been specified.
+ items:
+ description: Release represents an OpenShift release image and
+ associated metadata.
+ properties:
+ channels:
+ description: |-
+ channels is the set of Cincinnati channels to which the release
+ currently belongs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: set
+ image:
+ description: |-
+ image is a container image location that contains the update. When this
+ field is part of spec, image is optional if version is specified and the
+ availableUpdates field contains a matching version.
+ type: string
+ url:
+ description: |-
+ url contains information about this release. This URL is set by
+ the 'url' metadata property on a release or the metadata returned by
+ the update API and should be displayed as a link in user
+ interfaces. The URL field may not be set for test or nightly
+ releases.
+ type: string
+ version:
+ description: |-
+ version is a semantic version identifying the update version. When this
+ field is part of spec, version is optional if image is specified.
+ type: string
+ required:
+ - image
+ - version
+ type: object
+ maxItems: 100
+ nullable: true
+ type: array
+ conditionalUpdates:
+ description: |-
+ conditionalUpdates contains the list of updates that may be
+ recommended for this cluster if it meets specific required
+ conditions. Consumers interested in the set of updates that are
+ actually recommended for this cluster should use
+ availableUpdates. This list may be empty if no updates are
+ recommended, if the update service is unavailable, or if an empty
+ or invalid channel has been specified.
+ items:
+ description: |-
+ ConditionalUpdate represents an update which is recommended to some
+ clusters on the version the current cluster is reconciling, but which
+ may not be recommended for the current cluster.
+ properties:
+ conditions:
+ description: |-
+ conditions represents the observations of the conditional update's
+ current status. Known types are:
+ * Recommended, for whether the update is recommended for the current cluster.
+ items:
+ description: Condition contains details for one aspect
+ of the current state of this API Resource.
+ properties:
+ lastTransitionTime:
+ description: |-
+ lastTransitionTime is the 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: |-
+ message is a human readable message indicating details about the transition.
+ This may be an empty string.
+ maxLength: 32768
+ type: string
+ observedGeneration:
+ description: |-
+ observedGeneration represents the .metadata.generation that the condition was set based upon.
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+ with respect to the current state of the instance.
+ format: int64
+ minimum: 0
+ type: integer
+ reason:
+ description: |-
+ reason contains a programmatic identifier indicating the reason for the condition's last transition.
+ Producers of specific condition types may define expected values and meanings for this field,
+ and whether the values are considered a guaranteed API.
+ The value should be a CamelCase string.
+ This field may not be empty.
+ maxLength: 1024
+ minLength: 1
+ pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
+ type: string
+ status:
+ description: status of the condition, one of True,
+ False, Unknown.
+ enum:
+ - "True"
+ - "False"
+ - Unknown
+ type: string
+ type:
+ description: type of condition in CamelCase or in
+ foo.example.com/CamelCase.
+ maxLength: 316
+ pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
+ type: string
+ required:
+ - lastTransitionTime
+ - message
+ - reason
+ - status
+ - type
+ type: object
+ type: array
+ x-kubernetes-list-map-keys:
+ - type
+ x-kubernetes-list-type: map
+ release:
+ description: release is the target of the update.
+ properties:
+ channels:
+ description: |-
+ channels is the set of Cincinnati channels to which the release
+ currently belongs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: set
+ image:
+ description: |-
+ image is a container image location that contains the update. When this
+ field is part of spec, image is optional if version is specified and the
+ availableUpdates field contains a matching version.
+ type: string
+ url:
+ description: |-
+ url contains information about this release. This URL is set by
+ the 'url' metadata property on a release or the metadata returned by
+ the update API and should be displayed as a link in user
+ interfaces. The URL field may not be set for test or nightly
+ releases.
+ type: string
+ version:
+ description: |-
+ version is a semantic version identifying the update version. When this
+ field is part of spec, version is optional if image is specified.
+ type: string
+ required:
+ - image
+ - version
+ type: object
+ risks:
+ description: |-
+ risks represents the range of issues associated with
+ updating to the target release. The cluster-version
+ operator will evaluate all entries, and only recommend the
+ update if there is at least one entry and all entries
+ recommend the update.
+ items:
+ description: |-
+ ConditionalUpdateRisk represents a reason and cluster-state
+ for not recommending a conditional update.
+ properties:
+ matchingRules:
+ description: |-
+ matchingRules is a slice of conditions for deciding which
+ clusters match the risk and which do not. The slice is
+ ordered by decreasing precedence. The cluster-version
+ operator will walk the slice in order, and stop after the
+ first it can successfully evaluate. If no condition can be
+ successfully evaluated, the update will not be recommended.
+ items:
+ description: |-
+ ClusterCondition is a union of typed cluster conditions. The 'type'
+ property determines which of the type-specific properties are relevant.
+ When evaluated on a cluster, the condition may match, not match, or
+ fail to evaluate.
+ properties:
+ promql:
+ description: promql represents a cluster condition
+ based on PromQL.
+ properties:
+ promql:
+ description: |-
+ promql is a PromQL query classifying clusters. This query
+ query should return a 1 in the match case and a 0 in the
+ does-not-match case. Queries which return no time
+ series, or which return values besides 0 or 1, are
+ evaluation failures.
+ type: string
+ required:
+ - promql
+ type: object
+ type:
+ description: |-
+ type represents the cluster-condition type. This defines
+ the members and semantics of any additional properties.
+ enum:
+ - Always
+ - PromQL
+ type: string
+ required:
+ - type
+ type: object
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: atomic
+ message:
+ description: |-
+ message provides additional information about the risk of
+ updating, in the event that matchingRules match the cluster
+ state. This is only to be consumed by humans. It may
+ contain Line Feed characters (U+000A), which should be
+ rendered as new lines.
+ minLength: 1
+ type: string
+ name:
+ description: |-
+ name is the CamelCase reason for not recommending a
+ conditional update, in the event that matchingRules match the
+ cluster state.
+ minLength: 1
+ type: string
+ url:
+ description: url contains information about this risk.
+ format: uri
+ minLength: 1
+ type: string
+ required:
+ - matchingRules
+ - message
+ - name
+ - url
+ type: object
+ maxItems: 200
+ minItems: 1
+ type: array
+ x-kubernetes-list-map-keys:
+ - name
+ x-kubernetes-list-type: map
+ required:
+ - release
+ - risks
+ type: object
+ maxItems: 100
+ type: array
+ x-kubernetes-list-type: atomic
+ desired:
+ description: |-
+ desired is the version that the cluster is reconciling towards.
+ If the cluster is not yet fully initialized desired will be set
+ with the information available, which may be an image or a tag.
+ properties:
+ channels:
+ description: |-
+ channels is the set of Cincinnati channels to which the release
+ currently belongs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: set
+ image:
+ description: |-
+ image is a container image location that contains the update. When this
+ field is part of spec, image is optional if version is specified and the
+ availableUpdates field contains a matching version.
+ type: string
+ url:
+ description: |-
+ url contains information about this release. This URL is set by
+ the 'url' metadata property on a release or the metadata returned by
+ the update API and should be displayed as a link in user
+ interfaces. The URL field may not be set for test or nightly
+ releases.
+ type: string
+ version:
+ description: |-
+ version is a semantic version identifying the update version. When this
+ field is part of spec, version is optional if image is specified.
+ type: string
+ required:
+ - image
+ - version
+ type: object
+ history:
+ description: |-
+ history contains a list of the most recent versions applied to the cluster.
+ This value may be empty during cluster startup, and then will be updated
+ when a new update is being applied. The newest update is first in the
+ list and it is ordered by recency. Updates in the history have state
+ Completed if the rollout completed - if an update was failing or halfway
+ applied the state will be Partial. Only a limited amount of update history
+ is preserved.
+ items:
+ description: UpdateHistory is a single attempted update to the
+ cluster.
+ properties:
+ acceptedRisks:
+ description: |-
+ acceptedRisks records risks which were accepted to initiate the update.
+ For example, it may mention an Upgradeable=False or missing signature
+ that was overridden via desiredUpdate.force, or an update that was
+ initiated despite not being in the availableUpdates set of recommended
+ update targets.
+ type: string
+ completionTime:
+ description: |-
+ completionTime, if set, is when the update was fully applied. The update
+ that is currently being applied will have a null completion time.
+ Completion time will always be set for entries that are not the current
+ update (usually to the started time of the next update).
+ format: date-time
+ nullable: true
+ type: string
+ image:
+ description: |-
+ image is a container image location that contains the update. This value
+ is always populated.
+ type: string
+ startedTime:
+ description: startedTime is the time at which the update
+ was started.
+ format: date-time
+ type: string
+ state:
+ description: |-
+ state reflects whether the update was fully applied. The Partial state
+ indicates the update is not fully applied, while the Completed state
+ indicates the update was successfully rolled out at least once (all
+ parts of the update successfully applied).
+ type: string
+ verified:
+ description: |-
+ verified indicates whether the provided update was properly verified
+ before it was installed. If this is false the cluster may not be trusted.
+ Verified does not cover upgradeable checks that depend on the cluster
+ state at the time when the update target was accepted.
+ type: boolean
+ version:
+ description: |-
+ version is a semantic version identifying the update version. If the
+ requested image does not define a version, or if a failure occurs
+ retrieving the image, this value may be empty.
+ type: string
+ required:
+ - completionTime
+ - image
+ - startedTime
+ - state
+ - verified
+ type: object
+ type: array
+ observedGeneration:
+ description: |-
+ observedGeneration reports which version of the spec is being synced.
+ If this value is not equal to metadata.generation, then the desired
+ and conditions fields may represent a previous version.
+ format: int64
+ type: integer
+ required:
+ - availableUpdates
+ - desired
+ - observedGeneration
+ type: object
+ type: object
+ type: object
+ served: true
+ storage: true
+ subresources:
+ status: {}
diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPEtcdBackup.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPEtcdBackup.yaml
new file mode 100644
index 000000000000..1e6e2f4d09e2
--- /dev/null
+++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPEtcdBackup.yaml
@@ -0,0 +1,6536 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ feature-gate.release.openshift.io/HCPEtcdBackup: "true"
+ name: hostedcontrolplanes.hypershift.openshift.io
+spec:
+ group: hypershift.openshift.io
+ names:
+ categories:
+ - cluster-api
+ kind: HostedControlPlane
+ listKind: HostedControlPlaneList
+ plural: hostedcontrolplanes
+ shortNames:
+ - hcp
+ - hcps
+ singular: hostedcontrolplane
+ scope: Namespaced
+ versions:
+ - name: v1beta1
+ schema:
+ openAPIV3Schema:
+ description: HostedControlPlane defines the desired state of HostedControlPlane
+ properties:
+ apiVersion:
+ description: |-
+ APIVersion defines the versioned schema of this representation of an object.
+ Servers should convert recognized schemas to the latest internal value, and
+ may reject unrecognized values.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |-
+ Kind is a string value representing the REST resource this object represents.
+ Servers may infer this from the endpoint the client submits requests to.
+ Cannot be updated.
+ In CamelCase.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: spec is the specification for the HostedControlPlane.
+ properties:
+ additionalTrustBundle:
+ description: additionalTrustBundle references a ConfigMap containing
+ a PEM-encoded X.509 certificate bundle
+ 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
+ auditWebhook:
+ description: |-
+ auditWebhook contains metadata for configuring an audit webhook
+ endpoint for a cluster to process cluster audit events. It references
+ a secret that contains the webhook information for the audit webhook endpoint.
+ It is a secret because if the endpoint has MTLS the kubeconfig will contain client
+ keys. This is currently only supported in IBM Cloud. The kubeconfig needs to be stored
+ in the secret with a secret key name that corresponds to the constant AuditWebhookKubeconfigKey.
+ 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
+ autoscaling:
+ description: |-
+ autoscaling specifies auto-scaling behavior that applies to all NodePools
+ associated with the control plane.
+ properties:
+ balancingIgnoredLabels:
+ description: |-
+ balancingIgnoredLabels sets "--balancing-ignore-label " flag on cluster-autoscaler for each listed label.
+ This option specifies labels that cluster autoscaler should ignore when considering node group similarity.
+ For example, if you have nodes with "topology.ebs.csi.aws.com/zone" label, you can add name of this label here
+ to prevent cluster autoscaler from splitting nodes into different node groups based on its value.
+
+ HyperShift automatically appends platform-specific balancing ignore labels:
+ - AWS: "lifecycle", "k8s.amazonaws.com/eniConfig", "topology.k8s.aws/zone-id"
+ - Azure: "agentpool", "kubernetes.azure.com/agentpool"
+ - Common:
+ - "hypershift.openshift.io/nodePool"
+ - "topology.ebs.csi.aws.com/zone"
+ - "topology.disk.csi.azure.com/zone"
+ - "ibm-cloud.kubernetes.io/worker-id"
+ - "vpc-block-csi-driver-labels"
+ These labels are added by default and do not need to be manually specified.
+ items:
+ maxLength: 317
+ type: string
+ maxItems: 64
+ type: array
+ x-kubernetes-validations:
+ - message: Each balancingIgnoredLabels item must be a valid label
+ key
+ rule: self.all(l, l.matches('^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?[a-zA-Z0-9]([a-zA-Z0-9_.-]{0,61}[a-zA-Z0-9])?$'))
+ expanders:
+ description: |-
+ expanders guide the autoscaler in choosing node groups during scale-out.
+ Sets the order of expanders for scaling out node groups.
+ Options include:
+ * LeastWaste - selects the group with minimal idle CPU and memory after scaling.
+ * Priority - selects the group with the highest user-defined priority.
+ * Random - selects a group randomly.
+ If not specified, `[Priority, LeastWaste]` is the default.
+ Maximum of 3 expanders can be specified.
+ items:
+ description: ExpanderString contains the name of an expander
+ to be used by the cluster autoscaler.
+ enum:
+ - LeastWaste
+ - Priority
+ - Random
+ type: string
+ maxItems: 3
+ minItems: 1
+ type: array
+ maxFreeDifferenceRatioPercent:
+ description: |-
+ maxFreeDifferenceRatioPercent sets the maximum difference ratio for free resources between similar node groups. This parameter controls how strict the similarity check is when comparing node groups for load balancing.
+ The value represents a percentage from 0 to 100.
+ When set to 0, this means node groups must have exactly the same free resources to be considered similar (no difference allowed).
+ When set to 100, this means node groups will be considered similar regardless of their free resource differences (any difference allowed).
+ A value between 0 and 100 represents the maximum allowed difference ratio for free resources between node groups to be considered similar.
+ When omitted, the autoscaler defaults to 10%.
+ This affects the "--max-free-difference-ratio" flag on cluster-autoscaler.
+ format: int32
+ maximum: 100
+ minimum: 0
+ type: integer
+ maxNodeProvisionTime:
+ description: |-
+ maxNodeProvisionTime is the maximum time to wait for node provisioning
+ before considering the provisioning to be unsuccessful, expressed as a Go
+ duration string. The default is 15 minutes.
+ maxLength: 100
+ pattern: ^([0-9]+(\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$
+ type: string
+ maxNodesTotal:
+ description: |-
+ maxNodesTotal is the maximum allowable number of nodes for the Autoscaler scale out to be operational.
+ The autoscaler will not grow the cluster beyond this number.
+ If omitted, the autoscaler will not have a maximum limit.
+ number.
+ format: int32
+ minimum: 0
+ type: integer
+ maxPodGracePeriod:
+ description: |-
+ maxPodGracePeriod is the maximum seconds to wait for graceful pod
+ termination before scaling down a NodePool. The default is 600 seconds.
+ format: int32
+ minimum: 0
+ type: integer
+ podPriorityThreshold:
+ description: |-
+ podPriorityThreshold enables users to schedule "best-effort" pods, which
+ shouldn't trigger autoscaler actions, but only run when there are spare
+ resources available. The default is -10.
+
+ See the following for more details:
+ https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-does-cluster-autoscaler-work-with-pod-priority-and-preemption
+ format: int32
+ type: integer
+ scaleDown:
+ description: |-
+ scaleDown configures the behavior of the Cluster Autoscaler scale down operation.
+ This field is only valid when scaling is set to ScaleUpAndScaleDown.
+ properties:
+ delayAfterAddSeconds:
+ description: |-
+ delayAfterAddSeconds sets how long after scale up the scale down evaluation resumes in seconds.
+ It must be between 0 and 86400 (24 hours).
+ When set to 0, this means scale down evaluation will resume immediately after scale up, without any delay.
+ When omitted, the autoscaler defaults to 600s (10 minutes).
+ format: int32
+ maximum: 86400
+ minimum: 0
+ type: integer
+ delayAfterDeleteSeconds:
+ description: |-
+ delayAfterDeleteSeconds sets how long after node deletion, scale down evaluation resumes, defaults to scan-interval.
+ It must be between 0 and 86400 (24 hours).
+ When set to 0, this means scale down evaluation will resume immediately after node deletion, without any delay.
+ When omitted, the autoscaler defaults to 0s.
+ format: int32
+ maximum: 86400
+ minimum: 0
+ type: integer
+ delayAfterFailureSeconds:
+ description: |-
+ delayAfterFailureSeconds sets how long after a scale down failure, scale down evaluation resumes.
+ It must be between 0 and 86400 (24 hours).
+ When set to 0, this means scale down evaluation will resume immediately after a scale down failure, without any delay.
+ When omitted, the autoscaler defaults to 180s (3 minutes).
+ format: int32
+ maximum: 86400
+ minimum: 0
+ type: integer
+ unneededDurationSeconds:
+ description: |-
+ unneededDurationSeconds establishes how long a node should be unneeded before it is eligible for scale down in seconds.
+ It must be between 0 and 86400 (24 hours).
+ When omitted, the autoscaler defaults to 600s (10 minutes).
+ format: int32
+ maximum: 86400
+ minimum: 0
+ type: integer
+ utilizationThresholdPercent:
+ description: |-
+ utilizationThresholdPercent determines the node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down.
+ The value represents a percentage from 0 to 100.
+ When set to 0, this means nodes will only be considered for scale down if they are completely idle (0% utilization).
+ When set to 100, this means nodes will be considered for scale down regardless of their utilization level.
+ A value between 0 and 100 represents the utilization threshold below which a node can be considered for scale down.
+ When omitted, the autoscaler defaults to 50%.
+ format: int32
+ maximum: 100
+ minimum: 0
+ type: integer
+ type: object
+ scaling:
+ default: ScaleUpAndScaleDown
+ description: |-
+ scaling defines the scaling behavior for the cluster autoscaler.
+ ScaleUpOnly means the autoscaler will only scale up nodes, never scale down.
+ ScaleUpAndScaleDown means the autoscaler will both scale up and scale down nodes.
+ When set to ScaleUpAndScaleDown, the scaleDown field can be used to configure scale down behavior.
+
+ Note: This field is only supported in OpenShift versions 4.19 and above.
+ enum:
+ - ScaleUpOnly
+ - ScaleUpAndScaleDown
+ type: string
+ type: object
+ x-kubernetes-validations:
+ - message: scaleDown can only be set when scaling is ScaleUpAndScaleDown
+ rule: 'self.scaling == ''ScaleUpAndScaleDown'' ? true : !has(self.scaleDown)'
+ capabilities:
+ default: {}
+ description: |-
+ capabilities allows for disabling optional components at cluster install time.
+ This field is optional and once set cannot be changed.
+ properties:
+ disabled:
+ description: |-
+ disabled when specified, explicitly disables the specified capabilitÃes on the hosted cluster.
+ Once set, this field cannot be changed.
+
+ Note: Disabling 'openshift-samples','Insights', 'Console', 'NodeTuning', 'Ingress' are only supported in OpenShift versions 4.20 and above.
+ items:
+ enum:
+ - ImageRegistry
+ - openshift-samples
+ - Insights
+ - baremetal
+ - Console
+ - NodeTuning
+ - Ingress
+ type: string
+ maxItems: 25
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: Disabled is immutable. Changes might result in unpredictable
+ and disruptive behavior.
+ rule: self == oldSelf
+ - message: Ingress capability can only be disabled if Console
+ capability is also disabled
+ rule: '!self.exists(cap, cap == ''Ingress'') || self.exists(cap,
+ cap == ''Console'')'
+ enabled:
+ description: |-
+ enabled when specified, explicitly enables the specified capabilitÃes on the hosted cluster.
+ Once set, this field cannot be changed.
+ items:
+ enum:
+ - ImageRegistry
+ - openshift-samples
+ - Insights
+ - baremetal
+ - Console
+ - NodeTuning
+ - Ingress
+ type: string
+ maxItems: 25
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: Enabled is immutable. Changes might result in unpredictable
+ and disruptive behavior.
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: Capabilities is immutable. Changes might result in unpredictable
+ and disruptive behavior.
+ rule: self == oldSelf
+ - message: Capabilities can not be both enabled and disabled at once.
+ rule: 'has(self.enabled) && has(self.disabled) ? self.enabled.all(e,
+ !(e in self.disabled)) : true'
+ channel:
+ description: |-
+ channel is an identifier for explicitly requesting that a non-default
+ set of updates be applied to this cluster. The default channel will be
+ contain stable updates that are appropriate for production clusters.
+ maxLength: 255
+ type: string
+ clusterID:
+ description: |-
+ clusterID is the unique id that identifies the cluster externally.
+ Making it optional here allows us to keep compatibility with previous
+ versions of the control-plane-operator that have no knowledge of this
+ field.
+ maxLength: 255
+ type: string
+ configuration:
+ description: |-
+ configuration embeds resources that correspond to the openshift configuration API:
+ https://docs.openshift.com/container-platform/4.7/rest_api/config_apis/config-apis-index.html
+ properties:
+ apiServer:
+ description: |-
+ apiServer holds configuration (like serving certificates, client CA and CORS domains)
+ shared by all API servers in the system, among them especially kube-apiserver
+ and openshift-apiserver.
+ properties:
+ additionalCORSAllowedOrigins:
+ description: |-
+ additionalCORSAllowedOrigins lists additional, user-defined regular expressions describing hosts for which the
+ API server allows access using the CORS headers. This may be needed to access the API and the integrated OAuth
+ server from JavaScript applications.
+ The values are regular expressions that correspond to the Golang regular expression language.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ audit:
+ default:
+ profile: Default
+ description: |-
+ audit specifies the settings for audit configuration to be applied to all OpenShift-provided
+ API servers in the cluster.
+ properties:
+ customRules:
+ description: |-
+ customRules specify profiles per group. These profile take precedence over the
+ top-level profile field if they apply. They are evaluation from top to bottom and
+ the first one that matches, applies.
+ items:
+ description: |-
+ AuditCustomRule describes a custom rule for an audit profile that takes precedence over
+ the top-level profile.
+ properties:
+ group:
+ description: group is a name of group a request
+ user must be member of in order to this profile
+ to apply.
+ minLength: 1
+ type: string
+ profile:
+ description: |-
+ profile specifies the name of the desired audit policy configuration to be deployed to
+ all OpenShift-provided API servers in the cluster.
+
+ The following profiles are provided:
+ - Default: the existing default policy.
+ - WriteRequestBodies: like 'Default', but logs request and response HTTP payloads for
+ write requests (create, update, patch).
+ - AllRequestBodies: like 'WriteRequestBodies', but also logs request and response
+ HTTP payloads for read requests (get, list).
+ - None: no requests are logged at all, not even oauthaccesstokens and oauthauthorizetokens.
+
+ If unset, the 'Default' profile is used as the default.
+ enum:
+ - Default
+ - WriteRequestBodies
+ - AllRequestBodies
+ - None
+ type: string
+ required:
+ - group
+ - profile
+ type: object
+ type: array
+ x-kubernetes-list-map-keys:
+ - group
+ x-kubernetes-list-type: map
+ profile:
+ default: Default
+ description: |-
+ profile specifies the name of the desired top-level audit profile to be applied to all requests
+ sent to any of the OpenShift-provided API servers in the cluster (kube-apiserver,
+ openshift-apiserver and oauth-apiserver), with the exception of those requests that match
+ one or more of the customRules.
+
+ The following profiles are provided:
+ - Default: default policy which means MetaData level logging with the exception of events
+ (not logged at all), oauthaccesstokens and oauthauthorizetokens (both logged at RequestBody
+ level).
+ - WriteRequestBodies: like 'Default', but logs request and response HTTP payloads for
+ write requests (create, update, patch).
+ - AllRequestBodies: like 'WriteRequestBodies', but also logs request and response
+ HTTP payloads for read requests (get, list).
+ - None: no requests are logged at all, not even oauthaccesstokens and oauthauthorizetokens.
+
+ Warning: It is not recommended to disable audit logging by using the `None` profile unless you
+ are fully aware of the risks of not logging data that can be beneficial when troubleshooting issues.
+ If you disable audit logging and a support situation arises, you might need to enable audit logging
+ and reproduce the issue in order to troubleshoot properly.
+
+ If unset, the 'Default' profile is used as the default.
+ enum:
+ - Default
+ - WriteRequestBodies
+ - AllRequestBodies
+ - None
+ type: string
+ type: object
+ clientCA:
+ description: |-
+ clientCA references a ConfigMap containing a certificate bundle for the signers that will be recognized for
+ incoming client certificates in addition to the operator managed signers. If this is empty, then only operator managed signers are valid.
+ You usually only have to set this if you have your own PKI you wish to honor client certificates from.
+ The ConfigMap must exist in the openshift-config namespace and contain the following required fields:
+ - ConfigMap.Data["ca-bundle.crt"] - CA bundle.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ encryption:
+ description: encryption allows the configuration of encryption
+ of resources at the datastore layer.
+ properties:
+ type:
+ description: |-
+ type defines what encryption type should be used to encrypt resources at the datastore layer.
+ When this field is unset (i.e. when it is set to the empty string), identity is implied.
+ The behavior of unset can and will change over time. Even if encryption is enabled by default,
+ the meaning of unset may change to a different encryption type based on changes in best practices.
+
+ When encryption is enabled, all sensitive resources shipped with the platform are encrypted.
+ This list of sensitive resources can and will change over time. The current authoritative list is:
+
+ 1. secrets
+ 2. configmaps
+ 3. routes.route.openshift.io
+ 4. oauthaccesstokens.oauth.openshift.io
+ 5. oauthauthorizetokens.oauth.openshift.io
+ type: string
+ type: object
+ servingCerts:
+ description: |-
+ servingCert is the TLS cert info for serving secure traffic. If not specified, operator managed certificates
+ will be used for serving secure traffic.
+ properties:
+ namedCertificates:
+ description: |-
+ namedCertificates references secrets containing the TLS cert info for serving secure traffic to specific hostnames.
+ If no named certificates are provided, or no named certificates match the server name as understood by a client,
+ the defaultServingCertificate will be used.
+ items:
+ description: APIServerNamedServingCert maps a server
+ DNS name, as understood by a client, to a certificate.
+ properties:
+ names:
+ description: |-
+ names is a optional list of explicit DNS names (leading wildcards allowed) that should use this certificate to
+ serve secure traffic. If no names are provided, the implicit names will be extracted from the certificates.
+ Exact names trump over wildcard names. Explicit names defined here trump over extracted implicit names.
+ items:
+ type: string
+ maxItems: 64
+ type: array
+ x-kubernetes-list-type: atomic
+ servingCertificate:
+ description: |-
+ servingCertificate references a kubernetes.io/tls type secret containing the TLS cert info for serving secure traffic.
+ The secret must exist in the openshift-config namespace and contain the following required fields:
+ - Secret.Data["tls.key"] - TLS private key.
+ - Secret.Data["tls.crt"] - TLS certificate.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ maxItems: 32
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ tlsSecurityProfile:
+ description: |-
+ tlsSecurityProfile specifies settings for TLS connections for externally exposed servers.
+
+ When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
+ The current default is the Intermediate profile.
+ properties:
+ custom:
+ description: |-
+ custom is a user-defined TLS security profile. Be extremely careful using a custom
+ profile as invalid configurations can be catastrophic. An example custom profile
+ looks like this:
+
+ minTLSVersion: VersionTLS11
+ ciphers:
+ - ECDHE-ECDSA-CHACHA20-POLY1305
+ - ECDHE-RSA-CHACHA20-POLY1305
+ - ECDHE-RSA-AES128-GCM-SHA256
+ - ECDHE-ECDSA-AES128-GCM-SHA256
+ nullable: true
+ properties:
+ ciphers:
+ description: |-
+ ciphers is used to specify the cipher algorithms that are negotiated
+ during the TLS handshake. Operators may remove entries their operands
+ do not support. For example, to use DES-CBC3-SHA (yaml):
+
+ ciphers:
+ - DES-CBC3-SHA
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ minTLSVersion:
+ description: |-
+ minTLSVersion is used to specify the minimal version of the TLS protocol
+ that is negotiated during the TLS handshake. For example, to use TLS
+ versions 1.1, 1.2 and 1.3 (yaml):
+
+ minTLSVersion: VersionTLS11
+ enum:
+ - VersionTLS10
+ - VersionTLS11
+ - VersionTLS12
+ - VersionTLS13
+ type: string
+ type: object
+ intermediate:
+ description: |-
+ intermediate is a TLS profile for use when you do not need compatibility with
+ legacy clients and want to remain highly secure while being compatible with
+ most clients currently in use.
+
+ The cipher list includes TLS 1.3 ciphers for forward compatibility, followed
+ by the "intermediate" profile ciphers.
+
+ This profile is equivalent to a Custom profile specified as:
+ minTLSVersion: VersionTLS12
+ ciphers:
+ - TLS_AES_128_GCM_SHA256
+ - TLS_AES_256_GCM_SHA384
+ - TLS_CHACHA20_POLY1305_SHA256
+ - ECDHE-ECDSA-AES128-GCM-SHA256
+ - ECDHE-RSA-AES128-GCM-SHA256
+ - ECDHE-ECDSA-AES256-GCM-SHA384
+ - ECDHE-RSA-AES256-GCM-SHA384
+ - ECDHE-ECDSA-CHACHA20-POLY1305
+ - ECDHE-RSA-CHACHA20-POLY1305
+ - DHE-RSA-AES128-GCM-SHA256
+ - DHE-RSA-AES256-GCM-SHA384
+ nullable: true
+ type: object
+ modern:
+ description: |-
+ modern is a TLS security profile for use with clients that support TLS 1.3 and
+ do not need backward compatibility for older clients.
+
+ This profile is equivalent to a Custom profile specified as:
+ minTLSVersion: VersionTLS13
+ ciphers:
+ - TLS_AES_128_GCM_SHA256
+ - TLS_AES_256_GCM_SHA384
+ - TLS_CHACHA20_POLY1305_SHA256
+ nullable: true
+ type: object
+ old:
+ description: |-
+ old is a TLS profile for use when services need to be accessed by very old
+ clients or libraries and should be used only as a last resort.
+
+ The cipher list includes TLS 1.3 ciphers for forward compatibility, followed
+ by the "old" profile ciphers.
+
+ This profile is equivalent to a Custom profile specified as:
+ minTLSVersion: VersionTLS10
+ ciphers:
+ - TLS_AES_128_GCM_SHA256
+ - TLS_AES_256_GCM_SHA384
+ - TLS_CHACHA20_POLY1305_SHA256
+ - ECDHE-ECDSA-AES128-GCM-SHA256
+ - ECDHE-RSA-AES128-GCM-SHA256
+ - ECDHE-ECDSA-AES256-GCM-SHA384
+ - ECDHE-RSA-AES256-GCM-SHA384
+ - ECDHE-ECDSA-CHACHA20-POLY1305
+ - ECDHE-RSA-CHACHA20-POLY1305
+ - DHE-RSA-AES128-GCM-SHA256
+ - DHE-RSA-AES256-GCM-SHA384
+ - DHE-RSA-CHACHA20-POLY1305
+ - ECDHE-ECDSA-AES128-SHA256
+ - ECDHE-RSA-AES128-SHA256
+ - ECDHE-ECDSA-AES128-SHA
+ - ECDHE-RSA-AES128-SHA
+ - ECDHE-ECDSA-AES256-SHA384
+ - ECDHE-RSA-AES256-SHA384
+ - ECDHE-ECDSA-AES256-SHA
+ - ECDHE-RSA-AES256-SHA
+ - DHE-RSA-AES128-SHA256
+ - DHE-RSA-AES256-SHA256
+ - AES128-GCM-SHA256
+ - AES256-GCM-SHA384
+ - AES128-SHA256
+ - AES256-SHA256
+ - AES128-SHA
+ - AES256-SHA
+ - DES-CBC3-SHA
+ nullable: true
+ type: object
+ type:
+ description: |-
+ type is one of Old, Intermediate, Modern or Custom. Custom provides the
+ ability to specify individual TLS security profile parameters.
+
+ The profiles are currently based on version 5.0 of the Mozilla Server Side TLS
+ configuration guidelines (released 2019-06-28) with TLS 1.3 ciphers added for
+ forward compatibility. See: https://ssl-config.mozilla.org/guidelines/5.0.json
+
+ The profiles are intent based, so they may change over time as new ciphers are
+ developed and existing ciphers are found to be insecure. Depending on
+ precisely which ciphers are available to a process, the list may be reduced.
+ enum:
+ - Old
+ - Intermediate
+ - Modern
+ - Custom
+ type: string
+ type: object
+ type: object
+ authentication:
+ description: |-
+ authentication specifies cluster-wide settings for authentication (like OAuth and
+ webhook token authenticators).
+ properties:
+ oauthMetadata:
+ description: |-
+ oauthMetadata contains the discovery endpoint data for OAuth 2.0
+ Authorization Server Metadata for an external OAuth server.
+ This discovery document can be viewed from its served location:
+ oc get --raw '/.well-known/oauth-authorization-server'
+ For further details, see the IETF Draft:
+ https://tools.ietf.org/html/draft-ietf-oauth-discovery-04#section-2
+ If oauthMetadata.name is non-empty, this value has precedence
+ over any metadata reference stored in status.
+ The key "oauthMetadata" is used to locate the data.
+ If specified and the config map or expected key is not found, no metadata is served.
+ If the specified metadata is not valid, no metadata is served.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ serviceAccountIssuer:
+ description: |-
+ serviceAccountIssuer is the identifier of the bound service account token
+ issuer.
+ The default is https://kubernetes.default.svc
+ WARNING: Updating this field will not result in immediate invalidation of all bound tokens with the
+ previous issuer value. Instead, the tokens issued by previous service account issuer will continue to
+ be trusted for a time period chosen by the platform (currently set to 24h).
+ This time period is subject to change over time.
+ This allows internal components to transition to use new service account issuer without service distruption.
+ type: string
+ type:
+ description: |-
+ type identifies the cluster managed, user facing authentication mode in use.
+ Specifically, it manages the component that responds to login attempts.
+ The default is IntegratedOAuth.
+ type: string
+ webhookTokenAuthenticator:
+ description: |-
+ webhookTokenAuthenticator configures a remote token reviewer.
+ These remote authentication webhooks can be used to verify bearer tokens
+ via the tokenreviews.authentication.k8s.io REST API. This is required to
+ honor bearer tokens that are provisioned by an external authentication service.
+
+ Can only be set if "Type" is set to "None".
+ properties:
+ kubeConfig:
+ description: |-
+ kubeConfig references a secret that contains kube config file data which
+ describes how to access the remote webhook service.
+ The namespace for the referenced secret is openshift-config.
+
+ For further details, see:
+
+ https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication
+
+ The key "kubeConfig" is used to locate the data.
+ If the secret or expected key is not found, the webhook is not honored.
+ If the specified kube config data is not valid, the webhook is not honored.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ required:
+ - kubeConfig
+ type: object
+ webhookTokenAuthenticators:
+ description: webhookTokenAuthenticators is DEPRECATED, setting
+ it has no effect.
+ items:
+ description: |-
+ deprecatedWebhookTokenAuthenticator holds the necessary configuration options for a remote token authenticator.
+ It's the same as WebhookTokenAuthenticator but it's missing the 'required' validation on KubeConfig field.
+ properties:
+ kubeConfig:
+ description: |-
+ kubeConfig contains kube config file data which describes how to access the remote webhook service.
+ For further details, see:
+ https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication
+ The key "kubeConfig" is used to locate the data.
+ If the secret or expected key is not found, the webhook is not honored.
+ If the specified kube config data is not valid, the webhook is not honored.
+ The namespace for this secret is determined by the point of use.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ featureGate:
+ description: featureGate holds cluster-wide information about
+ feature gates.
+ properties:
+ customNoUpgrade:
+ description: |-
+ customNoUpgrade allows the enabling or disabling of any feature. Turning this feature set on IS NOT SUPPORTED, CANNOT BE UNDONE, and PREVENTS UPGRADES.
+ Because of its nature, this setting cannot be validated. If you have any typos or accidentally apply invalid combinations
+ your cluster may fail in an unrecoverable way. featureSet must equal "CustomNoUpgrade" must be set to use this field.
+ nullable: true
+ properties:
+ disabled:
+ description: disabled is a list of all feature gates that
+ you want to force off
+ items:
+ description: FeatureGateName is a string to enforce
+ patterns on the name of a FeatureGate
+ pattern: ^([A-Za-z0-9-]+\.)*[A-Za-z0-9-]+\.?$
+ type: string
+ type: array
+ enabled:
+ description: enabled is a list of all feature gates that
+ you want to force on
+ items:
+ description: FeatureGateName is a string to enforce
+ patterns on the name of a FeatureGate
+ pattern: ^([A-Za-z0-9-]+\.)*[A-Za-z0-9-]+\.?$
+ type: string
+ type: array
+ type: object
+ featureSet:
+ description: |-
+ featureSet changes the list of features in the cluster. The default is empty. Be very careful adjusting this setting.
+ Turning on or off features may cause irreversible changes in your cluster which cannot be undone.
+ enum:
+ - CustomNoUpgrade
+ - DevPreviewNoUpgrade
+ - TechPreviewNoUpgrade
+ - OKD
+ - ""
+ type: string
+ x-kubernetes-validations:
+ - message: CustomNoUpgrade may not be changed
+ rule: 'oldSelf == ''CustomNoUpgrade'' ? self == ''CustomNoUpgrade''
+ : true'
+ - message: TechPreviewNoUpgrade may not be changed
+ rule: 'oldSelf == ''TechPreviewNoUpgrade'' ? self == ''TechPreviewNoUpgrade''
+ : true'
+ - message: DevPreviewNoUpgrade may not be changed
+ rule: 'oldSelf == ''DevPreviewNoUpgrade'' ? self == ''DevPreviewNoUpgrade''
+ : true'
+ - message: OKD cannot transition to Default
+ rule: 'oldSelf == ''OKD'' ? self != '''' : true'
+ type: object
+ image:
+ description: |-
+ image governs policies related to imagestream imports and runtime configuration
+ for external registries. It allows cluster admins to configure which registries
+ OpenShift is allowed to import images from, extra CA trust bundles for external
+ registries, and policies to block or allow registry hostnames.
+ When exposing OpenShift's image registry to the public, this also lets cluster
+ admins specify the external hostname.
+ This input will be part of every payload generated by the controllers for any NodePool of the HostedCluster.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ properties:
+ additionalTrustedCA:
+ description: |-
+ additionalTrustedCA is a reference to a ConfigMap containing additional CAs that
+ should be trusted during imagestream import, pod image pull, build image pull, and
+ imageregistry pullthrough.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ allowedRegistriesForImport:
+ description: |-
+ allowedRegistriesForImport limits the container image registries that normal users may import
+ images from. Set this list to the registries that you trust to contain valid Docker
+ images and that you want applications to be able to import from. Users with
+ permission to create Images or ImageStreamMappings via the API are not affected by
+ this policy - typically only administrators or system integrations will have those
+ permissions.
+ items:
+ description: |-
+ RegistryLocation contains a location of the registry specified by the registry domain
+ name. The domain name might include wildcards, like '*' or '??'.
+ properties:
+ domainName:
+ description: |-
+ domainName specifies a domain name for the registry
+ In case the registry use non-standard (80 or 443) port, the port should be included
+ in the domain name as well.
+ type: string
+ insecure:
+ description: |-
+ insecure indicates whether the registry is secure (https) or insecure (http)
+ By default (if not specified) the registry is assumed as secure.
+ type: boolean
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ externalRegistryHostnames:
+ description: |-
+ externalRegistryHostnames provides the hostnames for the default external image
+ registry. The external hostname should be set only when the image registry
+ is exposed externally. The first value is used in 'publicDockerImageRepository'
+ field in ImageStreams. The value must be in "hostname[:port]" format.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ registrySources:
+ description: |-
+ registrySources contains configuration that determines how the container runtime
+ should treat individual registries when accessing images for builds+pods. (e.g.
+ whether or not to allow insecure access). It does not contain configuration for the
+ internal cluster registry.
+ properties:
+ allowedRegistries:
+ description: |-
+ allowedRegistries are the only registries permitted for image pull and push actions. All other registries are denied.
+
+ Only one of BlockedRegistries or AllowedRegistries may be set.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ blockedRegistries:
+ description: |-
+ blockedRegistries cannot be used for image pull and push actions. All other registries are permitted.
+
+ Only one of BlockedRegistries or AllowedRegistries may be set.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ containerRuntimeSearchRegistries:
+ description: |-
+ containerRuntimeSearchRegistries are registries that will be searched when pulling images that do not have fully qualified
+ domains in their pull specs. Registries will be searched in the order provided in the list.
+ Note: this search list only works with the container runtime, i.e CRI-O. Will NOT work with builds or imagestream imports.
+ format: hostname
+ items:
+ type: string
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: set
+ insecureRegistries:
+ description: insecureRegistries are registries which do
+ not have a valid TLS certificates or only support HTTP
+ connections.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ x-kubernetes-validations:
+ - message: Only one of blockedRegistries or allowedRegistries
+ may be set
+ rule: 'has(self.blockedRegistries) ? !has(self.allowedRegistries)
+ : true'
+ type: object
+ ingress:
+ description: |-
+ ingress holds cluster-wide information about ingress, including the default ingress domain
+ used for routes.
+ properties:
+ appsDomain:
+ description: |-
+ appsDomain is an optional domain to use instead of the one specified
+ in the domain field when a Route is created without specifying an explicit
+ host. If appsDomain is nonempty, this value is used to generate default
+ host values for Route. Unlike domain, appsDomain may be modified after
+ installation.
+ This assumes a new ingresscontroller has been setup with a wildcard
+ certificate.
+ type: string
+ componentRoutes:
+ description: |-
+ componentRoutes is an optional list of routes that are managed by OpenShift components
+ that a cluster-admin is able to configure the hostname and serving certificate for.
+ The namespace and name of each route in this list should match an existing entry in the
+ status.componentRoutes list.
+
+ To determine the set of configurable Routes, look at namespace and name of entries in the
+ .status.componentRoutes list, where participating operators write the status of
+ configurable routes.
+ items:
+ description: ComponentRouteSpec allows for configuration
+ of a route's hostname and serving certificate.
+ properties:
+ hostname:
+ description: hostname is the hostname that should be
+ used by the route.
+ pattern: ^([a-zA-Z0-9\p{S}\p{L}]((-?[a-zA-Z0-9\p{S}\p{L}]{0,62})?)|([a-zA-Z0-9\p{S}\p{L}](([a-zA-Z0-9-\p{S}\p{L}]{0,61}[a-zA-Z0-9\p{S}\p{L}])?)(\.)){1,}([a-zA-Z\p{L}]){2,63})$|^(([a-z0-9][-a-z0-9]{0,61}[a-z0-9]|[a-z0-9]{1,63})[\.]){0,}([a-z0-9][-a-z0-9]{0,61}[a-z0-9]|[a-z0-9]{1,63})$
+ type: string
+ name:
+ description: |-
+ name is the logical name of the route to customize.
+
+ The namespace and name of this componentRoute must match a corresponding
+ entry in the list of status.componentRoutes if the route is to be customized.
+ maxLength: 256
+ minLength: 1
+ type: string
+ namespace:
+ description: |-
+ namespace is the namespace of the route to customize.
+
+ The namespace and name of this componentRoute must match a corresponding
+ entry in the list of status.componentRoutes if the route is to be customized.
+ maxLength: 63
+ minLength: 1
+ pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
+ type: string
+ servingCertKeyPairSecret:
+ description: |-
+ servingCertKeyPairSecret is a reference to a secret of type `kubernetes.io/tls` in the openshift-config namespace.
+ The serving cert/key pair must match and will be used by the operator to fulfill the intent of serving with this name.
+ If the custom hostname uses the default routing suffix of the cluster,
+ the Secret specification for a serving certificate will not be needed.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ required:
+ - hostname
+ - name
+ - namespace
+ type: object
+ type: array
+ x-kubernetes-list-map-keys:
+ - namespace
+ - name
+ x-kubernetes-list-type: map
+ domain:
+ description: |-
+ domain is used to generate a default host name for a route when the
+ route's host name is empty. The generated host name will follow this
+ pattern: "..".
+
+ It is also used as the default wildcard domain suffix for ingress. The
+ default ingresscontroller domain will follow this pattern: "*.".
+
+ Once set, changing domain is not currently supported.
+ type: string
+ loadBalancer:
+ description: |-
+ loadBalancer contains the load balancer details in general which are not only specific to the underlying infrastructure
+ provider of the current cluster and are required for Ingress Controller to work on OpenShift.
+ properties:
+ platform:
+ description: |-
+ platform holds configuration specific to the underlying
+ infrastructure provider for the ingress load balancers.
+ When omitted, this means the user has no opinion and the platform is left
+ to choose reasonable defaults. These defaults are subject to change over time.
+ properties:
+ aws:
+ description: aws contains settings specific to the
+ Amazon Web Services infrastructure provider.
+ properties:
+ type:
+ description: |-
+ type allows user to set a load balancer type.
+ When this field is set the default ingresscontroller will get created using the specified LBType.
+ If this field is not set then the default ingress controller of LBType Classic will be created.
+ Valid values are:
+
+ * "Classic": A Classic Load Balancer that makes routing decisions at either
+ the transport layer (TCP/SSL) or the application layer (HTTP/HTTPS). See
+ the following for additional details:
+
+ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#clb
+
+ * "NLB": A Network Load Balancer that makes routing decisions at the
+ transport layer (TCP/SSL). See the following for additional details:
+
+ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#nlb
+ enum:
+ - NLB
+ - Classic
+ type: string
+ required:
+ - type
+ type: object
+ type:
+ description: |-
+ type is the underlying infrastructure provider for the cluster.
+ Allowed values are "AWS", "Azure", "BareMetal", "GCP", "Libvirt",
+ "OpenStack", "VSphere", "oVirt", "KubeVirt", "EquinixMetal", "PowerVS",
+ "AlibabaCloud", "Nutanix" and "None". Individual components may not support all platforms,
+ and must handle unrecognized platforms as None if they do not support that platform.
+ enum:
+ - ""
+ - AWS
+ - Azure
+ - BareMetal
+ - GCP
+ - Libvirt
+ - OpenStack
+ - None
+ - VSphere
+ - oVirt
+ - IBMCloud
+ - KubeVirt
+ - EquinixMetal
+ - PowerVS
+ - AlibabaCloud
+ - Nutanix
+ - External
+ type: string
+ type: object
+ type: object
+ requiredHSTSPolicies:
+ description: |-
+ requiredHSTSPolicies specifies HSTS policies that are required to be set on newly created or updated routes
+ matching the domainPattern/s and namespaceSelector/s that are specified in the policy.
+ Each requiredHSTSPolicy must have at least a domainPattern and a maxAge to validate a route HSTS Policy route
+ annotation, and affect route admission.
+
+ A candidate route is checked for HSTS Policies if it has the HSTS Policy route annotation:
+ "haproxy.router.openshift.io/hsts_header"
+ E.g. haproxy.router.openshift.io/hsts_header: max-age=31536000;preload;includeSubDomains
+
+ - For each candidate route, if it matches a requiredHSTSPolicy domainPattern and optional namespaceSelector,
+ then the maxAge, preloadPolicy, and includeSubdomainsPolicy must be valid to be admitted. Otherwise, the route
+ is rejected.
+ - The first match, by domainPattern and optional namespaceSelector, in the ordering of the RequiredHSTSPolicies
+ determines the route's admission status.
+ - If the candidate route doesn't match any requiredHSTSPolicy domainPattern and optional namespaceSelector,
+ then it may use any HSTS Policy annotation.
+
+ The HSTS policy configuration may be changed after routes have already been created. An update to a previously
+ admitted route may then fail if the updated route does not conform to the updated HSTS policy configuration.
+ However, changing the HSTS policy configuration will not cause a route that is already admitted to stop working.
+
+ Note that if there are no RequiredHSTSPolicies, any HSTS Policy annotation on the route is valid.
+ items:
+ properties:
+ domainPatterns:
+ description: |-
+ domainPatterns is a list of domains for which the desired HSTS annotations are required.
+ If domainPatterns is specified and a route is created with a spec.host matching one of the domains,
+ the route must specify the HSTS Policy components described in the matching RequiredHSTSPolicy.
+
+ The use of wildcards is allowed like this: *.foo.com matches everything under foo.com.
+ foo.com only matches foo.com, so to cover foo.com and everything under it, you must specify *both*.
+ items:
+ type: string
+ minItems: 1
+ type: array
+ includeSubDomainsPolicy:
+ description: |-
+ includeSubDomainsPolicy means the HSTS Policy should apply to any subdomains of the host's
+ domain name. Thus, for the host bar.foo.com, if includeSubDomainsPolicy was set to RequireIncludeSubDomains:
+ - the host app.bar.foo.com would inherit the HSTS Policy of bar.foo.com
+ - the host bar.foo.com would inherit the HSTS Policy of bar.foo.com
+ - the host foo.com would NOT inherit the HSTS Policy of bar.foo.com
+ - the host def.foo.com would NOT inherit the HSTS Policy of bar.foo.com
+ enum:
+ - RequireIncludeSubDomains
+ - RequireNoIncludeSubDomains
+ - NoOpinion
+ type: string
+ maxAge:
+ description: |-
+ maxAge is the delta time range in seconds during which hosts are regarded as HSTS hosts.
+ If set to 0, it negates the effect, and hosts are removed as HSTS hosts.
+ If set to 0 and includeSubdomains is specified, all subdomains of the host are also removed as HSTS hosts.
+ maxAge is a time-to-live value, and if this policy is not refreshed on a client, the HSTS
+ policy will eventually expire on that client.
+ properties:
+ largestMaxAge:
+ description: |-
+ The largest allowed value (in seconds) of the RequiredHSTSPolicy max-age
+ This value can be left unspecified, in which case no upper limit is enforced.
+ format: int32
+ maximum: 2147483647
+ minimum: 0
+ type: integer
+ smallestMaxAge:
+ description: |-
+ The smallest allowed value (in seconds) of the RequiredHSTSPolicy max-age
+ Setting max-age=0 allows the deletion of an existing HSTS header from a host. This is a necessary
+ tool for administrators to quickly correct mistakes.
+ This value can be left unspecified, in which case no lower limit is enforced.
+ format: int32
+ maximum: 2147483647
+ minimum: 0
+ type: integer
+ type: object
+ namespaceSelector:
+ description: |-
+ namespaceSelector specifies a label selector such that the policy applies only to those routes that
+ are in namespaces with labels that match the selector, and are in one of the DomainPatterns.
+ Defaults to the empty LabelSelector, which matches 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
+ x-kubernetes-list-type: atomic
+ required:
+ - key
+ - operator
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ 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
+ preloadPolicy:
+ description: |-
+ preloadPolicy directs the client to include hosts in its host preload list so that
+ it never needs to do an initial load to get the HSTS header (note that this is not defined
+ in RFC 6797 and is therefore client implementation-dependent).
+ enum:
+ - RequirePreload
+ - RequireNoPreload
+ - NoOpinion
+ type: string
+ required:
+ - domainPatterns
+ type: object
+ type: array
+ type: object
+ network:
+ description: |-
+ network holds cluster-wide information about the network. It is used to configure the desired network configuration, such as: IP address pools for services/pod IPs, network plugin, etc.
+ Please view network.spec for an explanation on what applies when configuring this resource.
+ properties:
+ clusterNetwork:
+ description: |-
+ IP address pool to use for pod IPs.
+ This field is immutable after installation.
+ items:
+ description: |-
+ ClusterNetworkEntry is a contiguous block of IP addresses from which pod IPs
+ are allocated.
+ properties:
+ cidr:
+ description: The complete block for pod IPs.
+ type: string
+ hostPrefix:
+ description: |-
+ The size (prefix) of block to allocate to each node. If this
+ field is not used by the plugin, it can be left unset.
+ format: int32
+ minimum: 0
+ type: integer
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ externalIP:
+ description: |-
+ externalIP defines configuration for controllers that
+ affect Service.ExternalIP. If nil, then ExternalIP is
+ not allowed to be set.
+ properties:
+ autoAssignCIDRs:
+ description: |-
+ autoAssignCIDRs is a list of CIDRs from which to automatically assign
+ Service.ExternalIP. These are assigned when the service is of type
+ LoadBalancer. In general, this is only useful for bare-metal clusters.
+ In Openshift 3.x, this was misleadingly called "IngressIPs".
+ Automatically assigned External IPs are not affected by any
+ ExternalIPPolicy rules.
+ Currently, only one entry may be provided.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ policy:
+ description: |-
+ policy is a set of restrictions applied to the ExternalIP field.
+ If nil or empty, then ExternalIP is not allowed to be set.
+ properties:
+ allowedCIDRs:
+ description: allowedCIDRs is the list of allowed CIDRs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ rejectedCIDRs:
+ description: |-
+ rejectedCIDRs is the list of disallowed CIDRs. These take precedence
+ over allowedCIDRs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ type: object
+ networkType:
+ description: |-
+ networkType is the plugin that is to be deployed (e.g. OVNKubernetes).
+ This should match a value that the cluster-network-operator understands,
+ or else no networking will be installed.
+ Currently supported values are:
+ - OVNKubernetes
+ This field is immutable after installation.
+ type: string
+ serviceNetwork:
+ description: |-
+ IP address pool for services.
+ Currently, we only support a single entry here.
+ This field is immutable after installation.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ serviceNodePortRange:
+ description: |-
+ The port range allowed for Services of type NodePort.
+ If not specified, the default of 30000-32767 will be used.
+ Such Services without a NodePort specified will have one
+ automatically allocated from this range.
+ This parameter can be updated after the cluster is
+ installed.
+ pattern: ^([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])-([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$
+ type: string
+ type: object
+ oauth:
+ description: |-
+ oauth holds cluster-wide information about OAuth.
+ It is used to configure the integrated OAuth server.
+ This configuration is only honored when the top level Authentication config has type set to IntegratedOAuth.
+ properties:
+ identityProviders:
+ description: |-
+ identityProviders is an ordered list of ways for a user to identify themselves.
+ When this list is empty, no identities are provisioned for users.
+ items:
+ description: IdentityProvider provides identities for users
+ authenticating using credentials
+ properties:
+ basicAuth:
+ description: basicAuth contains configuration options
+ for the BasicAuth IdP
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ tlsClientCert:
+ description: |-
+ tlsClientCert is an optional reference to a secret by name that contains the
+ PEM-encoded TLS client certificate to present when connecting to the server.
+ The key "tls.crt" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ If the specified certificate data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ tlsClientKey:
+ description: |-
+ tlsClientKey is an optional reference to a secret by name that contains the
+ PEM-encoded TLS private key for the client certificate referenced in tlsClientCert.
+ The key "tls.key" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ If the specified certificate data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ url:
+ description: url is the remote URL to connect to
+ type: string
+ type: object
+ github:
+ description: github enables user authentication using
+ GitHub credentials
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ This can only be configured when hostname is set to a non-empty value.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ clientID:
+ description: clientID is the oauth client ID
+ type: string
+ clientSecret:
+ description: |-
+ clientSecret is a required reference to the secret by name containing the oauth client secret.
+ The key "clientSecret" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ hostname:
+ description: |-
+ hostname is the optional domain (e.g. "mycompany.com") for use with a hosted instance of
+ GitHub Enterprise.
+ It must match the GitHub Enterprise settings value configured at /setup/settings#hostname.
+ type: string
+ organizations:
+ description: organizations optionally restricts
+ which organizations are allowed to log in
+ items:
+ type: string
+ type: array
+ teams:
+ description: teams optionally restricts which teams
+ are allowed to log in. Format is /.
+ items:
+ type: string
+ type: array
+ type: object
+ gitlab:
+ description: gitlab enables user authentication using
+ GitLab credentials
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ clientID:
+ description: clientID is the oauth client ID
+ type: string
+ clientSecret:
+ description: |-
+ clientSecret is a required reference to the secret by name containing the oauth client secret.
+ The key "clientSecret" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ url:
+ description: url is the oauth server base URL
+ type: string
+ type: object
+ google:
+ description: google enables user authentication using
+ Google credentials
+ properties:
+ clientID:
+ description: clientID is the oauth client ID
+ type: string
+ clientSecret:
+ description: |-
+ clientSecret is a required reference to the secret by name containing the oauth client secret.
+ The key "clientSecret" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ hostedDomain:
+ description: hostedDomain is the optional Google
+ App domain (e.g. "mycompany.com") to restrict
+ logins to
+ type: string
+ type: object
+ htpasswd:
+ description: htpasswd enables user authentication using
+ an HTPasswd file to validate credentials
+ properties:
+ fileData:
+ description: |-
+ fileData is a required reference to a secret by name containing the data to use as the htpasswd file.
+ The key "htpasswd" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ If the specified htpasswd data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ keystone:
+ description: keystone enables user authentication using
+ keystone password credentials
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ domainName:
+ description: domainName is required for keystone
+ v3
+ type: string
+ tlsClientCert:
+ description: |-
+ tlsClientCert is an optional reference to a secret by name that contains the
+ PEM-encoded TLS client certificate to present when connecting to the server.
+ The key "tls.crt" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ If the specified certificate data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ tlsClientKey:
+ description: |-
+ tlsClientKey is an optional reference to a secret by name that contains the
+ PEM-encoded TLS private key for the client certificate referenced in tlsClientCert.
+ The key "tls.key" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ If the specified certificate data is not valid, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ url:
+ description: url is the remote URL to connect to
+ type: string
+ type: object
+ ldap:
+ description: ldap enables user authentication using
+ LDAP credentials
+ properties:
+ attributes:
+ description: attributes maps LDAP attributes to
+ identities
+ properties:
+ email:
+ description: |-
+ email is the list of attributes whose values should be used as the email address. Optional.
+ If unspecified, no email is set for the identity
+ items:
+ type: string
+ type: array
+ id:
+ description: |-
+ id is the list of attributes whose values should be used as the user ID. Required.
+ First non-empty attribute is used. At least one attribute is required. If none of the listed
+ attribute have a value, authentication fails.
+ LDAP standard identity attribute is "dn"
+ items:
+ type: string
+ type: array
+ name:
+ description: |-
+ name is the list of attributes whose values should be used as the display name. Optional.
+ If unspecified, no display name is set for the identity
+ LDAP standard display name attribute is "cn"
+ items:
+ type: string
+ type: array
+ preferredUsername:
+ description: |-
+ preferredUsername is the list of attributes whose values should be used as the preferred username.
+ LDAP standard login attribute is "uid"
+ items:
+ type: string
+ type: array
+ type: object
+ bindDN:
+ description: bindDN is an optional DN to bind with
+ during the search phase.
+ type: string
+ bindPassword:
+ description: |-
+ bindPassword is an optional reference to a secret by name
+ containing a password to bind with during the search phase.
+ The key "bindPassword" is used to locate the data.
+ If specified and the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ insecure:
+ description: |-
+ insecure, if true, indicates the connection should not use TLS
+ WARNING: Should not be set to `true` with the URL scheme "ldaps://" as "ldaps://" URLs always
+ attempt to connect using TLS, even when `insecure` is set to `true`
+ When `true`, "ldap://" URLS connect insecurely. When `false`, "ldap://" URLs are upgraded to
+ a TLS connection using StartTLS as specified in https://tools.ietf.org/html/rfc2830.
+ type: boolean
+ url:
+ description: |-
+ url is an RFC 2255 URL which specifies the LDAP search parameters to use.
+ The syntax of the URL is:
+ ldap://host:port/basedn?attribute?scope?filter
+ type: string
+ type: object
+ mappingMethod:
+ description: |-
+ mappingMethod determines how identities from this provider are mapped to users
+ Defaults to "claim"
+ type: string
+ name:
+ description: |-
+ name is used to qualify the identities returned by this provider.
+ - It MUST be unique and not shared by any other identity provider used
+ - It MUST be a valid path segment: name cannot equal "." or ".." or contain "/" or "%" or ":"
+ Ref: https://godoc.org/github.com/openshift/origin/pkg/user/apis/user/validation#ValidateIdentityProviderName
+ type: string
+ openID:
+ description: openID enables user authentication using
+ OpenID credentials
+ properties:
+ ca:
+ description: |-
+ ca is an optional reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ The key "ca.crt" is used to locate the data.
+ If specified and the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ If empty, the default system roots are used.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ claims:
+ description: claims mappings
+ properties:
+ email:
+ description: |-
+ email is the list of claims whose values should be used as the email address. Optional.
+ If unspecified, no email is set for the identity
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ groups:
+ description: |-
+ groups is the list of claims value of which should be used to synchronize groups
+ from the OIDC provider to OpenShift for the user.
+ If multiple claims are specified, the first one with a non-empty value is used.
+ items:
+ description: |-
+ OpenIDClaim represents a claim retrieved from an OpenID provider's tokens or userInfo
+ responses
+ minLength: 1
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ name:
+ description: |-
+ name is the list of claims whose values should be used as the display name. Optional.
+ If unspecified, no display name is set for the identity
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ preferredUsername:
+ description: |-
+ preferredUsername is the list of claims whose values should be used as the preferred username.
+ If unspecified, the preferred username is determined from the value of the sub claim
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ clientID:
+ description: clientID is the oauth client ID
+ type: string
+ clientSecret:
+ description: |-
+ clientSecret is a required reference to the secret by name containing the oauth client secret.
+ The key "clientSecret" is used to locate the data.
+ If the secret or expected key is not found, the identity provider is not honored.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced secret
+ type: string
+ required:
+ - name
+ type: object
+ extraAuthorizeParameters:
+ additionalProperties:
+ type: string
+ description: extraAuthorizeParameters are any custom
+ parameters to add to the authorize request.
+ type: object
+ extraScopes:
+ description: extraScopes are any scopes to request
+ in addition to the standard "openid" scope.
+ items:
+ type: string
+ type: array
+ issuer:
+ description: |-
+ issuer is the URL that the OpenID Provider asserts as its Issuer Identifier.
+ It must use the https scheme with no query or fragment component.
+ type: string
+ type: object
+ requestHeader:
+ description: requestHeader enables user authentication
+ using request header credentials
+ properties:
+ ca:
+ description: |-
+ ca is a required reference to a config map by name containing the PEM-encoded CA bundle.
+ It is used as a trust anchor to validate the TLS certificate presented by the remote server.
+ Specifically, it allows verification of incoming requests to prevent header spoofing.
+ The key "ca.crt" is used to locate the data.
+ If the config map or expected key is not found, the identity provider is not honored.
+ If the specified ca data is not valid, the identity provider is not honored.
+ The namespace for this config map is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the
+ referenced config map
+ type: string
+ required:
+ - name
+ type: object
+ challengeURL:
+ description: |-
+ challengeURL is a URL to redirect unauthenticated /authorize requests to
+ Unauthenticated requests from OAuth clients which expect WWW-Authenticate challenges will be
+ redirected here.
+ ${url} is replaced with the current URL, escaped to be safe in a query parameter
+ https://www.example.com/sso-login?then=${url}
+ ${query} is replaced with the current query string
+ https://www.example.com/auth-proxy/oauth/authorize?${query}
+ Required when challenge is set to true.
+ type: string
+ clientCommonNames:
+ description: |-
+ clientCommonNames is an optional list of common names to require a match from. If empty, any
+ client certificate validated against the clientCA bundle is considered authoritative.
+ items:
+ type: string
+ type: array
+ emailHeaders:
+ description: emailHeaders is the set of headers
+ to check for the email address
+ items:
+ type: string
+ type: array
+ headers:
+ description: headers is the set of headers to check
+ for identity information
+ items:
+ type: string
+ type: array
+ loginURL:
+ description: |-
+ loginURL is a URL to redirect unauthenticated /authorize requests to
+ Unauthenticated requests from OAuth clients which expect interactive logins will be redirected here
+ ${url} is replaced with the current URL, escaped to be safe in a query parameter
+ https://www.example.com/sso-login?then=${url}
+ ${query} is replaced with the current query string
+ https://www.example.com/auth-proxy/oauth/authorize?${query}
+ Required when login is set to true.
+ type: string
+ nameHeaders:
+ description: nameHeaders is the set of headers to
+ check for the display name
+ items:
+ type: string
+ type: array
+ preferredUsernameHeaders:
+ description: preferredUsernameHeaders is the set
+ of headers to check for the preferred username
+ items:
+ type: string
+ type: array
+ type: object
+ type:
+ description: type identifies the identity provider type
+ for this entry.
+ type: string
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ templates:
+ description: templates allow you to customize pages like the
+ login page.
+ properties:
+ error:
+ description: |-
+ error is the name of a secret that specifies a go template to use to render error pages
+ during the authentication or grant flow.
+ The key "errors.html" is used to locate the template data.
+ If specified and the secret or expected key is not found, the default error page is used.
+ If the specified template is not valid, the default error page is used.
+ If unspecified, the default error page is used.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ login:
+ description: |-
+ login is the name of a secret that specifies a go template to use to render the login page.
+ The key "login.html" is used to locate the template data.
+ If specified and the secret or expected key is not found, the default login page is used.
+ If the specified template is not valid, the default login page is used.
+ If unspecified, the default login page is used.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ providerSelection:
+ description: |-
+ providerSelection is the name of a secret that specifies a go template to use to render
+ the provider selection page.
+ The key "providers.html" is used to locate the template data.
+ If specified and the secret or expected key is not found, the default provider selection page is used.
+ If the specified template is not valid, the default provider selection page is used.
+ If unspecified, the default provider selection page is used.
+ The namespace for this secret is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ secret
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ tokenConfig:
+ description: tokenConfig contains options for authorization
+ and access tokens
+ properties:
+ accessTokenInactivityTimeout:
+ description: |-
+ accessTokenInactivityTimeout defines the token inactivity timeout
+ for tokens granted by any client.
+ The value represents the maximum amount of time that can occur between
+ consecutive uses of the token. Tokens become invalid if they are not
+ used within this temporal window. The user will need to acquire a new
+ token to regain access once a token times out. Takes valid time
+ duration string such as "5m", "1.5h" or "2h45m". The minimum allowed
+ value for duration is 300s (5 minutes). If the timeout is configured
+ per client, then that value takes precedence. If the timeout value is
+ not specified and the client does not override the value, then tokens
+ are valid until their lifetime.
+
+ WARNING: existing tokens' timeout will not be affected (lowered) by changing this value
+ type: string
+ accessTokenInactivityTimeoutSeconds:
+ description: 'accessTokenInactivityTimeoutSeconds - DEPRECATED:
+ setting this field has no effect.'
+ format: int32
+ type: integer
+ accessTokenMaxAgeSeconds:
+ description: accessTokenMaxAgeSeconds defines the maximum
+ age of access tokens
+ format: int32
+ type: integer
+ type: object
+ type: object
+ x-kubernetes-validations:
+ - message: spec.configuration.oauth.tokenConfig.accessTokenInactivityTimeout
+ minimum acceptable token timeout value is 300 seconds
+ rule: '!has(self.tokenConfig) || !has(self.tokenConfig.accessTokenInactivityTimeout)
+ || duration(self.tokenConfig.accessTokenInactivityTimeout).getSeconds()
+ >= 300'
+ operatorhub:
+ description: |-
+ operatorhub specifies the configuration for the Operator Lifecycle Manager in the HostedCluster. This is only configured at deployment time but the controller are not reconcilling over it.
+ The OperatorHub configuration will be constantly reconciled if catalog placement is management, but only on cluster creation otherwise.
+ properties:
+ disableAllDefaultSources:
+ description: |-
+ disableAllDefaultSources allows you to disable all the default hub
+ sources. If this is true, a specific entry in sources can be used to
+ enable a default source. If this is false, a specific entry in
+ sources can be used to disable or enable a default source.
+ type: boolean
+ sources:
+ description: |-
+ sources is the list of default hub sources and their configuration.
+ If the list is empty, it implies that the default hub sources are
+ enabled on the cluster unless disableAllDefaultSources is true.
+ If disableAllDefaultSources is true and sources is not empty,
+ the configuration present in sources will take precedence. The list of
+ default hub sources and their current state will always be reflected in
+ the status block.
+ items:
+ description: HubSource is used to specify the hub source
+ and its configuration
+ properties:
+ disabled:
+ description: disabled is used to disable a default hub
+ source on cluster
+ type: boolean
+ name:
+ description: name is the name of one of the default
+ hub sources
+ maxLength: 253
+ minLength: 1
+ type: string
+ type: object
+ type: array
+ type: object
+ proxy:
+ description: |-
+ proxy holds cluster-wide information on how to configure default proxies for the cluster.
+ This affects traffic flowing from the hosted cluster data plane.
+ The controllers will generate a machineConfig with the proxy config for the cluster.
+ This MachineConfig will be part of every payload generated by the controllers for any NodePool of the HostedCluster.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ properties:
+ httpProxy:
+ description: httpProxy is the URL of the proxy for HTTP requests. Empty
+ means unset and will not result in an env var.
+ type: string
+ httpsProxy:
+ description: httpsProxy is the URL of the proxy for HTTPS
+ requests. Empty means unset and will not result in an env
+ var.
+ type: string
+ noProxy:
+ description: |-
+ noProxy is a comma-separated list of hostnames and/or CIDRs and/or IPs for which the proxy should not be used.
+ Empty means unset and will not result in an env var.
+ type: string
+ readinessEndpoints:
+ description: readinessEndpoints is a list of endpoints used
+ to verify readiness of the proxy.
+ items:
+ type: string
+ type: array
+ trustedCA:
+ description: |-
+ trustedCA is a reference to a ConfigMap containing a CA certificate bundle.
+ The trustedCA field should only be consumed by a proxy validator. The
+ validator is responsible for reading the certificate bundle from the required
+ key "ca-bundle.crt", merging it with the system default trust bundle,
+ and writing the merged trust bundle to a ConfigMap named "trusted-ca-bundle"
+ in the "openshift-config-managed" namespace. Clients that expect to make
+ proxy connections must use the trusted-ca-bundle for all HTTPS requests to
+ the proxy, and may use the trusted-ca-bundle for non-proxy HTTPS requests as
+ well.
+
+ The namespace for the ConfigMap referenced by trustedCA is
+ "openshift-config". Here is an example ConfigMap (in yaml):
+
+ apiVersion: v1
+ kind: ConfigMap
+ metadata:
+ name: user-ca-bundle
+ namespace: openshift-config
+ data:
+ ca-bundle.crt: |
+ -----BEGIN CERTIFICATE-----
+ Custom CA certificate bundle.
+ -----END CERTIFICATE-----
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ scheduler:
+ description: |-
+ scheduler holds cluster-wide config information to run the Kubernetes Scheduler
+ and influence its placement decisions. The canonical name for this config is `cluster`.
+ properties:
+ defaultNodeSelector:
+ description: |-
+ defaultNodeSelector helps set the cluster-wide default node selector to
+ restrict pod placement to specific nodes. This is applied to the pods
+ created in all namespaces and creates an intersection with any existing
+ nodeSelectors already set on a pod, additionally constraining that pod's selector.
+ For example,
+ defaultNodeSelector: "type=user-node,region=east" would set nodeSelector
+ field in pod spec to "type=user-node,region=east" to all pods created
+ in all namespaces. Namespaces having project-wide node selectors won't be
+ impacted even if this field is set. This adds an annotation section to
+ the namespace.
+ For example, if a new namespace is created with
+ node-selector='type=user-node,region=east',
+ the annotation openshift.io/node-selector: type=user-node,region=east
+ gets added to the project. When the openshift.io/node-selector annotation
+ is set on the project the value is used in preference to the value we are setting
+ for defaultNodeSelector field.
+ For instance,
+ openshift.io/node-selector: "type=user-node,region=west" means
+ that the default of "type=user-node,region=east" set in defaultNodeSelector
+ would not be applied.
+ type: string
+ mastersSchedulable:
+ description: |-
+ mastersSchedulable allows masters nodes to be schedulable. When this flag is
+ turned on, all the master nodes in the cluster will be made schedulable,
+ so that workload pods can run on them. The default value for this field is false,
+ meaning none of the master nodes are schedulable.
+ Important Note: Once the workload pods start running on the master nodes,
+ extreme care must be taken to ensure that cluster-critical control plane components
+ are not impacted.
+ Please turn on this field after doing due diligence.
+ type: boolean
+ policy:
+ description: |-
+ DEPRECATED: the scheduler Policy API has been deprecated and will be removed in a future release.
+ policy is a reference to a ConfigMap containing scheduler policy which has
+ user specified predicates and priorities. If this ConfigMap is not available
+ scheduler will default to use DefaultAlgorithmProvider.
+ The namespace for this configmap is openshift-config.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ profile:
+ description: |-
+ profile sets which scheduling profile should be set in order to configure scheduling
+ decisions for new pods.
+
+ Valid values are "LowNodeUtilization", "HighNodeUtilization", "NoScoring"
+ Defaults to "LowNodeUtilization"
+ enum:
+ - ""
+ - LowNodeUtilization
+ - HighNodeUtilization
+ - NoScoring
+ type: string
+ type: object
+ type: object
+ controlPlaneReleaseImage:
+ description: |-
+ controlPlaneReleaseImage specifies the desired OCP release payload for
+ control plane components running on the management cluster.
+ If not defined, ReleaseImage is used
+ maxLength: 255
+ type: string
+ controllerAvailabilityPolicy:
+ default: HighlyAvailable
+ description: |-
+ controllerAvailabilityPolicy specifies the availability policy applied to
+ critical control plane components. The default value is SingleReplica.
+ enum:
+ - HighlyAvailable
+ - SingleReplica
+ type: string
+ x-kubernetes-validations:
+ - message: ControllerAvailabilityPolicy is immutable
+ rule: self == oldSelf
+ dns:
+ description: dns is the DNS configuration for the cluster.
+ properties:
+ baseDomain:
+ description: |-
+ baseDomain is the base domain of the hosted cluster.
+ It will be used to configure ingress in the hosted cluster through the subdomain baseDomainPrefix.baseDomain.
+ If baseDomainPrefix is omitted, the hostedCluster.name will be used as the subdomain.
+ Once set, this field is immutable.
+ When the value is the empty string "", the controller might default to a value depending on the platform.
+ maxLength: 253
+ type: string
+ x-kubernetes-validations:
+ - message: baseDomain must be a valid domain name (e.g., example,
+ example.com, sub.example.com)
+ rule: self == "" || self.matches('^(?:(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}|[a-zA-Z0-9-]+)$')
+ - message: baseDomain is immutable
+ rule: oldSelf == "" || self == oldSelf
+ baseDomainPrefix:
+ description: |-
+ baseDomainPrefix is the base domain prefix for the hosted cluster ingress.
+ It will be used to configure ingress in the hosted cluster through the subdomain baseDomainPrefix.baseDomain.
+ If baseDomainPrefix is omitted, the hostedCluster.name will be used as the subdomain.
+ Set baseDomainPrefix to an empty string "", if you don't want a prefix at all (not even hostedCluster.name) to be prepended to baseDomain.
+ This field is immutable.
+ maxLength: 253
+ type: string
+ x-kubernetes-validations:
+ - message: baseDomainPrefix must be a valid domain name (e.g.,
+ example, example.com, sub.example.com)
+ rule: self == "" || self.matches('^(?:(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}|[a-zA-Z0-9-]+)$')
+ - message: baseDomainPrefix is immutable
+ rule: self == oldSelf
+ privateZoneID:
+ description: |-
+ privateZoneID is the Hosted Zone ID where all the DNS records that are only available internally to the cluster exist.
+ This field is optional and mainly leveraged in cloud environments where the DNS records for the .baseDomain are created by controllers in this zone.
+ Once set, this value is immutable.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: privateZoneID is immutable
+ rule: oldSelf == "" || self == oldSelf
+ publicZoneID:
+ description: |-
+ publicZoneID is the Hosted Zone ID where all the DNS records that are publicly accessible to the internet exist.
+ This field is optional and mainly leveraged in cloud environments where the DNS records for the .baseDomain are created by controllers in this zone.
+ Once set, this value is immutable.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: publicZoneID is immutable
+ rule: oldSelf == "" || self == oldSelf
+ required:
+ - baseDomain
+ type: object
+ etcd:
+ description: |-
+ etcd contains metadata about the etcd cluster the hypershift managed Openshift control plane components
+ use to store data.
+ properties:
+ managed:
+ description: managed specifies the behavior of an etcd cluster
+ managed by HyperShift.
+ properties:
+ backup:
+ description: |-
+ backup defines the backup configuration for managed etcd, including
+ optional KMS key settings for artifact encryption in cloud storage.
+ This configuration is only used when an HCPEtcdBackup CR exists.
+ properties:
+ aws:
+ description: |-
+ aws contains AWS-specific backup encryption configuration.
+ Required when platform is "AWS", and forbidden otherwise.
+ properties:
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN
+ (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ required:
+ - kmsKeyARN
+ type: object
+ azure:
+ description: |-
+ azure contains Azure-specific backup encryption configuration.
+ Required when platform is "Azure", and forbidden otherwise.
+ properties:
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS
+ URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure
+ Key Vault (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ required:
+ - encryptionKeyURL
+ type: object
+ platform:
+ description: |-
+ platform specifies the cloud platform for backup encryption configuration.
+ Valid values are "AWS" for AWS KMS encryption and "Azure" for Azure Key Vault encryption.
+ enum:
+ - AWS
+ - Azure
+ type: string
+ required:
+ - platform
+ type: object
+ x-kubernetes-validations:
+ - message: aws configuration is required when platform is
+ AWS, and forbidden otherwise
+ rule: 'self.platform == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: azure configuration is required when platform is
+ Azure, and forbidden otherwise
+ rule: 'self.platform == ''Azure'' ? has(self.azure) : !has(self.azure)'
+ storage:
+ description: storage specifies how etcd data is persisted.
+ properties:
+ persistentVolume:
+ description: |-
+ persistentVolume is the configuration for PersistentVolume etcd storage.
+ With this implementation, a PersistentVolume will be allocated for every
+ etcd member (either 1 or 3 depending on the HostedCluster control plane
+ availability configuration).
+ properties:
+ size:
+ anyOf:
+ - type: integer
+ - type: string
+ default: 8Gi
+ description: |-
+ size is the minimum size of the data volume for each etcd member.
+ Default is 8Gi.
+ This field is immutable
+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
+ x-kubernetes-int-or-string: true
+ x-kubernetes-validations:
+ - message: Etcd PV storage size is immutable
+ rule: self == oldSelf
+ storageClassName:
+ description: |-
+ storageClassName is the StorageClass of the data volume for each etcd member.
+ See https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1.
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: storageClassName is immutable
+ rule: self == oldSelf
+ type: object
+ restoreSnapshotURL:
+ description: |-
+ restoreSnapshotURL allows an optional URL to be provided where
+ an etcd snapshot can be downloaded, for example a pre-signed URL
+ referencing a storage service.
+ This snapshot will be restored on initial startup, only when the etcd PV
+ is empty.
+ items:
+ maxLength: 1024
+ type: string
+ maxItems: 1
+ type: array
+ x-kubernetes-list-type: set
+ x-kubernetes-validations:
+ - message: RestoreSnapshotURL shouldn't contain more than
+ 1 entry
+ rule: self.size() <= 1
+ type:
+ description: |-
+ type is the kind of persistent storage implementation to use for etcd.
+ Only PersistentVolume is supported at the moment.
+ enum:
+ - PersistentVolume
+ type: string
+ required:
+ - type
+ type: object
+ required:
+ - storage
+ type: object
+ managementType:
+ description: |-
+ managementType defines how the etcd cluster is managed.
+ This can be either Managed or Unmanaged.
+ This field is immutable.
+ enum:
+ - Managed
+ - Unmanaged
+ type: string
+ x-kubernetes-validations:
+ - message: managementType is immutable
+ rule: self == oldSelf
+ unmanaged:
+ description: |-
+ unmanaged specifies configuration which enables the control plane to
+ integrate with an externally managed etcd cluster.
+ properties:
+ endpoint:
+ description: |-
+ endpoint is the full etcd cluster client endpoint URL. For example:
+
+ https://etcd-client:2379
+
+ If the URL uses an HTTPS scheme, the TLS field is required.
+ maxLength: 255
+ pattern: ^https://
+ type: string
+ tls:
+ description: tls specifies TLS configuration for HTTPS etcd
+ client endpoints.
+ properties:
+ clientSecret:
+ description: |-
+ clientSecret refers to a secret for client mTLS authentication with the etcd cluster. It
+ may have the following key/value pairs:
+
+ etcd-client-ca.crt: Certificate Authority value
+ etcd-client.crt: Client certificate value
+ etcd-client.key: Client certificate key value
+ 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
+ required:
+ - clientSecret
+ type: object
+ required:
+ - endpoint
+ - tls
+ type: object
+ required:
+ - managementType
+ type: object
+ x-kubernetes-validations:
+ - message: Only managed configuration must be set when managementType
+ is Managed
+ rule: 'self.managementType == ''Managed'' ? has(self.managed) :
+ !has(self.managed)'
+ - message: Only unmanaged configuration must be set when managementType
+ is Unmanaged
+ rule: 'self.managementType == ''Unmanaged'' ? has(self.unmanaged)
+ : !has(self.unmanaged)'
+ fips:
+ description: fips specifies if the nodes for the cluster will be running
+ in FIPS mode
+ type: boolean
+ imageContentSources:
+ description: imageContentSources lists sources/repositories for the
+ release-image content.
+ items:
+ description: |-
+ ImageContentSource specifies image mirrors that can be used by cluster nodes
+ to pull content. For cluster workloads, if a container image registry host of
+ the pullspec matches Source then one of the Mirrors are substituted as hosts
+ in the pullspec and tried in order to fetch the image.
+ properties:
+ mirrors:
+ description: mirrors are one or more repositories that may also
+ contain the same images.
+ items:
+ maxLength: 255
+ type: string
+ maxItems: 255
+ type: array
+ x-kubernetes-list-type: set
+ source:
+ description: |-
+ source is the repository that users refer to, e.g. in image pull
+ specifications.
+ maxLength: 255
+ type: string
+ required:
+ - source
+ type: object
+ maxItems: 255
+ type: array
+ infraID:
+ description: infraID is the unique id that identifies the cluster
+ internally.
+ maxLength: 255
+ type: string
+ infrastructureAvailabilityPolicy:
+ default: SingleReplica
+ description: |-
+ infrastructureAvailabilityPolicy specifies the availability policy applied
+ to infrastructure services which run on cluster nodes. The default value is
+ SingleReplica.
+ enum:
+ - HighlyAvailable
+ - SingleReplica
+ type: string
+ issuerURL:
+ description: |-
+ issuerURL is an OIDC issuer URL which is used as the issuer in all
+ ServiceAccount tokens generated by the control plane API server. The
+ default value is kubernetes.default.svc, which only works for in-cluster
+ validation.
+ maxLength: 255
+ type: string
+ kubeAPIServerDNSName:
+ description: |-
+ kubeAPIServerDNSName specifies a desired DNS name to resolve to the KAS.
+ When set, the controller will automatically generate a secret with kubeconfig and expose it in the hostedCluster Status.customKubeconfig field.
+ If it's set or removed day 2, the kubeconfig generated secret will be created, recreated or deleted.
+ The DNS entries should be resolvable from the cluster, so this should be manually configured in the DNS provider.
+ This field works in conjunction with configuration.APIServer.ServingCerts.NamedCertificates to enable
+ access to the API server via a custom domain name. The NamedCertificates provide the TLS certificates
+ for the custom domain, while this field triggers the generation of a kubeconfig that uses those certificates.
+ maxLength: 253
+ type: string
+ x-kubernetes-validations:
+ - message: kubeAPIServerDNSName must be a valid URL name (e.g., api.example.com)
+ rule: self == "" || self.matches('^(?:(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}|[a-zA-Z0-9-]+)$')
+ kubeconfig:
+ description: kubeconfig specifies the name and key for the kubeconfig
+ secret
+ properties:
+ key:
+ description: key is the key in the secret containing the kubeconfig.
+ maxLength: 255
+ type: string
+ name:
+ description: name is the name of the secret containing the kubeconfig.
+ maxLength: 255
+ type: string
+ required:
+ - key
+ - name
+ type: object
+ labels:
+ additionalProperties:
+ type: string
+ description: |-
+ labels when specified, define what custom labels are added to the hcp pods.
+ Changing this day 2 will cause a rollout of all hcp pods.
+ Duplicate keys are not supported. If duplicate keys are defined, only the last key/value pair is preserved.
+ Valid values are those in https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set
+
+ -kubebuilder:validation:XValidation:rule=`self.all(key, size(key) <= 317 && key.matches('^(([A-Za-z0-9]+(\\.[A-Za-z0-9]+)?)*[A-Za-z0-9]\\/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$'))`, message="label key must have two segments: an optional prefix and name, separated by a slash (/). The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots (.), not longer than 253 characters in total, followed by a slash (/)"
+ -kubebuilder:validation:XValidation:rule=`self.all(key, size(self[key]) <= 63 && self[key].matches('^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$'))`, message="label value must be 63 characters or less (can be empty), consist of alphanumeric characters, dashes (-), underscores (_) or dots (.), and begin and end with an alphanumeric character"
+ maxProperties: 20
+ type: object
+ networking:
+ description: |-
+ networking specifies network configuration for the cluster.
+ Temporarily optional for backward compatibility, required in future releases.
+ properties:
+ allocateNodeCIDRs:
+ description: |-
+ allocateNodeCIDRs controls whether the kube-controller-manager manages node CIDR allocation.
+ When using networkType=Other, it is recommended to set this field to "Enabled"
+ if Flannel is used as the CNI, as it relies on this behavior.
+ Default is "Disabled".
+ This field can only be set to "Enabled" when NetworkType is "Other". Setting it to "Enabled"
+ with any other NetworkType will result in a validation error during cluster creation.
+ enum:
+ - Enabled
+ - Disabled
+ type: string
+ x-kubernetes-validations:
+ - message: allocateNodeCIDRs is immutable and cannot be modified
+ once set.
+ rule: self == oldSelf
+ apiServer:
+ description: |-
+ apiServer contains advanced network settings for the API server that affect
+ how the APIServer is exposed inside a hosted cluster node.
+ properties:
+ advertiseAddress:
+ description: |-
+ advertiseAddress is the address that pods within the nodes will use to talk to the API
+ server. This is an address associated with the loopback adapter of each
+ node. If not specified, the controller will take default values.
+ The default values will be set as 172.20.0.1 or fd00::1.
+ This value is immutable.
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: advertiseAddress is immutable
+ rule: self == oldSelf
+ allowedCIDRBlocks:
+ description: |-
+ allowedCIDRBlocks is an allow list of CIDR blocks that can access the APIServer.
+ If not specified, traffic is allowed from all addresses.
+ This field is enforced for ARO (Azure Red Hat OpenShift) via the shared-ingress HAProxy.
+ For platforms other than ARO, the enforcement depends on whether the underlying cloud provider supports the Service LoadBalancerSourceRanges field.
+ If the platform does not support LoadBalancerSourceRanges, this field may have no effect.
+ items:
+ maxLength: 43
+ type: string
+ x-kubernetes-validations:
+ - message: cidr must be a valid IPv4 or IPv6 CIDR notation
+ (e.g., 192.168.1.0/24 or 2001:db8::/64)
+ rule: self.matches('^((\\d{1,3}\\.){3}\\d{1,3}/\\d{1,2})$')
+ || self.matches('^([0-9a-fA-F]{0,4}:){2,7}([0-9a-fA-F]{0,4})?/[0-9]{1,3}$')
+ maxItems: 500
+ type: array
+ x-kubernetes-list-type: set
+ port:
+ description: |-
+ port is the port at which the APIServer is exposed inside a node. Other
+ pods using host networking cannot listen on this port.
+ If omitted 6443 is used.
+ This is useful to choose a port other than the default one which might interfere with customer environments e.g. https://github.com/openshift/hypershift/pull/356.
+ Setting this to 443 is possible only for backward compatibility reasons and it's discouraged.
+ Doing so, it would result in the controller overriding the KAS endpoint in the guest cluster having a discrepancy with the KAS Pod and potentially causing temporarily network failures.
+ This value is immutable.
+ format: int32
+ type: integer
+ x-kubernetes-validations:
+ - message: port is immutable
+ rule: self == oldSelf
+ type: object
+ clusterNetwork:
+ default:
+ - cidr: 10.132.0.0/14
+ description: |-
+ clusterNetwork is the list of IP address pools for pods.
+ Defaults to cidr: "10.132.0.0/14".
+ Currently only one entry is supported.
+ This field is immutable.
+ items:
+ description: |-
+ ClusterNetworkEntry is a single IP address block for pod IP blocks. IP blocks
+ are allocated with size 2^HostSubnetLength.
+ properties:
+ cidr:
+ description: cidr is the IP block address pool.
+ maxLength: 43
+ type: string
+ x-kubernetes-validations:
+ - message: cidr must be a valid IPv4 or IPv6 CIDR notation
+ (e.g., 192.168.1.0/24 or 2001:db8::/64)
+ rule: self.matches('^((\\d{1,3}\\.){3}\\d{1,3}/\\d{1,2})$')
+ || self.matches('^([0-9a-fA-F]{0,4}:){2,7}([0-9a-fA-F]{0,4})?/[0-9]{1,3}$')
+ hostPrefix:
+ description: |-
+ hostPrefix is the prefix size to allocate to each node from the CIDR.
+ For example, 24 would allocate 2^(32-24)=2^8=256 addresses to each node. If this
+ field is not used by the plugin, it can be left unset.
+ format: int32
+ type: integer
+ required:
+ - cidr
+ type: object
+ maxItems: 2
+ minItems: 1
+ type: array
+ x-kubernetes-validations:
+ - message: clusterNetwork is immutable and cannot be modified
+ once set.
+ rule: self == oldSelf
+ machineNetwork:
+ description: |-
+ machineNetwork is the list of IP address pools for machines.
+ This might be used among other things to generate appropriate networking security groups in some clouds providers.
+ Currently only one entry or two for dual stack is supported.
+ This field is immutable.
+ items:
+ description: MachineNetworkEntry is a single IP address block
+ for node IP blocks.
+ properties:
+ cidr:
+ description: cidr is the IP block address pool for machines
+ within the cluster.
+ maxLength: 43
+ type: string
+ x-kubernetes-validations:
+ - message: cidr must be a valid IPv4 or IPv6 CIDR notation
+ (e.g., 192.168.1.0/24 or 2001:db8::/64)
+ rule: self.matches('^((\\d{1,3}\\.){3}\\d{1,3}/\\d{1,2})$')
+ || self.matches('^([0-9a-fA-F]{0,4}:){2,7}([0-9a-fA-F]{0,4})?/[0-9]{1,3}$')
+ required:
+ - cidr
+ type: object
+ maxItems: 2
+ minItems: 1
+ type: array
+ x-kubernetes-validations:
+ - message: machineNetwork is immutable and cannot be modified
+ once set.
+ rule: self == oldSelf
+ networkType:
+ default: OVNKubernetes
+ description: |-
+ networkType specifies the SDN provider used for cluster networking.
+ Defaults to OVNKubernetes.
+ This field is required and immutable.
+ kubebuilder:validation:XValidation:rule="self == oldSelf", message="networkType is immutable"
+ enum:
+ - OpenShiftSDN
+ - Calico
+ - OVNKubernetes
+ - Other
+ type: string
+ serviceNetwork:
+ default:
+ - cidr: 172.31.0.0/16
+ description: |-
+ serviceNetwork is the list of IP address pools for services.
+ Defaults to cidr: "172.31.0.0/16".
+ Currently only one entry is supported.
+ This field is immutable.
+ items:
+ description: ServiceNetworkEntry is a single IP address block
+ for the service network.
+ properties:
+ cidr:
+ description: cidr is the IP block address pool for services
+ within the cluster in CIDR format (e.g., 192.168.1.0/24
+ or 2001:0db8::/64)
+ maxLength: 43
+ type: string
+ x-kubernetes-validations:
+ - message: cidr must be a valid IPv4 or IPv6 CIDR notation
+ (e.g., 192.168.1.0/24 or 2001:db8::/64)
+ rule: self.matches('^((\\d{1,3}\\.){3}\\d{1,3}/\\d{1,2})$')
+ || self.matches('^([0-9a-fA-F]{0,4}:){2,7}([0-9a-fA-F]{0,4})?/[0-9]{1,3}$')
+ required:
+ - cidr
+ type: object
+ maxItems: 2
+ minItems: 1
+ type: array
+ x-kubernetes-validations:
+ - message: serviceNetwork is immutable and cannot be modified
+ once set.
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: CIDR ranges in machineNetwork, clusterNetwork, and serviceNetwork
+ must be unique and non-overlapping
+ rule: (!has(self.machineNetwork) && self.clusterNetwork.all(c, self.serviceNetwork.all(s,
+ c.cidr != s.cidr)) || (has(self.machineNetwork) && (self.machineNetwork.all(m,
+ self.clusterNetwork.all(c, m.cidr != c.cidr)) && self.machineNetwork.all(m,
+ self.serviceNetwork.all(s, m.cidr != s.cidr)) && self.clusterNetwork.all(c,
+ self.serviceNetwork.all(s, c.cidr != s.cidr)))))
+ - message: allocateNodeCIDRs can only be set to Enabled when networkType
+ is 'Other'
+ rule: 'has(self.allocateNodeCIDRs) && self.allocateNodeCIDRs ==
+ ''Enabled'' ? self.networkType == ''Other'' : true'
+ nodeSelector:
+ additionalProperties:
+ type: string
+ description: nodeSelector when specified, must be true for the pods
+ managed by the HostedCluster to be scheduled.
+ type: object
+ olmCatalogPlacement:
+ default: management
+ description: |-
+ olmCatalogPlacement specifies the placement of OLM catalog components. By default,
+ this is set to management and OLM catalog components are deployed onto the management
+ cluster. If set to guest, the OLM catalog components will be deployed onto the guest
+ cluster.
+ enum:
+ - management
+ - guest
+ type: string
+ operatorConfiguration:
+ description: operatorConfiguration specifies configuration for individual
+ OCP operators in the cluster.
+ properties:
+ clusterNetworkOperator:
+ description: clusterNetworkOperator specifies the configuration
+ for the Cluster Network Operator in the hosted cluster.
+ properties:
+ disableMultiNetwork:
+ default: false
+ description: |-
+ disableMultiNetwork when set to true disables the Multus CNI plugin and related components
+ in the hosted cluster. This prevents the installation of multus daemon sets in the
+ guest cluster and the multus-admission-controller in the management cluster.
+ Default is false (Multus is enabled).
+ This field is immutable.
+ This field can only be set to true when NetworkType is "Other". Setting it to true
+ with any other NetworkType will result in a validation error during cluster creation.
+ type: boolean
+ x-kubernetes-validations:
+ - message: disableMultiNetwork is immutable
+ rule: self == oldSelf
+ ovnKubernetesConfig:
+ description: |-
+ ovnKubernetesConfig holds OVN-Kubernetes specific configuration.
+ This is only consumed when NetworkType is OVNKubernetes.
+ minProperties: 1
+ properties:
+ ipv4:
+ description: |-
+ ipv4 allows users to configure IP settings for IPv4 connections. When omitted,
+ this means no opinions and the default configuration is used. Check individual
+ fields within ipv4 for details of default values.
+ minProperties: 1
+ properties:
+ internalJoinSubnet:
+ description: |-
+ internalJoinSubnet is a v4 subnet used internally by ovn-kubernetes in case the
+ default one is being already used by something else. It must not overlap with
+ any other subnet being used by OpenShift or by the node network. The size of the
+ subnet must be larger than the number of nodes.
+ The current default value is 100.64.0.0/16
+ The subnet must be large enough to accommodate one IP per node in your cluster
+ The value must be in proper IPV4 CIDR format
+ maxLength: 18
+ minLength: 9
+ type: string
+ x-kubernetes-validations:
+ - message: Subnet must be in a valid IPv4 CIDR format
+ (e.g., 192.168.1.1/24)
+ rule: self.matches('^([0-9]{1,3}\\.){3}[0-9]{1,3}/([0-9]|[1-2][0-9]|3[0-2])$')
+ && self.split('/')[0].split('.').all(oct, int(oct)
+ >= 0 && int(oct) <= 255)
+ - message: subnet must be in the range /0 to /30 inclusive
+ rule: self.matches('^.*/[0-9]+$') && int(self.split('/')[1])
+ <= 30
+ - message: first IP address octet must not be 0
+ rule: self.matches('^[0-9]{1,3}\\..*') && int(self.split('/')[0].split('.')[0])
+ > 0
+ internalTransitSwitchSubnet:
+ description: |-
+ internalTransitSwitchSubnet is a v4 subnet in IPV4 CIDR format used internally
+ by OVN-Kubernetes for the distributed transit switch in the OVN Interconnect
+ architecture that connects the cluster routers on each node together to enable
+ east west traffic. The subnet chosen should not overlap with other networks
+ specified for OVN-Kubernetes as well as other networks used on the host.
+ When omitted, this means no opinion and the platform is left to choose a reasonable
+ default which is subject to change over time.
+ The current default subnet is 100.88.0.0/16
+ The subnet must be large enough to accommodate one IP per node in your cluster
+ The value must be in proper IPV4 CIDR format
+ maxLength: 18
+ minLength: 9
+ type: string
+ x-kubernetes-validations:
+ - message: Subnet must be in a valid IPv4 CIDR format
+ rule: self.matches('^([0-9]{1,3}\\.){3}[0-9]{1,3}/([0-9]|[1-2][0-9]|3[0-2])$')
+ && self.split('/')[0].split('.').all(oct, int(oct)
+ >= 0 && int(oct) <= 255)
+ - message: subnet must be in the range /0 to /30 inclusive
+ rule: self.matches('^.*/[0-9]+$') && int(self.split('/')[1])
+ <= 30
+ - message: first IP address octet must not be 0
+ rule: self.matches('^[0-9]{1,3}\\..*') && int(self.split('/')[0].split('.')[0])
+ > 0
+ type: object
+ type: object
+ x-kubernetes-validations:
+ - message: internalJoinSubnet and internalTransitSwitchSubnet
+ must not be the same
+ rule: '!has(self.ipv4) || !has(self.ipv4.internalJoinSubnet)
+ || !has(self.ipv4.internalTransitSwitchSubnet) || self.ipv4.internalJoinSubnet
+ != self.ipv4.internalTransitSwitchSubnet'
+ type: object
+ ingressOperator:
+ description: |-
+ ingressOperator specifies the configuration for the Ingress Operator in the hosted cluster.
+ This allows configuring how the default ingress controller endpoints are published.
+ properties:
+ endpointPublishingStrategy:
+ description: |-
+ endpointPublishingStrategy is used to publish the default ingress controller endpoints.
+
+ The endpoint publishing strategy is determined by the following precedence order:
+ 1. User-specified endpointPublishingStrategy (highest priority) - if this field is set,
+ it takes precedence over all other configuration methods
+ 2. Platform-specific defaults with annotation overrides - if no user strategy is set,
+ the platform type determines the default strategy, which can be further modified by:
+ - hypershift.openshift.io/private-ingress-controller annotation (sets PrivateStrategyType)
+ - hypershift.openshift.io/ingress-controller-load-balancer-scope annotation (sets LoadBalancerScope)
+ 3. Generic LoadBalancer fallback - if the platform is not recognized, defaults to
+ LoadBalancerService with External scope
+
+ Platform-specific defaults when endpointPublishingStrategy is not set:
+ - AWS: LoadBalancerService with External scope (or NLB if configured)
+ - Azure, GCP: LoadBalancerService with External scope
+ - IBMCloud: LoadBalancerService with External scope (or NodePort for UPI)
+ - None: HostNetwork
+ - KubeVirt: NodePortService
+ - OpenStack: LoadBalancerService with External scope and optional FloatingIP
+ - Other platforms: LoadBalancerService with External scope
+
+ See the OpenShift Ingress Operator EndpointPublishingStrategy type for the full specification:
+ https://github.com/openshift/api/blob/master/operator/v1/types_ingress.go
+ properties:
+ hostNetwork:
+ description: |-
+ hostNetwork holds parameters for the HostNetwork endpoint publishing
+ strategy. Present only if type is HostNetwork.
+ properties:
+ httpPort:
+ default: 80
+ description: |-
+ httpPort is the port on the host which should be used to listen for
+ HTTP requests. This field should be set when port 80 is already in use.
+ The value should not coincide with the NodePort range of the cluster.
+ When the value is 0 or is not specified it defaults to 80.
+ format: int32
+ maximum: 65535
+ minimum: 0
+ type: integer
+ httpsPort:
+ default: 443
+ description: |-
+ httpsPort is the port on the host which should be used to listen for
+ HTTPS requests. This field should be set when port 443 is already in use.
+ The value should not coincide with the NodePort range of the cluster.
+ When the value is 0 or is not specified it defaults to 443.
+ format: int32
+ maximum: 65535
+ minimum: 0
+ type: integer
+ protocol:
+ description: |-
+ protocol specifies whether the IngressController expects incoming
+ connections to use plain TCP or whether the IngressController expects
+ PROXY protocol.
+
+ PROXY protocol can be used with load balancers that support it to
+ communicate the source addresses of client connections when
+ forwarding those connections to the IngressController. Using PROXY
+ protocol enables the IngressController to report those source
+ addresses instead of reporting the load balancer's address in HTTP
+ headers and logs. Note that enabling PROXY protocol on the
+ IngressController will cause connections to fail if you are not using
+ a load balancer that uses PROXY protocol to forward connections to
+ the IngressController. See
+ http://www.haproxy.org/download/2.2/doc/proxy-protocol.txt for
+ information about PROXY protocol.
+
+ The following values are valid for this field:
+
+ * The empty string.
+ * "TCP".
+ * "PROXY".
+
+ The empty string specifies the default, which is TCP without PROXY
+ protocol. Note that the default is subject to change.
+ enum:
+ - ""
+ - TCP
+ - PROXY
+ type: string
+ statsPort:
+ default: 1936
+ description: |-
+ statsPort is the port on the host where the stats from the router are
+ published. The value should not coincide with the NodePort range of the
+ cluster. If an external load balancer is configured to forward connections
+ to this IngressController, the load balancer should use this port for
+ health checks. The load balancer can send HTTP probes on this port on a
+ given node, with the path /healthz/ready to determine if the ingress
+ controller is ready to receive traffic on the node. For proper operation
+ the load balancer must not forward traffic to a node until the health
+ check reports ready. The load balancer should also stop forwarding requests
+ within a maximum of 45 seconds after /healthz/ready starts reporting
+ not-ready. Probing every 5 to 10 seconds, with a 5-second timeout and with
+ a threshold of two successful or failed requests to become healthy or
+ unhealthy respectively, are well-tested values. When the value is 0 or
+ is not specified it defaults to 1936.
+ format: int32
+ maximum: 65535
+ minimum: 0
+ type: integer
+ type: object
+ loadBalancer:
+ description: |-
+ loadBalancer holds parameters for the load balancer. Present only if
+ type is LoadBalancerService.
+ properties:
+ allowedSourceRanges:
+ description: |-
+ allowedSourceRanges specifies an allowlist of IP address ranges to which
+ access to the load balancer should be restricted. Each range must be
+ specified using CIDR notation (e.g. "10.0.0.0/8" or "fd00::/8"). If no range is
+ specified, "0.0.0.0/0" for IPv4 and "::/0" for IPv6 are used by default,
+ which allows all source addresses.
+
+ To facilitate migration from earlier versions of OpenShift that did
+ not have the allowedSourceRanges field, you may set the
+ service.beta.kubernetes.io/load-balancer-source-ranges annotation on
+ the "router-" service in the
+ "openshift-ingress" namespace, and this annotation will take
+ effect if allowedSourceRanges is empty on OpenShift 4.12.
+ items:
+ description: |-
+ CIDR is an IP address range in CIDR notation (for example, "10.0.0.0/8"
+ or "fd00::/8").
+ pattern: (^(([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|[12][0-9]|3[0-2])$)|(^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*(\/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9]))$)
+ type: string
+ nullable: true
+ type: array
+ x-kubernetes-list-type: atomic
+ dnsManagementPolicy:
+ default: Managed
+ description: |-
+ dnsManagementPolicy indicates if the lifecycle of the wildcard DNS record
+ associated with the load balancer service will be managed by
+ the ingress operator. It defaults to Managed.
+ Valid values are: Managed and Unmanaged.
+ enum:
+ - Managed
+ - Unmanaged
+ type: string
+ providerParameters:
+ description: |-
+ providerParameters holds desired load balancer information specific to
+ the underlying infrastructure provider.
+
+ If empty, defaults will be applied. See specific providerParameters
+ fields for details about their defaults.
+ properties:
+ aws:
+ description: |-
+ aws provides configuration settings that are specific to AWS
+ load balancers.
+
+ If empty, defaults will be applied. See specific aws fields for
+ details about their defaults.
+ properties:
+ classicLoadBalancer:
+ description: |-
+ classicLoadBalancerParameters holds configuration parameters for an AWS
+ classic load balancer. Present only if type is Classic.
+ properties:
+ connectionIdleTimeout:
+ description: |-
+ connectionIdleTimeout specifies the maximum time period that a
+ connection may be idle before the load balancer closes the
+ connection. The value must be parseable as a time duration value;
+ see . A nil or zero value
+ means no opinion, in which case a default value is used. The default
+ value for this field is 60s. This default is subject to change.
+ format: duration
+ type: string
+ subnets:
+ description: |-
+ subnets specifies the subnets to which the load balancer will
+ attach. The subnets may be specified by either their
+ ID or name. The total number of subnets is limited to 10.
+
+ In order for the load balancer to be provisioned with subnets,
+ each subnet must exist, each subnet must be from a different
+ availability zone, and the load balancer service must be
+ recreated to pick up new values.
+
+ When omitted from the spec, the subnets will be auto-discovered
+ for each availability zone. Auto-discovered subnets are not reported
+ in the status of the IngressController object.
+ properties:
+ ids:
+ description: |-
+ ids specifies a list of AWS subnets by subnet ID.
+ Subnet IDs must start with "subnet-", consist only
+ of alphanumeric characters, must be exactly 24
+ characters long, must be unique, and the total
+ number of subnets specified by ids and names
+ must not exceed 10.
+ items:
+ description: AWSSubnetID is a reference
+ to an AWS subnet ID.
+ maxLength: 24
+ minLength: 24
+ pattern: ^subnet-[0-9A-Za-z]+$
+ type: string
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: subnet ids cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ names:
+ description: |-
+ names specifies a list of AWS subnets by subnet name.
+ Subnet names must not start with "subnet-", must not
+ include commas, must be under 256 characters in length,
+ must be unique, and the total number of subnets
+ specified by ids and names must not exceed 10.
+ items:
+ description: AWSSubnetName is a
+ reference to an AWS subnet name.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: subnet name cannot contain
+ a comma
+ rule: '!self.contains('','')'
+ - message: subnet name cannot start
+ with 'subnet-'
+ rule: '!self.startsWith(''subnet-'')'
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: subnet names cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ type: object
+ x-kubernetes-validations:
+ - message: the total number of subnets
+ cannot exceed 10
+ rule: 'has(self.ids) && has(self.names)
+ ? size(self.ids + self.names) <= 10
+ : true'
+ - message: must specify at least 1 subnet
+ name or id
+ rule: has(self.ids) && self.ids.size()
+ > 0 || has(self.names) && self.names.size()
+ > 0
+ type: object
+ networkLoadBalancer:
+ description: |-
+ networkLoadBalancerParameters holds configuration parameters for an AWS
+ network load balancer. Present only if type is NLB.
+ properties:
+ eipAllocations:
+ description: |-
+ eipAllocations is a list of IDs for Elastic IP (EIP) addresses that
+ are assigned to the Network Load Balancer.
+ The following restrictions apply:
+
+ eipAllocations can only be used with external scope, not internal.
+ An EIP can be allocated to only a single IngressController.
+ The number of EIP allocations must match the number of subnets that are used for the load balancer.
+ Each EIP allocation must be unique.
+ A maximum of 10 EIP allocations are permitted.
+
+ See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html for general
+ information about configuration, characteristics, and limitations of Elastic IP addresses.
+ items:
+ description: |-
+ EIPAllocation is an ID for an Elastic IP (EIP) address that can be allocated to an ELB in the AWS environment.
+ Values must begin with `eipalloc-` followed by exactly 17 hexadecimal (`[0-9a-fA-F]`) characters.
+ maxLength: 26
+ minLength: 26
+ type: string
+ x-kubernetes-validations:
+ - message: eipAllocations should start
+ with 'eipalloc-'
+ rule: self.startsWith('eipalloc-')
+ - message: eipAllocations must be 'eipalloc-'
+ followed by exactly 17 hexadecimal
+ characters (0-9, a-f, A-F)
+ rule: self.split("-", 2)[1].matches('[0-9a-fA-F]{17}$')
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: eipAllocations cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ subnets:
+ description: |-
+ subnets specifies the subnets to which the load balancer will
+ attach. The subnets may be specified by either their
+ ID or name. The total number of subnets is limited to 10.
+
+ In order for the load balancer to be provisioned with subnets,
+ each subnet must exist, each subnet must be from a different
+ availability zone, and the load balancer service must be
+ recreated to pick up new values.
+
+ When omitted from the spec, the subnets will be auto-discovered
+ for each availability zone. Auto-discovered subnets are not reported
+ in the status of the IngressController object.
+ properties:
+ ids:
+ description: |-
+ ids specifies a list of AWS subnets by subnet ID.
+ Subnet IDs must start with "subnet-", consist only
+ of alphanumeric characters, must be exactly 24
+ characters long, must be unique, and the total
+ number of subnets specified by ids and names
+ must not exceed 10.
+ items:
+ description: AWSSubnetID is a reference
+ to an AWS subnet ID.
+ maxLength: 24
+ minLength: 24
+ pattern: ^subnet-[0-9A-Za-z]+$
+ type: string
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: subnet ids cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ names:
+ description: |-
+ names specifies a list of AWS subnets by subnet name.
+ Subnet names must not start with "subnet-", must not
+ include commas, must be under 256 characters in length,
+ must be unique, and the total number of subnets
+ specified by ids and names must not exceed 10.
+ items:
+ description: AWSSubnetName is a
+ reference to an AWS subnet name.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: subnet name cannot contain
+ a comma
+ rule: '!self.contains('','')'
+ - message: subnet name cannot start
+ with 'subnet-'
+ rule: '!self.startsWith(''subnet-'')'
+ maxItems: 10
+ type: array
+ x-kubernetes-list-type: atomic
+ x-kubernetes-validations:
+ - message: subnet names cannot contain
+ duplicates
+ rule: self.all(x, self.exists_one(y,
+ x == y))
+ type: object
+ x-kubernetes-validations:
+ - message: the total number of subnets
+ cannot exceed 10
+ rule: 'has(self.ids) && has(self.names)
+ ? size(self.ids + self.names) <= 10
+ : true'
+ - message: must specify at least 1 subnet
+ name or id
+ rule: has(self.ids) && self.ids.size()
+ > 0 || has(self.names) && self.names.size()
+ > 0
+ type: object
+ x-kubernetes-validations:
+ - message: number of subnets must be equal
+ to number of eipAllocations
+ rule: 'has(self.subnets) && has(self.subnets.ids)
+ && has(self.subnets.names) && has(self.eipAllocations)
+ ? size(self.subnets.ids + self.subnets.names)
+ == size(self.eipAllocations) : true'
+ - message: number of subnets must be equal
+ to number of eipAllocations
+ rule: 'has(self.subnets) && has(self.subnets.ids)
+ && !has(self.subnets.names) && has(self.eipAllocations)
+ ? size(self.subnets.ids) == size(self.eipAllocations)
+ : true'
+ - message: number of subnets must be equal
+ to number of eipAllocations
+ rule: 'has(self.subnets) && has(self.subnets.names)
+ && !has(self.subnets.ids) && has(self.eipAllocations)
+ ? size(self.subnets.names) == size(self.eipAllocations)
+ : true'
+ type:
+ description: |-
+ type is the type of AWS load balancer to instantiate for an ingresscontroller.
+
+ Valid values are:
+
+ * "Classic": A Classic Load Balancer that makes routing decisions at either
+ the transport layer (TCP/SSL) or the application layer (HTTP/HTTPS). See
+ the following for additional details:
+
+ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#clb
+
+ * "NLB": A Network Load Balancer that makes routing decisions at the
+ transport layer (TCP/SSL). See the following for additional details:
+
+ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#nlb
+ enum:
+ - Classic
+ - NLB
+ type: string
+ required:
+ - type
+ type: object
+ gcp:
+ description: |-
+ gcp provides configuration settings that are specific to GCP
+ load balancers.
+
+ If empty, defaults will be applied. See specific gcp fields for
+ details about their defaults.
+ properties:
+ clientAccess:
+ description: |-
+ clientAccess describes how client access is restricted for internal
+ load balancers.
+
+ Valid values are:
+ * "Global": Specifying an internal load balancer with Global client access
+ allows clients from any region within the VPC to communicate with the load
+ balancer.
+
+ https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing#global_access
+
+ * "Local": Specifying an internal load balancer with Local client access
+ means only clients within the same region (and VPC) as the GCP load balancer
+ can communicate with the load balancer. Note that this is the default behavior.
+
+ https://cloud.google.com/load-balancing/docs/internal#client_access
+ enum:
+ - Global
+ - Local
+ type: string
+ type: object
+ ibm:
+ description: |-
+ ibm provides configuration settings that are specific to IBM Cloud
+ load balancers.
+
+ If empty, defaults will be applied. See specific ibm fields for
+ details about their defaults.
+ properties:
+ protocol:
+ description: |-
+ protocol specifies whether the load balancer uses PROXY protocol to forward connections to
+ the IngressController. See "service.kubernetes.io/ibm-load-balancer-cloud-provider-enable-features:
+ "proxy-protocol"" at https://cloud.ibm.com/docs/containers?topic=containers-vpc-lbaas"
+
+ PROXY protocol can be used with load balancers that support it to
+ communicate the source addresses of client connections when
+ forwarding those connections to the IngressController. Using PROXY
+ protocol enables the IngressController to report those source
+ addresses instead of reporting the load balancer's address in HTTP
+ headers and logs. Note that enabling PROXY protocol on the
+ IngressController will cause connections to fail if you are not using
+ a load balancer that uses PROXY protocol to forward connections to
+ the IngressController. See
+ http://www.haproxy.org/download/2.2/doc/proxy-protocol.txt for
+ information about PROXY protocol.
+
+ Valid values for protocol are TCP, PROXY and omitted.
+ When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
+ The current default is TCP, without the proxy protocol enabled.
+ enum:
+ - ""
+ - TCP
+ - PROXY
+ type: string
+ type: object
+ openstack:
+ description: |-
+ openstack provides configuration settings that are specific to OpenStack
+ load balancers.
+
+ If empty, defaults will be applied. See specific openstack fields for
+ details about their defaults.
+ properties:
+ floatingIP:
+ description: |-
+ floatingIP specifies the IP address that the load balancer will use.
+ When not specified, an IP address will be assigned randomly by the OpenStack cloud provider.
+ When specified, the floating IP has to be pre-created. If the
+ specified value is not a floating IP or is already claimed, the
+ OpenStack cloud provider won't be able to provision the load
+ balancer.
+ This field may only be used if the IngressController has External scope.
+ This value must be a valid IPv4 or IPv6 address.
+ type: string
+ x-kubernetes-validations:
+ - message: floatingIP must be a valid IPv4
+ or IPv6 address
+ rule: isIP(self)
+ type: object
+ type:
+ description: |-
+ type is the underlying infrastructure provider for the load balancer.
+ Allowed values are "AWS", "Azure", "BareMetal", "GCP", "IBM", "Nutanix",
+ "OpenStack", and "VSphere".
+ enum:
+ - AWS
+ - Azure
+ - BareMetal
+ - GCP
+ - Nutanix
+ - OpenStack
+ - VSphere
+ - IBM
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-validations:
+ - message: openstack is not permitted when type is
+ not OpenStack
+ rule: 'has(self.type) && self.type == ''OpenStack''
+ ? true : !has(self.openstack)'
+ scope:
+ description: |-
+ scope indicates the scope at which the load balancer is exposed.
+ Possible values are "External" and "Internal".
+ enum:
+ - Internal
+ - External
+ type: string
+ required:
+ - dnsManagementPolicy
+ - scope
+ type: object
+ x-kubernetes-validations:
+ - message: eipAllocations are forbidden when the scope
+ is Internal.
+ rule: '!has(self.scope) || self.scope != ''Internal''
+ || !has(self.providerParameters) || !has(self.providerParameters.aws)
+ || !has(self.providerParameters.aws.networkLoadBalancer)
+ || !has(self.providerParameters.aws.networkLoadBalancer.eipAllocations)'
+ - message: cannot specify a floating ip when scope is
+ internal
+ rule: '!has(self.scope) || self.scope != ''Internal''
+ || !has(self.providerParameters) || !has(self.providerParameters.openstack)
+ || !has(self.providerParameters.openstack.floatingIP)
+ || self.providerParameters.openstack.floatingIP ==
+ ""'
+ nodePort:
+ description: |-
+ nodePort holds parameters for the NodePortService endpoint publishing strategy.
+ Present only if type is NodePortService.
+ properties:
+ protocol:
+ description: |-
+ protocol specifies whether the IngressController expects incoming
+ connections to use plain TCP or whether the IngressController expects
+ PROXY protocol.
+
+ PROXY protocol can be used with load balancers that support it to
+ communicate the source addresses of client connections when
+ forwarding those connections to the IngressController. Using PROXY
+ protocol enables the IngressController to report those source
+ addresses instead of reporting the load balancer's address in HTTP
+ headers and logs. Note that enabling PROXY protocol on the
+ IngressController will cause connections to fail if you are not using
+ a load balancer that uses PROXY protocol to forward connections to
+ the IngressController. See
+ http://www.haproxy.org/download/2.2/doc/proxy-protocol.txt for
+ information about PROXY protocol.
+
+ The following values are valid for this field:
+
+ * The empty string.
+ * "TCP".
+ * "PROXY".
+
+ The empty string specifies the default, which is TCP without PROXY
+ protocol. Note that the default is subject to change.
+ enum:
+ - ""
+ - TCP
+ - PROXY
+ type: string
+ type: object
+ private:
+ description: |-
+ private holds parameters for the Private endpoint publishing
+ strategy. Present only if type is Private.
+ properties:
+ protocol:
+ description: |-
+ protocol specifies whether the IngressController expects incoming
+ connections to use plain TCP or whether the IngressController expects
+ PROXY protocol.
+
+ PROXY protocol can be used with load balancers that support it to
+ communicate the source addresses of client connections when
+ forwarding those connections to the IngressController. Using PROXY
+ protocol enables the IngressController to report those source
+ addresses instead of reporting the load balancer's address in HTTP
+ headers and logs. Note that enabling PROXY protocol on the
+ IngressController will cause connections to fail if you are not using
+ a load balancer that uses PROXY protocol to forward connections to
+ the IngressController. See
+ http://www.haproxy.org/download/2.2/doc/proxy-protocol.txt for
+ information about PROXY protocol.
+
+ The following values are valid for this field:
+
+ * The empty string.
+ * "TCP".
+ * "PROXY".
+
+ The empty string specifies the default, which is TCP without PROXY
+ protocol. Note that the default is subject to change.
+ enum:
+ - ""
+ - TCP
+ - PROXY
+ type: string
+ type: object
+ type:
+ description: |-
+ type is the publishing strategy to use. Valid values are:
+
+ * LoadBalancerService
+
+ Publishes the ingress controller using a Kubernetes LoadBalancer Service.
+
+ In this configuration, the ingress controller deployment uses container
+ networking. A LoadBalancer Service is created to publish the deployment.
+
+ See: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
+
+ If domain is set, a wildcard DNS record will be managed to point at the
+ LoadBalancer Service's external name. DNS records are managed only in DNS
+ zones defined by dns.config.openshift.io/cluster .spec.publicZone and
+ .spec.privateZone.
+
+ Wildcard DNS management is currently supported only on the AWS, Azure,
+ and GCP platforms.
+
+ * HostNetwork
+
+ Publishes the ingress controller on node ports where the ingress controller
+ is deployed.
+
+ In this configuration, the ingress controller deployment uses host
+ networking, bound to node ports 80 and 443. The user is responsible for
+ configuring an external load balancer to publish the ingress controller via
+ the node ports.
+
+ * Private
+
+ Does not publish the ingress controller.
+
+ In this configuration, the ingress controller deployment uses container
+ networking, and is not explicitly published. The user must manually publish
+ the ingress controller.
+
+ * NodePortService
+
+ Publishes the ingress controller using a Kubernetes NodePort Service.
+
+ In this configuration, the ingress controller deployment uses container
+ networking. A NodePort Service is created to publish the deployment. The
+ specific node ports are dynamically allocated by OpenShift; however, to
+ support static port allocations, user changes to the node port
+ field of the managed NodePort Service will preserved.
+ enum:
+ - LoadBalancerService
+ - HostNetwork
+ - Private
+ - NodePortService
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ type: object
+ type: object
+ pausedUntil:
+ description: |-
+ pausedUntil is a field that can be used to pause reconciliation on a resource.
+ Either a date can be provided in RFC3339 format or a boolean. If a date is
+ provided: reconciliation is paused on the resource until that date. If the boolean true is
+ provided: reconciliation is paused on the resource until the field is removed.
+ maxLength: 255
+ type: string
+ platform:
+ description: platform is the platform configuration for the cluster.
+ properties:
+ agent:
+ description: agent specifies configuration for agent-based installations.
+ properties:
+ agentNamespace:
+ description: agentNamespace is the namespace where to search
+ for Agents for this cluster
+ maxLength: 63
+ type: string
+ required:
+ - agentNamespace
+ type: object
+ aws:
+ description: aws specifies configuration for clusters running
+ on Amazon Web Services.
+ properties:
+ additionalAllowedPrincipals:
+ description: |-
+ additionalAllowedPrincipals specifies a list of additional allowed principal ARNs
+ to be added to the hosted control plane's VPC Endpoint Service to enable additional
+ VPC Endpoint connection requests to be automatically accepted.
+ See https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html
+ for more details around VPC Endpoint Service allowed principals.
+ items:
+ maxLength: 255
+ type: string
+ maxItems: 25
+ type: array
+ cloudProviderConfig:
+ description: |-
+ cloudProviderConfig specifies AWS networking configuration for the control
+ plane.
+ This is mainly used for cloud provider controller config:
+ https://github.com/kubernetes/kubernetes/blob/f5be5052e3d0808abb904aebd3218fe4a5c2dd82/staging/src/k8s.io/legacy-cloud-providers/aws/aws.go#L1347-L1364
+ properties:
+ subnet:
+ description: subnet is the subnet to use for control plane
+ cloud resources.
+ properties:
+ filters:
+ description: |-
+ filters is a set of key/value pairs used to identify a resource
+ They are applied according to the rules defined by the AWS API:
+ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Filtering.html
+ items:
+ description: Filter is a filter used to identify
+ an AWS resource
+ properties:
+ name:
+ description: name is the name of the filter.
+ maxLength: 255
+ type: string
+ values:
+ description: values is a list of values for
+ the filter.
+ items:
+ maxLength: 255
+ type: string
+ maxItems: 50
+ type: array
+ required:
+ - name
+ - values
+ type: object
+ maxItems: 50
+ type: array
+ id:
+ description: id of resource
+ maxLength: 255
+ type: string
+ type: object
+ vpc:
+ description: vpc is the VPC to use for control plane cloud
+ resources.
+ maxLength: 255
+ type: string
+ zone:
+ description: |-
+ zone is the availability zone where control plane cloud resources are
+ created.
+ maxLength: 255
+ type: string
+ required:
+ - vpc
+ type: object
+ endpointAccess:
+ default: Public
+ description: |-
+ endpointAccess specifies the publishing scope of cluster endpoints. The
+ default is Public.
+ enum:
+ - Public
+ - PublicAndPrivate
+ - Private
+ type: string
+ multiArch:
+ default: false
+ description: |-
+ multiArch specifies whether the Hosted Cluster will be expected to support NodePools with different
+ CPU architectures, i.e., supporting arm64 NodePools and supporting amd64 NodePools on the same Hosted Cluster.
+ Deprecated: This field is no longer used. The HyperShift Operator now performs multi-arch validations
+ automatically despite the platform type. The HyperShift Operator will set HostedCluster.Status.PayloadArch based
+ on the HostedCluster release image. This field is used by the NodePool controller to validate the
+ NodePool.Spec.Arch is supported.
+ type: boolean
+ region:
+ description: |-
+ region is the AWS region in which the cluster resides. This configures the
+ OCP control plane cloud integrations, and is used by NodePool to resolve
+ the correct boot AMI for a given release.
+ maxLength: 255
+ type: string
+ resourceTags:
+ description: |-
+ resourceTags is a list of additional tags to apply to AWS resources created
+ for the cluster. See
+ https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html for
+ information on tagging AWS resources. AWS supports a maximum of 50 tags per
+ resource. OpenShift reserves 25 tags for its use, leaving 25 tags available
+ for the user.
+ Changes to this field will be propagated in-place to AWS resources (VPC Endpoints, EC2 instances, initial EBS volumes and default/endpoint security groups).
+ These tags will be propagated to the infrastructure CR in the guest cluster, where other OCP operators might choose to honor this input to reconcile AWS resources created by them.
+ Please consult the official documentation for a list of all AWS resources that support in-place tag updates.
+ These take precedence over tags defined out of band (i.e., tags added manually or by other tools outside of HyperShift) in AWS in case of conflicts.
+ items:
+ description: AWSResourceTag is a tag to apply to AWS resources
+ created for the cluster.
+ properties:
+ key:
+ description: key is the key of the tag.
+ maxLength: 128
+ minLength: 1
+ pattern: ^[0-9A-Za-z_.:/=+-@]+$
+ type: string
+ value:
+ description: |-
+ value is the value of the tag.
+
+ Some AWS service do not support empty values. Since tags are added to
+ resources in many services, the length of the tag value must meet the
+ requirements of all services.
+ maxLength: 256
+ minLength: 1
+ pattern: ^[0-9A-Za-z_.:/=+-@]+$
+ type: string
+ required:
+ - key
+ - value
+ type: object
+ maxItems: 25
+ type: array
+ rolesRef:
+ description: |-
+ rolesRef contains references to various AWS IAM roles required to enable
+ integrations such as OIDC.
+ properties:
+ controlPlaneOperatorARN:
+ description: "controlPlaneOperatorARN is an ARN value
+ referencing a role appropriate for the Control Plane
+ Operator.\n\nThe following is an example of a valid
+ policy document:\n\n{\n\t\"Version\": \"2012-10-17\",\n\t\"Statement\":
+ [\n\t\t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:CreateVpcEndpoint\",\n\t\t\t\t\"ec2:DescribeVpcEndpoints\",\n\t\t\t\t\"ec2:ModifyVpcEndpoint\",\n\t\t\t\t\"ec2:DeleteVpcEndpoints\",\n\t\t\t\t\"ec2:CreateTags\",\n\t\t\t\t\"route53:ListHostedZones\",\n\t\t\t\t\"ec2:CreateSecurityGroup\",\n\t\t\t\t\"ec2:AuthorizeSecurityGroupIngress\",\n\t\t\t\t\"ec2:AuthorizeSecurityGroupEgress\",\n\t\t\t\t\"ec2:DeleteSecurityGroup\",\n\t\t\t\t\"ec2:RevokeSecurityGroupIngress\",\n\t\t\t\t\"ec2:RevokeSecurityGroupEgress\",\n\t\t\t\t\"ec2:DescribeSecurityGroups\",\n\t\t\t\t\"ec2:DescribeVpcs\",\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t},\n\t\t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"route53:ChangeResourceRecordSets\",\n\t\t\t\t\"route53:ListResourceRecordSets\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"arn:aws:route53:::%s\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ imageRegistryARN:
+ description: "imageRegistryARN is an ARN value referencing
+ a role appropriate for the Image Registry Operator.\n\nThe
+ following is an example of a valid policy document:\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"s3:CreateBucket\",\n\t\t\t\t\"s3:DeleteBucket\",\n\t\t\t\t\"s3:PutBucketTagging\",\n\t\t\t\t\"s3:GetBucketTagging\",\n\t\t\t\t\"s3:PutBucketPublicAccessBlock\",\n\t\t\t\t\"s3:GetBucketPublicAccessBlock\",\n\t\t\t\t\"s3:PutEncryptionConfiguration\",\n\t\t\t\t\"s3:GetEncryptionConfiguration\",\n\t\t\t\t\"s3:PutLifecycleConfiguration\",\n\t\t\t\t\"s3:GetLifecycleConfiguration\",\n\t\t\t\t\"s3:GetBucketLocation\",\n\t\t\t\t\"s3:ListBucket\",\n\t\t\t\t\"s3:GetObject\",\n\t\t\t\t\"s3:PutObject\",\n\t\t\t\t\"s3:DeleteObject\",\n\t\t\t\t\"s3:ListBucketMultipartUploads\",\n\t\t\t\t\"s3:AbortMultipartUpload\",\n\t\t\t\t\"s3:ListMultipartUploadParts\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ ingressARN:
+ description: "ingressARN is an ARN value referencing a
+ role appropriate for the Ingress Operator.\n\nThe following
+ is an example of a valid policy document:\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"elasticloadbalancing:DescribeLoadBalancers\",\n\t\t\t\t\"tag:GetResources\",\n\t\t\t\t\"route53:ListHostedZones\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t},\n\t\t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"route53:ChangeResourceRecordSets\"\n\t\t\t],\n\t\t\t\"Resource\":
+ [\n\t\t\t\t\"arn:aws:route53:::PUBLIC_ZONE_ID\",\n\t\t\t\t\"arn:aws:route53:::PRIVATE_ZONE_ID\"\n\t\t\t]\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ kubeCloudControllerARN:
+ description: |-
+ kubeCloudControllerARN is an ARN value referencing a role appropriate for the KCM/KCC.
+ Source: https://cloud-provider-aws.sigs.k8s.io/prerequisites/#iam-policies
+
+ The following is an example of a valid policy document:
+
+ {
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Action": [
+ "autoscaling:DescribeAutoScalingGroups",
+ "autoscaling:DescribeLaunchConfigurations",
+ "autoscaling:DescribeTags",
+ "ec2:DescribeAvailabilityZones",
+ "ec2:DescribeInstances",
+ "ec2:DescribeImages",
+ "ec2:DescribeRegions",
+ "ec2:DescribeRouteTables",
+ "ec2:DescribeSecurityGroups",
+ "ec2:DescribeSubnets",
+ "ec2:DescribeVolumes",
+ "ec2:CreateSecurityGroup",
+ "ec2:CreateTags",
+ "ec2:CreateVolume",
+ "ec2:ModifyInstanceAttribute",
+ "ec2:ModifyVolume",
+ "ec2:AttachVolume",
+ "ec2:AuthorizeSecurityGroupIngress",
+ "ec2:CreateRoute",
+ "ec2:DeleteRoute",
+ "ec2:DeleteSecurityGroup",
+ "ec2:DeleteVolume",
+ "ec2:DetachVolume",
+ "ec2:RevokeSecurityGroupIngress",
+ "ec2:DescribeVpcs",
+ "elasticloadbalancing:AddTags",
+ "elasticloadbalancing:AttachLoadBalancerToSubnets",
+ "elasticloadbalancing:ApplySecurityGroupsToLoadBalancer",
+ "elasticloadbalancing:CreateLoadBalancer",
+ "elasticloadbalancing:CreateLoadBalancerPolicy",
+ "elasticloadbalancing:CreateLoadBalancerListeners",
+ "elasticloadbalancing:ConfigureHealthCheck",
+ "elasticloadbalancing:DeleteLoadBalancer",
+ "elasticloadbalancing:DeleteLoadBalancerListeners",
+ "elasticloadbalancing:DescribeLoadBalancers",
+ "elasticloadbalancing:DescribeLoadBalancerAttributes",
+ "elasticloadbalancing:DetachLoadBalancerFromSubnets",
+ "elasticloadbalancing:DeregisterInstancesFromLoadBalancer",
+ "elasticloadbalancing:ModifyLoadBalancerAttributes",
+ "elasticloadbalancing:RegisterInstancesWithLoadBalancer",
+ "elasticloadbalancing:SetLoadBalancerPoliciesForBackendServer",
+ "elasticloadbalancing:AddTags",
+ "elasticloadbalancing:CreateListener",
+ "elasticloadbalancing:CreateTargetGroup",
+ "elasticloadbalancing:DeleteListener",
+ "elasticloadbalancing:DeleteTargetGroup",
+ "elasticloadbalancing:DeregisterTargets",
+ "elasticloadbalancing:DescribeListeners",
+ "elasticloadbalancing:DescribeLoadBalancerPolicies",
+ "elasticloadbalancing:DescribeTargetGroups",
+ "elasticloadbalancing:DescribeTargetHealth",
+ "elasticloadbalancing:ModifyListener",
+ "elasticloadbalancing:ModifyTargetGroup",
+ "elasticloadbalancing:RegisterTargets",
+ "elasticloadbalancing:SetLoadBalancerPoliciesOfListener",
+ "iam:CreateServiceLinkedRole",
+ "kms:DescribeKey"
+ ],
+ "Resource": [
+ "*"
+ ],
+ "Effect": "Allow"
+ }
+ ]
+ }
+ maxLength: 2048
+ type: string
+ networkARN:
+ description: "networkARN is an ARN value referencing a
+ role appropriate for the Network Operator.\n\nThe following
+ is an example of a valid policy document:\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"ec2:DescribeInstances\",\n
+ \ \"ec2:DescribeInstanceStatus\",\n \"ec2:DescribeInstanceTypes\",\n
+ \ \"ec2:UnassignPrivateIpAddresses\",\n \"ec2:AssignPrivateIpAddresses\",\n
+ \ \"ec2:UnassignIpv6Addresses\",\n \"ec2:AssignIpv6Addresses\",\n
+ \ \"ec2:DescribeSubnets\",\n \"ec2:DescribeNetworkInterfaces\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ nodePoolManagementARN:
+ description: "nodePoolManagementARN is an ARN value referencing
+ a role appropriate for the CAPI Controller.\n\nThe following
+ is an example of a valid policy document:\n\n{\n \"Version\":
+ \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\":
+ [\n \"ec2:AssociateRouteTable\",\n \"ec2:AttachInternetGateway\",\n
+ \ \"ec2:AuthorizeSecurityGroupIngress\",\n \"ec2:CreateInternetGateway\",\n
+ \ \"ec2:CreateNatGateway\",\n \"ec2:CreateRoute\",\n
+ \ \"ec2:CreateRouteTable\",\n \"ec2:CreateSecurityGroup\",\n
+ \ \"ec2:CreateSubnet\",\n \"ec2:CreateTags\",\n
+ \ \"ec2:DeleteInternetGateway\",\n \"ec2:DeleteNatGateway\",\n
+ \ \"ec2:DeleteRouteTable\",\n \"ec2:DeleteSecurityGroup\",\n
+ \ \"ec2:DeleteSubnet\",\n \"ec2:DeleteTags\",\n
+ \ \"ec2:DescribeAccountAttributes\",\n \"ec2:DescribeAddresses\",\n
+ \ \"ec2:DescribeAvailabilityZones\",\n \"ec2:DescribeImages\",\n
+ \ \"ec2:DescribeInstances\",\n \"ec2:DescribeInternetGateways\",\n
+ \ \"ec2:DescribeNatGateways\",\n \"ec2:DescribeNetworkInterfaces\",\n
+ \ \"ec2:DescribeNetworkInterfaceAttribute\",\n
+ \ \"ec2:DescribeRouteTables\",\n \"ec2:DescribeSecurityGroups\",\n
+ \ \"ec2:DescribeSubnets\",\n \"ec2:DescribeVpcs\",\n
+ \ \"ec2:DescribeVpcAttribute\",\n \"ec2:DescribeVolumes\",\n
+ \ \"ec2:DetachInternetGateway\",\n \"ec2:DisassociateRouteTable\",\n
+ \ \"ec2:DisassociateAddress\",\n \"ec2:ModifyInstanceAttribute\",\n
+ \ \"ec2:ModifyNetworkInterfaceAttribute\",\n \"ec2:ModifySubnetAttribute\",\n
+ \ \"ec2:RevokeSecurityGroupIngress\",\n \"ec2:RunInstances\",\n
+ \ \"ec2:TerminateInstances\",\n \"tag:GetResources\",\n
+ \ \"ec2:CreateLaunchTemplate\",\n \"ec2:CreateLaunchTemplateVersion\",\n
+ \ \"ec2:DescribeLaunchTemplates\",\n \"ec2:DescribeLaunchTemplateVersions\",\n
+ \ \"ec2:DeleteLaunchTemplate\",\n \"ec2:DeleteLaunchTemplateVersions\"\n
+ \ ],\n \"Resource\": [\n \"*\"\n ],\n
+ \ \"Effect\": \"Allow\"\n },\n {\n \"Condition\":
+ {\n \"StringLike\": {\n \"iam:AWSServiceName\":
+ \"elasticloadbalancing.amazonaws.com\"\n }\n },\n
+ \ \"Action\": [\n \"iam:CreateServiceLinkedRole\"\n
+ \ ],\n \"Resource\": [\n \"arn:*:iam::*:role/aws-service-role/elasticloadbalancing.amazonaws.com/AWSServiceRoleForElasticLoadBalancing\"\n
+ \ ],\n \"Effect\": \"Allow\"\n },\n {\n \"Action\":
+ [\n \"iam:PassRole\"\n ],\n \"Resource\":
+ [\n \"arn:*:iam::*:role/*-worker-role\"\n ],\n
+ \ \"Effect\": \"Allow\"\n },\n\t {\n\t \t\"Effect\":
+ \"Allow\",\n\t \t\"Action\": [\n\t \t\t\"kms:Decrypt\",\n\t
+ \ \t\t\"kms:ReEncrypt\",\n\t \t\t\"kms:GenerateDataKeyWithoutPlainText\",\n\t
+ \ \t\t\"kms:DescribeKey\"\n\t \t],\n\t \t\"Resource\":
+ \"*\"\n\t },\n\t {\n\t \t\"Effect\": \"Allow\",\n\t
+ \ \t\"Action\": [\n\t \t\t\"kms:CreateGrant\"\n\t \t],\n\t
+ \ \t\"Resource\": \"*\",\n\t \t\"Condition\": {\n\t
+ \ \t\t\"Bool\": {\n\t \t\t\t\"kms:GrantIsForAWSResource\":
+ true\n\t \t\t}\n\t \t}\n\t }\n ]\n}"
+ maxLength: 2048
+ type: string
+ storageARN:
+ description: "storageARN is an ARN value referencing a
+ role appropriate for the Storage Operator.\n\nThe following
+ is an example of a valid policy document:\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"ec2:AttachVolume\",\n\t\t\t\t\"ec2:CreateSnapshot\",\n\t\t\t\t\"ec2:CreateTags\",\n\t\t\t\t\"ec2:CreateVolume\",\n\t\t\t\t\"ec2:DeleteSnapshot\",\n\t\t\t\t\"ec2:DeleteTags\",\n\t\t\t\t\"ec2:DeleteVolume\",\n\t\t\t\t\"ec2:DescribeInstances\",\n\t\t\t\t\"ec2:DescribeSnapshots\",\n\t\t\t\t\"ec2:DescribeTags\",\n\t\t\t\t\"ec2:DescribeVolumes\",\n\t\t\t\t\"ec2:DescribeVolumesModifications\",\n\t\t\t\t\"ec2:DetachVolume\",\n\t\t\t\t\"ec2:ModifyVolume\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ required:
+ - controlPlaneOperatorARN
+ - imageRegistryARN
+ - ingressARN
+ - kubeCloudControllerARN
+ - networkARN
+ - nodePoolManagementARN
+ - storageARN
+ type: object
+ serviceEndpoints:
+ description: |-
+ serviceEndpoints specifies optional custom endpoints which will override
+ the default service endpoint of specific AWS Services.
+
+ There must be only one ServiceEndpoint for a given service name.
+ items:
+ description: |-
+ AWSServiceEndpoint stores the configuration for services to
+ override existing defaults of AWS Services.
+ properties:
+ name:
+ description: |-
+ name is the name of the AWS service.
+ This must be provided and cannot be empty.
+ maxLength: 255
+ type: string
+ url:
+ description: |-
+ url is fully qualified URI with scheme https, that overrides the default generated
+ endpoint for a client.
+ This must be provided and cannot be empty.
+ maxLength: 2048
+ pattern: ^https://
+ type: string
+ required:
+ - name
+ - url
+ type: object
+ maxItems: 50
+ type: array
+ sharedVPC:
+ description: |-
+ sharedVPC contains fields that must be specified if the HostedCluster must use a VPC that is
+ created in a different AWS account and is shared with the AWS account where the HostedCluster
+ will be created.
+ properties:
+ localZoneID:
+ description: |-
+ localZoneID is the ID of the route53 hosted zone for [cluster-name].hypershift.local that is
+ associated with the HostedCluster's VPC and exists in the VPC owner account.
+ maxLength: 32
+ type: string
+ rolesRef:
+ description: |-
+ rolesRef contains references to roles in the VPC owner account that enable a
+ HostedCluster on a shared VPC.
+ properties:
+ controlPlaneARN:
+ description: "controlPlaneARN is an ARN value referencing
+ the role in the VPC owner account that allows\nthe
+ control plane operator in the cluster account to
+ create and manage a VPC endpoint, its\ncorresponding
+ Security Group, and DNS records in the hypershift
+ local hosted zone.\n\nThe referenced role must have
+ a trust relationship that allows it to be assumed
+ by the\ncontrol plane operator role in the VPC creator
+ account.\nExample:\n{\n\t \"Version\": \"2012-10-17\",\n\t
+ \"Statement\": [\n\t \t{\n\t \t\t\"Sid\": \"Statement1\",\n\t
+ \t\t\"Effect\": \"Allow\",\n\t \t\t\"Principal\":
+ {\n\t \t\t\t\"AWS\": \"arn:aws:iam::[cluster-creator-account-id]:role/[infra-id]-control-plane-operator\"\n\t
+ \t\t},\n\t \t\t\"Action\": \"sts:AssumeRole\"\n\t
+ \t}\n\t ]\n}\n\nThe following is an example of the
+ policy document for this role.\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"ec2:CreateVpcEndpoint\",\n\t\t\t\t\"ec2:DescribeVpcEndpoints\",\n\t\t\t\t\"ec2:ModifyVpcEndpoint\",\n\t\t\t\t\"ec2:DeleteVpcEndpoints\",\n\t\t\t\t\"ec2:CreateTags\",\n\t\t\t\t\"route53:ListHostedZones\",\n\t\t\t\t\"ec2:CreateSecurityGroup\",\n\t\t\t\t\"ec2:AuthorizeSecurityGroupIngress\",\n\t\t\t\t\"ec2:AuthorizeSecurityGroupEgress\",\n\t\t\t\t\"ec2:DeleteSecurityGroup\",\n\t\t\t\t\"ec2:RevokeSecurityGroupIngress\",\n\t\t\t\t\"ec2:RevokeSecurityGroupEgress\",\n\t\t\t\t\"ec2:DescribeSecurityGroups\",\n\t\t\t\t\"ec2:DescribeVpcs\",\n\t\t\t\t\"route53:ChangeResourceRecordSets\",\n\t\t\t\t\"route53:ListResourceRecordSets\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ pattern: ^arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role\/.*$
+ type: string
+ ingressARN:
+ description: "ingressARN is an ARN value referencing
+ the role in the VPC owner account that allows the\ningress
+ operator in the cluster account to create and manage
+ records in the private DNS\nhosted zone.\n\nThe
+ referenced role must have a trust relationship that
+ allows it to be assumed by the\ningress operator
+ role in the VPC creator account.\nExample:\n{\n\t
+ \"Version\": \"2012-10-17\",\n\t \"Statement\":
+ [\n\t \t{\n\t \t\t\"Sid\": \"Statement1\",\n\t \t\t\"Effect\":
+ \"Allow\",\n\t \t\t\"Principal\": {\n\t \t\t\t\"AWS\":
+ \"arn:aws:iam::[cluster-creator-account-id]:role/[infra-id]-openshift-ingress\"\n\t
+ \t\t},\n\t \t\t\"Action\": \"sts:AssumeRole\"\n\t
+ \t}\n\t ]\n}\n\nThe following is an example of the
+ policy document for this role.\n(Based on https://docs.openshift.com/rosa/rosa_install_access_delete_clusters/rosa-shared-vpc-config.html#rosa-sharing-vpc-dns-and-roles_rosa-shared-vpc-config)\n\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"route53:ListHostedZones\",\n\t\t\t\t\"route53:ListHostedZonesByName\",\n\t\t\t\t\"route53:ChangeTagsForResource\",\n\t\t\t\t\"route53:GetAccountLimit\",\n\t\t\t\t\"route53:GetChange\",\n\t\t\t\t\"route53:GetHostedZone\",\n\t\t\t\t\"route53:ListTagsForResource\",\n\t\t\t\t\"route53:UpdateHostedZoneComment\",\n\t\t\t\t\"tag:GetResources\",\n\t\t\t\t\"tag:UntagResources\"\n\t\t\t\t\"route53:ChangeResourceRecordSets\",\n\t\t\t\t\"route53:ListResourceRecordSets\"\n\t\t\t],\n\t\t\t\"Resource\":
+ \"*\"\n\t\t},\n\t]\n}"
+ maxLength: 2048
+ pattern: ^arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role\/.*$
+ type: string
+ required:
+ - controlPlaneARN
+ - ingressARN
+ type: object
+ required:
+ - localZoneID
+ - rolesRef
+ type: object
+ terminationHandlerQueueURL:
+ description: |-
+ terminationHandlerQueueURL specifies the SQS queue URL for EC2 spot interruption events.
+ This is required when using spot instances (marketType: Spot) in NodePools to enable
+ graceful handling of spot instance terminations.
+
+ The queue should be configured to receive EC2 Spot Instance Interruption Warnings
+ and EC2 Instance Rebalance Recommendations via EventBridge rules.
+ The AWS Node Termination Handler will poll this queue and cordon/drain nodes
+ before they are terminated, providing a best effort for graceful shutdown.
+
+ Supports both standard and FIFO queues (FIFO queues end with .fifo suffix).
+ maxLength: 512
+ pattern: ^https://sqs\.[a-z0-9-]+\.amazonaws\.com/[0-9]{12}/[a-zA-Z0-9_-]+(\.fifo)?$
+ type: string
+ required:
+ - region
+ - rolesRef
+ type: object
+ azure:
+ description: azure defines azure specific settings
+ properties:
+ azureAuthenticationConfig:
+ description: |-
+ azureAuthenticationConfig is the type of Azure authentication configuration to use to authenticate with Azure's
+ Cloud API.
+ properties:
+ azureAuthenticationConfigType:
+ description: |-
+ azureAuthenticationConfigType is the type of identity configuration used in the Hosted Cluster. This field is
+ used to determine which identity configuration is being used. Valid values are "ManagedIdentities" and
+ "WorkloadIdentities".
+ enum:
+ - ManagedIdentities
+ - WorkloadIdentities
+ type: string
+ managedIdentities:
+ description: |-
+ managedIdentities contains the managed identities needed for HCP control plane and data plane components that
+ authenticate with Azure's API.
+
+ These are required for managed Azure, also known as ARO HCP.
+ properties:
+ controlPlane:
+ description: |-
+ controlPlane contains the client IDs of all the managed identities on the HCP control plane needing to
+ authenticate with Azure's API.
+ properties:
+ cloudProvider:
+ description: |-
+ cloudProvider is a pre-existing managed identity associated with the azure cloud provider, aka cloud controller
+ manager.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ controlPlaneOperator:
+ description: controlPlaneOperator is a pre-existing
+ managed identity associated with the control
+ plane operator.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ disk:
+ description: disk is a pre-existing managed identity
+ associated with the azure-disk-controller.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ file:
+ description: file is a pre-existing managed identity
+ associated with the azure-disk-controller.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ imageRegistry:
+ description: imageRegistry is a pre-existing managed
+ identity associated with the cluster-image-registry-operator.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ ingress:
+ description: ingress is a pre-existing managed
+ identity associated with the cluster-ingress-operator.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ managedIdentitiesKeyVault:
+ description: |-
+ managedIdentitiesKeyVault contains information on the management cluster's managed identities Azure Key Vault.
+ This Key Vault is where the managed identities certificates are stored. These certificates are pulled out of the
+ Key Vault by the Secrets Store CSI driver and mounted into a volume on control plane pods requiring
+ authentication with Azure API.
+
+ More information on how the Secrets Store CSI driver works to do this can be found here:
+ https://learn.microsoft.com/en-us/azure/aks/csi-secrets-store-driver.
+ properties:
+ name:
+ description: name is the name of the Azure
+ Key Vault on the management cluster.
+ maxLength: 255
+ type: string
+ tenantID:
+ description: tenantID is the tenant ID of
+ the Azure Key Vault on the management cluster.
+ maxLength: 255
+ type: string
+ required:
+ - name
+ - tenantID
+ type: object
+ network:
+ description: network is a pre-existing managed
+ identity associated with the cluster-network-operator.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ nodePoolManagement:
+ description: nodePoolManagement is a pre-existing
+ managed identity associated with the operator
+ managing the NodePools.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ required:
+ - cloudProvider
+ - controlPlaneOperator
+ - disk
+ - file
+ - ingress
+ - managedIdentitiesKeyVault
+ - network
+ - nodePoolManagement
+ type: object
+ dataPlane:
+ description: |-
+ dataPlane contains the client IDs of all the managed identities on the data plane needing to authenticate with
+ Azure's API.
+ properties:
+ diskMSIClientID:
+ description: diskMSIClientID is the client ID
+ of a pre-existing managed identity ID associated
+ with the CSI Disk driver.
+ maxLength: 255
+ type: string
+ fileMSIClientID:
+ description: fileMSIClientID is the client ID
+ of a pre-existing managed identity ID associated
+ with the CSI File driver.
+ maxLength: 255
+ type: string
+ imageRegistryMSIClientID:
+ description: |-
+ imageRegistryMSIClientID is the client ID of a pre-existing managed identity ID associated with the image
+ registry controller.
+ maxLength: 255
+ type: string
+ required:
+ - diskMSIClientID
+ - fileMSIClientID
+ - imageRegistryMSIClientID
+ type: object
+ required:
+ - controlPlane
+ - dataPlane
+ type: object
+ workloadIdentities:
+ description: |-
+ workloadIdentities is a struct of client IDs for each component that needs to authenticate with Azure's API in
+ self-managed Azure. These client IDs are used to authenticate with Azure cloud on both the control plane and data
+ plane.
+
+ This is required for self-managed Azure.
+ properties:
+ cloudProvider:
+ description: |-
+ cloudProvider is the client ID of a federated managed identity, associated with azure-cloud-provider, used in
+ workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ disk:
+ description: |-
+ disk is the client ID of a federated managed identity, associated with cluster-storage-operator-disk,
+ used in workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ file:
+ description: |-
+ file is the client ID of a federated managed identity, associated with cluster-storage-operator-file,
+ used in workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ imageRegistry:
+ description: |-
+ imageRegistry is the client ID of a federated managed identity, associated with cluster-image-registry-operator, used in
+ workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ ingress:
+ description: |-
+ ingress is the client ID of a federated managed identity, associated with cluster-ingress-operator, used in
+ workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ network:
+ description: |-
+ network is the client ID of a federated managed identity, associated with cluster-network-operator, used in
+ workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ nodePoolManagement:
+ description: |-
+ nodePoolManagement is the client ID of a federated managed identity, associated with cluster-api-provider-azure, used
+ in workload identity authentication.
+ properties:
+ clientID:
+ description: clientID is client ID of a federated
+ managed identity used in workload identity authentication
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity
+ must be a valid UUID. It should be 5 groups
+ of hyphen separated hexadecimal characters
+ in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ required:
+ - clientID
+ type: object
+ required:
+ - cloudProvider
+ - disk
+ - file
+ - imageRegistry
+ - ingress
+ - network
+ - nodePoolManagement
+ type: object
+ required:
+ - azureAuthenticationConfigType
+ type: object
+ x-kubernetes-validations:
+ - message: managedIdentities is required when azureAuthenticationConfigType
+ is ManagedIdentities, and forbidden otherwise
+ rule: 'self.azureAuthenticationConfigType == ''ManagedIdentities''
+ ? has(self.managedIdentities) : !has(self.managedIdentities)'
+ - message: workloadIdentities is required when azureAuthenticationConfigType
+ is WorkloadIdentities, and forbidden otherwise
+ rule: 'self.azureAuthenticationConfigType == ''WorkloadIdentities''
+ ? has(self.workloadIdentities) : !has(self.workloadIdentities)'
+ cloud:
+ default: AzurePublicCloud
+ description: 'cloud is the cloud environment identifier, valid
+ values could be found here: https://github.com/Azure/go-autorest/blob/4c0e21ca2bbb3251fe7853e6f9df6397f53dd419/autorest/azure/environments.go#L33'
+ enum:
+ - AzurePublicCloud
+ - AzureUSGovernmentCloud
+ - AzureChinaCloud
+ - AzureGermanCloud
+ - AzureStackCloud
+ type: string
+ location:
+ description: |-
+ location is the Azure region in where all the cloud infrastructure resources will be created.
+
+ Example: eastus
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: Location is immutable
+ rule: self == oldSelf
+ resourceGroup:
+ default: default
+ description: |-
+ resourceGroup is the name of an existing resource group where all cloud resources created by the Hosted
+ Cluster are to be placed. The resource group is expected to exist under the same subscription as SubscriptionID.
+
+ In ARO HCP, this will be the managed resource group where customer cloud resources will be created.
+
+ Resource group naming requirements can be found here: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.ResourceGroup.Name/.
+
+ Example: if your resource group ID is /subscriptions//resourceGroups/, your
+ ResourceGroupName is .
+ maxLength: 90
+ pattern: ^[a-zA-Z0-9_()\-\.]{1,89}[a-zA-Z0-9_()\-]$
+ type: string
+ x-kubernetes-validations:
+ - message: ResourceGroupName is immutable
+ rule: self == oldSelf
+ securityGroupID:
+ description: |-
+ securityGroupID is the ID of an existing security group on the SubnetID. This field is provided as part of the
+ configuration for the Azure cloud provider, aka Azure cloud controller manager (CCM). This security group is
+ expected to exist under the same subscription as SubscriptionID.
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: SecurityGroupID is immutable
+ rule: self == oldSelf
+ subnetID:
+ description: |-
+ subnetID is the subnet ID of an existing subnet where the nodes in the nodepool will be created. This can be a
+ different subnet than the one listed in the HostedCluster, HostedCluster.Spec.Platform.Azure.SubnetID, but must
+ exist in the same network, HostedCluster.Spec.Platform.Azure.VnetID, and must exist under the same subscription ID,
+ HostedCluster.Spec.Platform.Azure.SubscriptionID.
+ subnetID is immutable once set.
+ The subnetID should be in the format `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}`.
+ The subscriptionId in the encryptionSetID must be a valid UUID. It should be 5 groups of hyphen separated hexadecimal characters in the form 8-4-4-4-12.
+ The resourceGroupName should be between 1 and 90 characters, consisting only of alphanumeric characters, hyphens, underscores, periods and parenthesis and must not end with a period (.) character.
+ The vnetName should be between 2 and 64 characters, consisting only of alphanumeric characters, hyphens, underscores and periods and must not end with either a period (.) or hyphen (-) character.
+ The subnetName should be between 1 and 80 characters, consisting only of alphanumeric characters, hyphens and underscores and must start with an alphanumeric character and must not end with a period (.) or hyphen (-) character.
+ maxLength: 355
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionSetID must be in the format `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}`
+ rule: size(self.split('/')) == 11 && self.matches('^/subscriptions/.*/resourceGroups/.*/providers/Microsoft.Network/virtualNetworks/.*/subnets/.*$')
+ - message: The resourceGroupName should be between 1 and 90
+ characters, consisting only of alphanumeric characters,
+ hyphens, underscores, periods and parenthesis
+ rule: self.split('/')[4].matches('[a-zA-Z0-9-_\\(\\)\\.]{1,90}')
+ - message: the resourceGroupName in the subnetID must not
+ end with a period (.) character
+ rule: '!self.split(''/'')[4].endsWith(''.'')'
+ - message: The vnetName should be between 2 and 64 characters,
+ consisting only of alphanumeric characters, hyphens, underscores
+ and periods
+ rule: self.split('/')[8].matches('[a-zA-Z0-9-_\\.]{2,64}')
+ - message: the vnetName in the subnetID must not end with
+ either a period (.) or hyphen (-) character
+ rule: '!self.split(''/'')[8].endsWith(''.'') && !self.split(''/'')[8].endsWith(''-'')'
+ - message: The subnetName should be between 1 and 80 characters,
+ consisting only of alphanumeric characters, hyphens and
+ underscores and must start with an alphanumeric character
+ rule: self.split('/')[10].matches('[a-zA-Z0-9][a-zA-Z0-9-_\\.]{0,79}')
+ - message: the subnetName in the subnetID must not end with
+ a period (.) or hyphen (-) character
+ rule: '!self.split(''/'')[10].endsWith(''.'') && !self.split(''/'')[10].endsWith(''-'')'
+ - message: SubnetID is immutable
+ rule: self == oldSelf
+ subscriptionID:
+ description: subscriptionID is a unique identifier for an
+ Azure subscription used to manage resources.
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: SubscriptionID is immutable
+ rule: self == oldSelf
+ tenantID:
+ description: tenantID is a unique identifier for the tenant
+ where Azure resources will be created and managed in.
+ maxLength: 255
+ type: string
+ vnetID:
+ description: |-
+ vnetID is the ID of an existing VNET to use in creating VMs. The VNET can exist in a different resource group
+ other than the one specified in ResourceGroupName, but it must exist under the same subscription as
+ SubscriptionID.
+
+ In ARO HCP, this will be the ID of the customer provided VNET.
+
+ Example: /subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: VnetID is immutable
+ rule: self == oldSelf
+ required:
+ - azureAuthenticationConfig
+ - location
+ - resourceGroup
+ - securityGroupID
+ - subnetID
+ - subscriptionID
+ - tenantID
+ - vnetID
+ type: object
+ ibmcloud:
+ description: ibmcloud defines IBMCloud specific settings for components
+ properties:
+ providerType:
+ description: providerType is a specific supported infrastructure
+ provider within IBM Cloud.
+ type: string
+ type: object
+ kubevirt:
+ description: kubevirt defines KubeVirt specific settings for cluster
+ components.
+ properties:
+ baseDomainPassthrough:
+ description: |-
+ baseDomainPassthrough toggles whether or not an automatically
+ generated base domain for the guest cluster should be used that
+ is a subdomain of the management cluster's *.apps DNS.
+
+ For the KubeVirt platform, the basedomain can be autogenerated using
+ the *.apps domain of the management/infra hosting cluster
+ This makes the guest cluster's base domain a subdomain of the
+ hypershift infra/mgmt cluster's base domain.
+
+ Example:
+ Infra/Mgmt cluster's DNS
+ Base: example.com
+ Cluster: mgmt-cluster.example.com
+ Apps: *.apps.mgmt-cluster.example.com
+ KubeVirt Guest cluster's DNS
+ Base: apps.mgmt-cluster.example.com
+ Cluster: guest.apps.mgmt-cluster.example.com
+ Apps: *.apps.guest.apps.mgmt-cluster.example.com
+
+ This is possible using OCP wildcard routes
+ type: boolean
+ x-kubernetes-validations:
+ - message: baseDomainPassthrough is immutable
+ rule: self == oldSelf
+ credentials:
+ description: |-
+ credentials defines the client credentials used when creating KubeVirt virtual machines.
+ Defining credentials is only necessary when the KubeVirt virtual machines are being placed
+ on a cluster separate from the one hosting the Hosted Control Plane components.
+
+ The default behavior when Credentials is not defined is for the KubeVirt VMs to be placed on
+ the same cluster and namespace as the Hosted Control Plane.
+ properties:
+ infraKubeConfigSecret:
+ description: |-
+ infraKubeConfigSecret is a reference to the secret containing the kubeconfig
+ of an external infrastructure cluster for kubevirt provider
+ properties:
+ key:
+ description: key is the key in the secret containing
+ the kubeconfig.
+ maxLength: 255
+ type: string
+ name:
+ description: name is the name of the secret containing
+ the kubeconfig.
+ maxLength: 255
+ type: string
+ required:
+ - key
+ - name
+ type: object
+ x-kubernetes-validations:
+ - message: infraKubeConfigSecret is immutable
+ rule: self == oldSelf
+ infraNamespace:
+ description: |-
+ infraNamespace is the namespace in the external infrastructure cluster
+ where kubevirt resources will be created
+ maxLength: 255
+ type: string
+ x-kubernetes-validations:
+ - message: infraNamespace is immutable
+ rule: self == oldSelf
+ required:
+ - infraNamespace
+ type: object
+ generateID:
+ description: |-
+ generateID is used to uniquely apply a name suffix to resources associated with
+ kubevirt infrastructure resources
+ maxLength: 11
+ type: string
+ x-kubernetes-validations:
+ - message: Kubevirt GenerateID is immutable once set
+ rule: self == oldSelf
+ storageDriver:
+ description: |-
+ storageDriver defines how the KubeVirt CSI driver exposes StorageClasses on
+ the infra cluster (hosting the VMs) to the guest cluster.
+ properties:
+ manual:
+ description: |-
+ manual is used to explicitly define how the infra storageclasses are
+ mapped to guest storageclasses
+ properties:
+ storageClassMapping:
+ description: |-
+ storageClassMapping maps StorageClasses on the infra cluster hosting
+ the KubeVirt VMs to StorageClasses that are made available within the
+ Guest Cluster.
+
+ NOTE: It is possible that not all capabilities of an infra cluster's
+ storageclass will be present for the corresponding guest clusters storageclass.
+ items:
+ properties:
+ group:
+ description: group contains which group this
+ mapping belongs to.
+ maxLength: 255
+ type: string
+ guestStorageClassName:
+ description: |-
+ guestStorageClassName is the name that the corresponding storageclass will
+ be called within the guest cluster
+ maxLength: 255
+ type: string
+ infraStorageClassName:
+ description: |-
+ infraStorageClassName is the name of the infra cluster storage class that
+ will be exposed to the guest.
+ maxLength: 255
+ type: string
+ required:
+ - guestStorageClassName
+ - infraStorageClassName
+ type: object
+ maxItems: 50
+ type: array
+ x-kubernetes-validations:
+ - message: storageClassMapping is immutable
+ rule: self == oldSelf
+ volumeSnapshotClassMapping:
+ description: |-
+ volumeSnapshotClassMapping maps VolumeSnapshotClasses on the infra cluster hosting
+ the KubeVirt VMs to VolumeSnapshotClasses that are made available within the
+ Guest Cluster.
+ items:
+ properties:
+ group:
+ description: group contains which group this
+ mapping belongs to.
+ maxLength: 255
+ type: string
+ guestVolumeSnapshotClassName:
+ description: |-
+ guestVolumeSnapshotClassName is the name that the corresponding volumeSnapshotClass will
+ be called within the guest cluster
+ maxLength: 255
+ type: string
+ infraVolumeSnapshotClassName:
+ description: |-
+ infraVolumeSnapshotClassName is the name of the infra cluster volume snapshot class that
+ will be exposed to the guest.
+ maxLength: 255
+ type: string
+ required:
+ - guestVolumeSnapshotClassName
+ - infraVolumeSnapshotClassName
+ type: object
+ maxItems: 50
+ type: array
+ x-kubernetes-validations:
+ - message: volumeSnapshotClassMapping is immutable
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: storageDriver.Manual is immutable
+ rule: self == oldSelf
+ type:
+ default: Default
+ description: type represents the type of kubevirt csi
+ driver configuration to use
+ enum:
+ - None
+ - Default
+ - Manual
+ type: string
+ x-kubernetes-validations:
+ - message: storageDriver.Type is immutable
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: storageDriver is immutable
+ rule: self == oldSelf
+ type: object
+ x-kubernetes-validations:
+ - message: Kubevirt GenerateID is required once set
+ rule: '!has(oldSelf.generateID) || has(self.generateID)'
+ powervs:
+ description: |-
+ powervs specifies configuration for clusters running on IBMCloud Power VS Service.
+ This field is immutable. Once set, it cannot be changed.
+ properties:
+ accountID:
+ description: |-
+ accountID is the IBMCloud account id.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ cisInstanceCRN:
+ description: |-
+ cisInstanceCRN is the IBMCloud CIS Service Instance's Cloud Resource Name
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ pattern: '^crn:'
+ type: string
+ imageRegistryOperatorCloudCreds:
+ description: |-
+ imageRegistryOperatorCloudCreds is a reference to a secret containing IBM Cloud
+ credentials for the image registry operator to get authenticated with IBM Cloud.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Cloud Object Storage: Administrator (platform) and Manager (service) roles
+ - Attribute: serviceName=cloud-object-storage
+ - Roles: crn:v1:bluemix:public:iam::::role:Administrator,
+ crn:v1:bluemix:public:iam::::serviceRole:Manager
+
+ 2. Resource Group: Viewer role
+ - Attribute: resourceType=resource-group
+ - Role: crn:v1:bluemix:public:iam::::role:Viewer
+ 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
+ ingressOperatorCloudCreds:
+ description: |-
+ ingressOperatorCloudCreds is a reference to a secret containing IBM Cloud
+ credentials for the ingress operator to get authenticated with IBM Cloud.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Internet Services (CIS): Manager service role and Editor role
+ - Attribute: serviceName=internet-svcs
+ - Roles: crn:v1:bluemix:public:iam::::serviceRole:Manager,
+ crn:v1:bluemix:public:iam::::role:Editor
+ 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
+ kubeCloudControllerCreds:
+ description: |-
+ kubeCloudControllerCreds is a reference to a secret containing cloud
+ credentials with permissions matching the cloud controller policy.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Resource Group: Viewer role
+ - Attribute: resourceType=resource-group
+ - Role: crn:v1:bluemix:public:iam::::role:Viewer
+
+ 2. VPC Infrastructure Services: Editor, Operator, and Viewer roles
+ - Attribute: serviceName=is
+ - Roles: crn:v1:bluemix:public:iam::::role:Editor,
+ crn:v1:bluemix:public:iam::::role:Operator,
+ crn:v1:bluemix:public:iam::::role:Viewer
+
+ 3. Power Virtual Server (PowerVS): Viewer role, Reader and Manager service roles
+ (scoped to the PowerVS service instance identified by `serviceInstanceID`)
+ - Attributes: serviceName=power-iaas,
+ serviceInstance={serviceInstanceID}
+ - Roles: crn:v1:bluemix:public:iam::::role:Viewer,
+ crn:v1:bluemix:public:iam::::serviceRole:Reader,
+ crn:v1:bluemix:public:iam::::serviceRole:Manager
+ 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
+ nodePoolManagementCreds:
+ description: |-
+ nodePoolManagementCreds is a reference to a secret containing cloud
+ credentials with permissions matching the node pool management policy.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Power Virtual Server (PowerVS): Manager service role and Editor role
+ (scoped to the PowerVS service instance identified by `serviceInstanceID`)
+ - Attributes: serviceName=power-iaas,
+ serviceInstance={serviceInstanceID}
+ - Roles: crn:v1:bluemix:public:iam::::serviceRole:Manager,
+ crn:v1:bluemix:public:iam::::role:Editor
+ 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
+ region:
+ description: |-
+ region is the IBMCloud region in which the cluster resides. This configures the
+ OCP control plane cloud integrations, and is used by NodePool to resolve
+ the correct boot image for a given release.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ resourceGroup:
+ description: |-
+ resourceGroup is the IBMCloud Resource Group in which the cluster resides.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ serviceInstanceID:
+ description: |-
+ serviceInstanceID is the reference to the Power VS service on which the server instance(VM) will be created.
+ Power VS service is a container for all Power VS instances at a specific geographic region.
+ serviceInstance can be created via IBM Cloud catalog or CLI.
+ ServiceInstanceID is the unique identifier that can be obtained from IBM Cloud UI or IBM Cloud cli.
+
+ More detail about Power VS service instance.
+ https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-creating-power-virtual-server
+
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ storageOperatorCloudCreds:
+ description: |-
+ storageOperatorCloudCreds is a reference to a secret containing IBM Cloud
+ credentials for the storage operator to get authenticated with IBM Cloud.
+ This field is immutable. Once set, it cannot be changed.
+
+ The secret must contain the key `ibmcloud_api_key` whose value is
+ an IBM Cloud API key with the following IAM policies:
+
+ 1. Power Virtual Server (PowerVS): Manager service role and Editor role
+ (scoped to the PowerVS service instance identified by `serviceInstanceID`)
+ - Attributes: serviceName=power-iaas,
+ serviceInstance={serviceInstanceID}
+ - Roles: crn:v1:bluemix:public:iam::::serviceRole:Manager,
+ crn:v1:bluemix:public:iam::::role:Editor
+
+ 2. Resource Group: Viewer role
+ - Attribute: resourceType=resource-group
+ - Role: crn:v1:bluemix:public:iam::::role:Viewer
+ 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
+ subnet:
+ description: |-
+ subnet is the subnet to use for control plane cloud resources.
+ This field is immutable. Once set, it cannot be changed.
+ properties:
+ id:
+ description: id of resource
+ maxLength: 255
+ type: string
+ name:
+ description: name of resource
+ maxLength: 255
+ type: string
+ type: object
+ vpc:
+ description: |-
+ vpc specifies IBM Cloud PowerVS Load Balancing configuration for the control
+ plane.
+ This field is immutable. Once set, it cannot be changed.
+ properties:
+ name:
+ description: |-
+ name for VPC to used for all the service load balancer.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ region:
+ description: |-
+ region is the IBMCloud region in which VPC gets created, this VPC used for all the ingress traffic
+ into the OCP cluster.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ subnet:
+ description: |-
+ subnet is the subnet to use for load balancer.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ zone:
+ description: |-
+ zone is the availability zone where load balancer cloud resources are
+ created.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ required:
+ - name
+ - region
+ type: object
+ zone:
+ description: |-
+ zone is the availability zone where control plane cloud resources are
+ created.
+ This field is immutable. Once set, it cannot be changed.
+ maxLength: 255
+ type: string
+ required:
+ - accountID
+ - cisInstanceCRN
+ - imageRegistryOperatorCloudCreds
+ - ingressOperatorCloudCreds
+ - kubeCloudControllerCreds
+ - nodePoolManagementCreds
+ - region
+ - resourceGroup
+ - serviceInstanceID
+ - storageOperatorCloudCreds
+ - subnet
+ - vpc
+ - zone
+ type: object
+ type:
+ description: type is the type of infrastructure provider for the
+ cluster.
+ maxLength: 100
+ type: string
+ x-kubernetes-validations:
+ - message: Type is immutable
+ rule: self == oldSelf
+ required:
+ - type
+ type: object
+ pullSecret:
+ description: pullSecret is a reference to a secret containing the
+ pull secret for the hosted control plane.
+ 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
+ releaseImage:
+ description: releaseImage is the release image applied to the hosted
+ control plane.
+ maxLength: 255
+ type: string
+ secretEncryption:
+ description: |-
+ secretEncryption contains metadata about the kubernetes secret encryption strategy being used for the
+ cluster when applicable.
+ properties:
+ aescbc:
+ description: aescbc defines metadata about the AESCBC secret encryption
+ strategy
+ properties:
+ activeKey:
+ description: activeKey defines the active key used to encrypt
+ new secrets
+ 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
+ backupKey:
+ description: |-
+ backupKey defines the old key during the rotation process so previously created
+ secrets can continue to be decrypted until they are all re-encrypted with the active key.
+ 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
+ required:
+ - activeKey
+ type: object
+ kms:
+ description: kms defines metadata about the kms secret encryption
+ strategy
+ properties:
+ aws:
+ description: aws defines metadata about the configuration
+ of the AWS KMS Secret Encryption provider
+ properties:
+ activeKey:
+ description: activeKey defines the active key used to
+ encrypt new secrets
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the
+ encryption key
+ maxLength: 2048
+ pattern: '^arn:'
+ type: string
+ required:
+ - arn
+ type: object
+ auth:
+ description: auth defines metadata about the management
+ of credentials used to interact with AWS KMS
+ properties:
+ awsKms:
+ description: "awsKms is an ARN value referencing a
+ role appropriate for managing the auth via the AWS
+ KMS key.\n\nThe following is an example of a valid
+ policy document:\n\n{\n\t\"Version\": \"2012-10-17\",\n\t\"Statement\":
+ [\n \t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"kms:Encrypt\",\n\t\t\t\t\"kms:Decrypt\",\n\t\t\t\t\"kms:ReEncrypt*\",\n\t\t\t\t\"kms:GenerateDataKey*\",\n\t\t\t\t\"kms:DescribeKey\"\n\t\t\t],\n\t\t\t\"Resource\":
+ %q\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ required:
+ - awsKms
+ type: object
+ backupKey:
+ description: |-
+ backupKey defines the old key during the rotation process so previously created
+ secrets can continue to be decrypted until they are all re-encrypted with the active key.
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the
+ encryption key
+ maxLength: 2048
+ pattern: '^arn:'
+ type: string
+ required:
+ - arn
+ type: object
+ region:
+ description: region contains the AWS region
+ maxLength: 255
+ type: string
+ required:
+ - activeKey
+ - auth
+ - region
+ type: object
+ azure:
+ description: azure defines metadata about the configuration
+ of the Azure KMS Secret Encryption provider using Azure
+ key vault
+ properties:
+ activeKey:
+ description: activeKey defines the active key used to
+ encrypt new secrets
+ properties:
+ keyName:
+ description: keyName is the name of the keyvault key
+ used for encrypt/decrypt
+ maxLength: 255
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the keyvault. Must match criteria specified at https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name
+ Your Microsoft Entra application used to create the cluster must be authorized to access this keyvault, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the
+ key to use
+ maxLength: 255
+ type: string
+ required:
+ - keyName
+ - keyVaultName
+ - keyVersion
+ type: object
+ backupKey:
+ description: |-
+ backupKey defines the old key during the rotation process so previously created
+ secrets can continue to be decrypted until they are all re-encrypted with the active key.
+ properties:
+ keyName:
+ description: keyName is the name of the keyvault key
+ used for encrypt/decrypt
+ maxLength: 255
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the keyvault. Must match criteria specified at https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name
+ Your Microsoft Entra application used to create the cluster must be authorized to access this keyvault, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the
+ key to use
+ maxLength: 255
+ type: string
+ required:
+ - keyName
+ - keyVaultName
+ - keyVersion
+ type: object
+ keyVaultAccess:
+ description: |-
+ keyVaultAccess specifies how the Key Vault should be accessed.
+ When set to "Private", the control plane routes Key Vault traffic through
+ the private router to reach the Key Vault's private endpoint in the customer VNet.
+ When set to "Public" or omitted, the Key Vault is accessed via its public endpoint.
+ enum:
+ - Public
+ - Private
+ - ""
+ type: string
+ kms:
+ description: kms is a pre-existing managed identity used
+ to authenticate with Azure KMS.
+ properties:
+ clientID:
+ description: |-
+ clientID is the client ID of a managed identity associated with CredentialsSecretName. This field is optional and
+ mainly used for CI purposes.
+ maxLength: 36
+ minLength: 36
+ pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
+ type: string
+ x-kubernetes-validations:
+ - message: the client ID of a managed identity must
+ be a valid UUID. It should be 5 groups of hyphen
+ separated hexadecimal characters in the form 8-4-4-4-12.
+ rule: self.matches('^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$')
+ credentialsSecretName:
+ description: |-
+ credentialsSecretName is the name of an Azure Key Vault secret. This field assumes the secret contains the JSON
+ format of a UserAssignedIdentityCredentials struct. At a minimum, the secret needs to contain the ClientId,
+ ClientSecret, AuthenticationEndpoint, NotBefore, and NotAfter, and TenantId.
+
+ More info on this struct can be found here - https://github.com/Azure/msi-dataplane/blob/63fb37d3a1aaac130120624674df795d2e088083/pkg/dataplane/internal/generated_client.go#L156.
+
+ credentialsSecretName must be between 1 and 127 characters and use only alphanumeric characters and hyphens.
+ credentialsSecretName must also be unique within the Azure Key Vault. See more details here - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.KeyVault.SecretName/.
+ maxLength: 127
+ minLength: 1
+ pattern: ^[a-zA-Z0-9-]+$
+ type: string
+ objectEncoding:
+ description: |-
+ objectEncoding represents the encoding for the Azure Key Vault secret containing the certificate related to
+ the managed identity. objectEncoding needs to match the encoding format used when the certificate was stored in the
+ Azure Key Vault. If objectEncoding doesn't match the encoding format of the certificate, the certificate will
+ unsuccessfully be read by the Secrets CSI driver and an error will occur. This error will only be visible on the
+ SecretProviderClass custom resource related to the managed identity.
+
+ The default value is utf-8.
+
+ See this for more info - https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/website/content/en/getting-started/usage/_index.md
+ enum:
+ - utf-8
+ - hex
+ - base64
+ type: string
+ required:
+ - credentialsSecretName
+ - objectEncoding
+ type: object
+ required:
+ - activeKey
+ - kms
+ type: object
+ x-kubernetes-validations:
+ - message: backupKey.keyVaultName must match activeKey.keyVaultName;
+ both keys must reside in the same Key Vault
+ rule: '!has(self.backupKey) || self.backupKey.keyVaultName
+ == self.activeKey.keyVaultName'
+ ibmcloud:
+ description: ibmcloud defines metadata for the IBM Cloud KMS
+ encryption strategy
+ properties:
+ auth:
+ description: auth defines metadata for how authentication
+ is done with IBM Cloud KMS
+ properties:
+ managed:
+ description: |-
+ managed defines metadata around the service to service authentication strategy for the IBM Cloud
+ KMS system (all provider managed).
+ type: object
+ type:
+ description: type defines the IBM Cloud KMS authentication
+ strategy
+ enum:
+ - Managed
+ - Unmanaged
+ type: string
+ unmanaged:
+ description: unmanaged defines the auth metadata the
+ customer provides to interact with IBM Cloud KMS
+ properties:
+ credentials:
+ description: |-
+ credentials should reference a secret with a key field of IBMCloudIAMAPIKeySecretKey that contains a apikey to
+ call IBM Cloud KMS APIs
+ 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
+ required:
+ - credentials
+ type: object
+ required:
+ - type
+ type: object
+ keyList:
+ description: keyList defines the list of keys used for
+ data encryption
+ items:
+ description: IBMCloudKMSKeyEntry defines metadata for
+ an IBM Cloud KMS encryption key
+ properties:
+ correlationID:
+ description: correlationID is an identifier used
+ to track all api call usage from hypershift
+ maxLength: 255
+ type: string
+ crkID:
+ description: crkID is the customer rook key id
+ maxLength: 255
+ type: string
+ instanceID:
+ description: instanceID is the id for the key protect
+ instance
+ maxLength: 255
+ type: string
+ keyVersion:
+ description: |-
+ keyVersion is a unique number associated with the key. The number increments whenever a new
+ key is enabled for data encryption.
+ maximum: 2147483647
+ minimum: 0
+ type: integer
+ url:
+ description: url is the url to call key protect
+ apis over
+ maxLength: 2048
+ pattern: ^https://
+ type: string
+ required:
+ - correlationID
+ - crkID
+ - instanceID
+ - keyVersion
+ - url
+ type: object
+ maxItems: 100
+ type: array
+ region:
+ description: region is the IBM Cloud region
+ maxLength: 255
+ type: string
+ required:
+ - auth
+ - keyList
+ - region
+ type: object
+ provider:
+ description: provider defines the KMS provider
+ enum:
+ - IBMCloud
+ - AWS
+ - Azure
+ type: string
+ required:
+ - provider
+ type: object
+ type:
+ description: type defines the type of kube secret encryption being
+ used
+ enum:
+ - kms
+ - aescbc
+ type: string
+ required:
+ - type
+ type: object
+ serviceAccountSigningKey:
+ description: |-
+ serviceAccountSigningKey is a reference to a secret containing the private key
+ used by the service account token issuer. The secret is expected to contain
+ a single key named "key". If not specified, a service account signing key will
+ be generated automatically for the cluster.
+ 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
+ services:
+ description: |-
+ services defines metadata about how control plane services are published
+ in the management cluster.
+ items:
+ description: |-
+ ServicePublishingStrategyMapping specifies how individual control plane services endpoints are published for consumption.
+ This includes APIServer;OAuthServer;Konnectivity;Ignition.
+ If a given service is not present in this list, it will be exposed publicly by default.
+ properties:
+ service:
+ description: |-
+ service identifies the type of service being published.
+ It can be APIServer;OAuthServer;Konnectivity;Ignition
+ OVNSbDb;OIDC are no-op and kept for backward compatibility.
+ This field is immutable.
+ enum:
+ - APIServer
+ - OAuthServer
+ - OIDC
+ - Konnectivity
+ - Ignition
+ - OVNSbDb
+ type: string
+ servicePublishingStrategy:
+ description: servicePublishingStrategy specifies how to publish
+ a service endpoint.
+ properties:
+ loadBalancer:
+ description: loadBalancer configures exposing a service
+ using a dedicated LoadBalancer.
+ properties:
+ hostname:
+ description: |-
+ hostname is the name of the DNS record that will be created pointing to the LoadBalancer and passed through to consumers of the service.
+ If omitted, the value will be inferred from the corev1.Service Load balancer type .status.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: hostname must be a valid domain name (e.g.,
+ example.com)
+ rule: self.matches('^(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}$')
+ type: object
+ nodePort:
+ description: nodePort configures exposing a service using
+ a NodePort.
+ properties:
+ address:
+ description: address is the host/ip that the NodePort
+ service is exposed over.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: address must be a valid hostname, IPv4, or
+ IPv6 address
+ rule: self.matches('^(([a-zA-Z0-9][-a-zA-Z0-9]*\\.)+[a-zA-Z]{2,}|localhost)$')
+ || self.matches('^((\\d{1,3}\\.){3}\\d{1,3})$')
+ || self.matches('^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$')
+ port:
+ description: |-
+ port is the port of the NodePort service. If <=0, the port is dynamically
+ assigned when the service is created.
+ format: int32
+ type: integer
+ required:
+ - address
+ type: object
+ route:
+ description: |-
+ route configures exposing a service using a Route through and an ingress controller behind a cloud Load Balancer.
+ The specifics of the setup are platform dependent.
+ properties:
+ hostname:
+ description: |-
+ hostname is the name of the DNS record that will be created pointing to the Route and passed through to consumers of the service.
+ If omitted, the value will be inferred from management ingress.Spec.Domain.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: hostname must be a valid domain name (e.g.,
+ example.com)
+ rule: self.matches('^(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}$')
+ type: object
+ type:
+ description: |-
+ type is the publishing strategy used for the service.
+ It can be LoadBalancer;NodePort;Route;None;S3
+ enum:
+ - LoadBalancer
+ - NodePort
+ - Route
+ - None
+ - S3
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-validations:
+ - message: nodePort is required when type is NodePort, and forbidden
+ otherwise
+ rule: 'self.type == ''NodePort'' ? has(self.nodePort) : !has(self.nodePort)'
+ - message: only route is allowed when type is Route, and forbidden
+ otherwise
+ rule: 'self.type == ''Route'' ? !has(self.nodePort) && !has(self.loadBalancer)
+ : !has(self.route)'
+ - message: only loadBalancer is required when type is LoadBalancer,
+ and forbidden otherwise
+ rule: 'self.type == ''LoadBalancer'' ? !has(self.nodePort)
+ && !has(self.route) : !has(self.loadBalancer)'
+ - message: None does not allowed any configuration for loadBalancer,
+ nodePort, or route
+ rule: 'self.type == ''None'' ? !has(self.nodePort) && !has(self.route)
+ && !has(self.loadBalancer) : true'
+ - message: S3 does not allowed any configuration for loadBalancer,
+ nodePort, or route
+ rule: 'self.type == ''S3'' ? !has(self.nodePort) && !has(self.route)
+ && !has(self.loadBalancer) : true'
+ required:
+ - service
+ - servicePublishingStrategy
+ type: object
+ maxItems: 6
+ type: array
+ sshKey:
+ description: sshKey is a reference to a secret containing the SSH
+ key for the hosted control plane.
+ 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
+ tolerations:
+ description: tolerations when specified, define what custom tolerations
+ are added to the hcp pods.
+ 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
+ maxItems: 25
+ type: array
+ updateService:
+ description: |-
+ updateService may be used to specify the preferred upstream update service.
+ By default it will use the appropriate update service for the cluster and region.
+ type: string
+ required:
+ - dns
+ - etcd
+ - infraID
+ - issuerURL
+ - platform
+ - pullSecret
+ - releaseImage
+ - services
+ - sshKey
+ type: object
+ x-kubernetes-validations:
+ - message: spec.services in body should have at least 4 items or 3 for
+ IBMCloud
+ rule: 'self.platform.type == ''IBMCloud'' ? size(self.services) >= 3
+ : size(self.services) >= 4'
+ - message: disableMultiNetwork can only be set to true when networkType
+ is 'Other'
+ rule: '!has(self.operatorConfiguration) || !has(self.operatorConfiguration.clusterNetworkOperator)
+ || !has(self.operatorConfiguration.clusterNetworkOperator.disableMultiNetwork)
+ || !self.operatorConfiguration.clusterNetworkOperator.disableMultiNetwork
+ || self.networking.networkType == ''Other'''
+ status:
+ description: status is the status of the HostedControlPlane.
+ properties:
+ conditions:
+ description: |-
+ conditions contains details for one aspect of the current state of the HostedControlPlane.
+ Current condition types are: "Available"
+ items:
+ description: Condition contains details for one aspect of the current
+ state of this API Resource.
+ properties:
+ lastTransitionTime:
+ description: |-
+ lastTransitionTime is the 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: |-
+ message is a human readable message indicating details about the transition.
+ This may be an empty string.
+ maxLength: 32768
+ type: string
+ observedGeneration:
+ description: |-
+ observedGeneration represents the .metadata.generation that the condition was set based upon.
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+ with respect to the current state of the instance.
+ format: int64
+ minimum: 0
+ type: integer
+ reason:
+ description: |-
+ reason contains a programmatic identifier indicating the reason for the condition's last transition.
+ Producers of specific condition types may define expected values and meanings for this field,
+ and whether the values are considered a guaranteed API.
+ The value should be a CamelCase string.
+ This field may not be empty.
+ maxLength: 1024
+ minLength: 1
+ pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
+ type: string
+ status:
+ description: status of the condition, one of True, False, Unknown.
+ enum:
+ - "True"
+ - "False"
+ - Unknown
+ type: string
+ type:
+ description: type of condition in CamelCase or in foo.example.com/CamelCase.
+ maxLength: 316
+ pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
+ type: string
+ required:
+ - lastTransitionTime
+ - message
+ - reason
+ - status
+ - type
+ type: object
+ maxItems: 100
+ type: array
+ x-kubernetes-list-map-keys:
+ - type
+ x-kubernetes-list-type: map
+ configuration:
+ description: configuration contains the cluster configuration status
+ of the HostedCluster
+ properties:
+ authentication:
+ description: |-
+ authentication contains the observed authentication configuration status from the hosted cluster.
+ This field reflects the current state of the cluster authentication including OAuth metadata,
+ OIDC client status, and other authentication-related configurations.
+ properties:
+ integratedOAuthMetadata:
+ description: |-
+ integratedOAuthMetadata contains the discovery endpoint data for OAuth 2.0
+ Authorization Server Metadata for the in-cluster integrated OAuth server.
+ This discovery document can be viewed from its served location:
+ oc get --raw '/.well-known/oauth-authorization-server'
+ For further details, see the IETF Draft:
+ https://tools.ietf.org/html/draft-ietf-oauth-discovery-04#section-2
+ This contains the observed value based on cluster state.
+ An explicitly set value in spec.oauthMetadata has precedence over this field.
+ This field has no meaning if authentication spec.type is not set to IntegratedOAuth.
+ The key "oauthMetadata" is used to locate the data.
+ If the config map or expected key is not found, no metadata is served.
+ If the specified metadata is not valid, no metadata is served.
+ The namespace for this config map is openshift-config-managed.
+ properties:
+ name:
+ description: name is the metadata.name of the referenced
+ config map
+ type: string
+ required:
+ - name
+ type: object
+ type: object
+ type: object
+ controlPlaneEndpoint:
+ description: |-
+ controlPlaneEndpoint contains the endpoint information by which
+ external clients can access the control plane. This is populated
+ after the infrastructure is ready.
+ properties:
+ host:
+ description: host is the hostname on which the API server is serving.
+ maxLength: 255
+ type: string
+ port:
+ description: port is the port on which the API server is serving.
+ format: int32
+ type: integer
+ required:
+ - host
+ - port
+ type: object
+ customKubeconfig:
+ description: |-
+ customKubeconfig references an external custom kubeconfig secret.
+ This field is populated in the status when a custom kubeconfig secret has been generated
+ for the hosted cluster. It contains the name and key of the secret located in the
+ hostedCluster namespace. This field is only populated when kubeApiExternalName is set.
+ If this field is removed during a day 2 operation, the referenced secret will be deleted
+ and this field will be removed from the hostedCluster status.
+ properties:
+ key:
+ description: key is the key in the secret containing the kubeconfig.
+ maxLength: 255
+ type: string
+ name:
+ description: name is the name of the secret containing the kubeconfig.
+ maxLength: 255
+ type: string
+ required:
+ - key
+ - name
+ type: object
+ externalManagedControlPlane:
+ default: true
+ description: |-
+ externalManagedControlPlane indicates to cluster-api that the control plane
+ is managed by an external service.
+ https://github.com/kubernetes-sigs/cluster-api/blob/65e5385bffd71bf4aad3cf34a537f11b217c7fab/controllers/machine_controller.go#L468
+ type: boolean
+ initialized:
+ default: false
+ description: |-
+ initialized denotes whether or not the control plane has
+ provided a kubeadm-config.
+ Once this condition is marked true, its value is never changed. See the Ready condition for an indication of
+ the current readiness of the cluster's control plane.
+ This satisfies CAPI contract https://github.com/kubernetes-sigs/cluster-api/blob/cd3a694deac89d5ebeb888307deaa61487207aa0/controllers/cluster_controller_phases.go#L238-L252
+ type: boolean
+ kubeConfig:
+ description: |-
+ kubeConfig is a reference to the secret containing the default kubeconfig
+ for this control plane.
+ properties:
+ key:
+ description: key is the key in the secret containing the kubeconfig.
+ maxLength: 255
+ type: string
+ name:
+ description: name is the name of the secret containing the kubeconfig.
+ maxLength: 255
+ type: string
+ required:
+ - key
+ - name
+ type: object
+ kubeadminPassword:
+ description: |-
+ kubeadminPassword is a reference to the secret containing the initial kubeadmin password
+ for the guest cluster.
+ 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
+ lastReleaseImageTransitionTime:
+ description: |-
+ lastReleaseImageTransitionTime is the time of the last update to the current
+ releaseImage property.
+
+ Deprecated: Use versionStatus.history[0].startedTime instead.
+ format: date-time
+ type: string
+ nodeCount:
+ description: nodeCount tracks the number of nodes in the HostedControlPlane.
+ type: integer
+ oauthCallbackURLTemplate:
+ description: |-
+ oauthCallbackURLTemplate contains a template for the URL to use as a callback
+ for identity providers. The [identity-provider-name] placeholder must be replaced
+ with the name of an identity provider defined on the HostedCluster.
+ This is populated after the infrastructure is ready.
+ maxLength: 255
+ type: string
+ platform:
+ description: platform contains platform-specific status of the HostedCluster
+ properties:
+ aws:
+ description: aws contains platform-specific status for AWS
+ properties:
+ defaultWorkerSecurityGroupID:
+ description: |-
+ defaultWorkerSecurityGroupID is the ID of a security group created by
+ the control plane operator. It is always added to worker machines in
+ addition to any security groups specified in the NodePool.
+ maxLength: 255
+ type: string
+ type: object
+ type: object
+ ready:
+ default: false
+ description: |-
+ ready denotes that the HostedControlPlane API Server is ready to
+ receive requests
+ This satisfies CAPI contract https://github.com/kubernetes-sigs/cluster-api/blob/cd3a694deac89d5ebeb888307deaa61487207aa0/controllers/cluster_controller_phases.go#L226-L230
+ type: boolean
+ releaseImage:
+ description: |-
+ releaseImage is the release image applied to the hosted control plane.
+
+ Deprecated: Use versionStatus.desired.image instead.
+ maxLength: 255
+ type: string
+ version:
+ description: |-
+ version is the semantic version of the release applied by
+ the hosted control plane operator
+
+ Deprecated: Use versionStatus.desired.version instead.
+ maxLength: 255
+ type: string
+ versionStatus:
+ description: |-
+ versionStatus is the status of the release version applied by the
+ hosted control plane operator.
+ properties:
+ availableUpdates:
+ description: |-
+ availableUpdates contains updates recommended for this
+ cluster. Updates which appear in conditionalUpdates but not in
+ availableUpdates may expose this cluster to known issues. This list
+ may be empty if no updates are recommended, if the update service
+ is unavailable, or if an invalid channel has been specified.
+ items:
+ description: Release represents an OpenShift release image and
+ associated metadata.
+ properties:
+ channels:
+ description: |-
+ channels is the set of Cincinnati channels to which the release
+ currently belongs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: set
+ image:
+ description: |-
+ image is a container image location that contains the update. When this
+ field is part of spec, image is optional if version is specified and the
+ availableUpdates field contains a matching version.
+ type: string
+ url:
+ description: |-
+ url contains information about this release. This URL is set by
+ the 'url' metadata property on a release or the metadata returned by
+ the update API and should be displayed as a link in user
+ interfaces. The URL field may not be set for test or nightly
+ releases.
+ type: string
+ version:
+ description: |-
+ version is a semantic version identifying the update version. When this
+ field is part of spec, version is optional if image is specified.
+ type: string
+ required:
+ - image
+ - version
+ type: object
+ maxItems: 100
+ nullable: true
+ type: array
+ conditionalUpdates:
+ description: |-
+ conditionalUpdates contains the list of updates that may be
+ recommended for this cluster if it meets specific required
+ conditions. Consumers interested in the set of updates that are
+ actually recommended for this cluster should use
+ availableUpdates. This list may be empty if no updates are
+ recommended, if the update service is unavailable, or if an empty
+ or invalid channel has been specified.
+ items:
+ description: |-
+ ConditionalUpdate represents an update which is recommended to some
+ clusters on the version the current cluster is reconciling, but which
+ may not be recommended for the current cluster.
+ properties:
+ conditions:
+ description: |-
+ conditions represents the observations of the conditional update's
+ current status. Known types are:
+ * Recommended, for whether the update is recommended for the current cluster.
+ items:
+ description: Condition contains details for one aspect
+ of the current state of this API Resource.
+ properties:
+ lastTransitionTime:
+ description: |-
+ lastTransitionTime is the 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: |-
+ message is a human readable message indicating details about the transition.
+ This may be an empty string.
+ maxLength: 32768
+ type: string
+ observedGeneration:
+ description: |-
+ observedGeneration represents the .metadata.generation that the condition was set based upon.
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+ with respect to the current state of the instance.
+ format: int64
+ minimum: 0
+ type: integer
+ reason:
+ description: |-
+ reason contains a programmatic identifier indicating the reason for the condition's last transition.
+ Producers of specific condition types may define expected values and meanings for this field,
+ and whether the values are considered a guaranteed API.
+ The value should be a CamelCase string.
+ This field may not be empty.
+ maxLength: 1024
+ minLength: 1
+ pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
+ type: string
+ status:
+ description: status of the condition, one of True,
+ False, Unknown.
+ enum:
+ - "True"
+ - "False"
+ - Unknown
+ type: string
+ type:
+ description: type of condition in CamelCase or in
+ foo.example.com/CamelCase.
+ maxLength: 316
+ pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
+ type: string
+ required:
+ - lastTransitionTime
+ - message
+ - reason
+ - status
+ - type
+ type: object
+ type: array
+ x-kubernetes-list-map-keys:
+ - type
+ x-kubernetes-list-type: map
+ release:
+ description: release is the target of the update.
+ properties:
+ channels:
+ description: |-
+ channels is the set of Cincinnati channels to which the release
+ currently belongs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: set
+ image:
+ description: |-
+ image is a container image location that contains the update. When this
+ field is part of spec, image is optional if version is specified and the
+ availableUpdates field contains a matching version.
+ type: string
+ url:
+ description: |-
+ url contains information about this release. This URL is set by
+ the 'url' metadata property on a release or the metadata returned by
+ the update API and should be displayed as a link in user
+ interfaces. The URL field may not be set for test or nightly
+ releases.
+ type: string
+ version:
+ description: |-
+ version is a semantic version identifying the update version. When this
+ field is part of spec, version is optional if image is specified.
+ type: string
+ required:
+ - image
+ - version
+ type: object
+ risks:
+ description: |-
+ risks represents the range of issues associated with
+ updating to the target release. The cluster-version
+ operator will evaluate all entries, and only recommend the
+ update if there is at least one entry and all entries
+ recommend the update.
+ items:
+ description: |-
+ ConditionalUpdateRisk represents a reason and cluster-state
+ for not recommending a conditional update.
+ properties:
+ matchingRules:
+ description: |-
+ matchingRules is a slice of conditions for deciding which
+ clusters match the risk and which do not. The slice is
+ ordered by decreasing precedence. The cluster-version
+ operator will walk the slice in order, and stop after the
+ first it can successfully evaluate. If no condition can be
+ successfully evaluated, the update will not be recommended.
+ items:
+ description: |-
+ ClusterCondition is a union of typed cluster conditions. The 'type'
+ property determines which of the type-specific properties are relevant.
+ When evaluated on a cluster, the condition may match, not match, or
+ fail to evaluate.
+ properties:
+ promql:
+ description: promql represents a cluster condition
+ based on PromQL.
+ properties:
+ promql:
+ description: |-
+ promql is a PromQL query classifying clusters. This query
+ query should return a 1 in the match case and a 0 in the
+ does-not-match case. Queries which return no time
+ series, or which return values besides 0 or 1, are
+ evaluation failures.
+ type: string
+ required:
+ - promql
+ type: object
+ type:
+ description: |-
+ type represents the cluster-condition type. This defines
+ the members and semantics of any additional properties.
+ enum:
+ - Always
+ - PromQL
+ type: string
+ required:
+ - type
+ type: object
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: atomic
+ message:
+ description: |-
+ message provides additional information about the risk of
+ updating, in the event that matchingRules match the cluster
+ state. This is only to be consumed by humans. It may
+ contain Line Feed characters (U+000A), which should be
+ rendered as new lines.
+ minLength: 1
+ type: string
+ name:
+ description: |-
+ name is the CamelCase reason for not recommending a
+ conditional update, in the event that matchingRules match the
+ cluster state.
+ minLength: 1
+ type: string
+ url:
+ description: url contains information about this risk.
+ format: uri
+ minLength: 1
+ type: string
+ required:
+ - matchingRules
+ - message
+ - name
+ - url
+ type: object
+ maxItems: 200
+ minItems: 1
+ type: array
+ x-kubernetes-list-map-keys:
+ - name
+ x-kubernetes-list-type: map
+ required:
+ - release
+ - risks
+ type: object
+ maxItems: 100
+ type: array
+ x-kubernetes-list-type: atomic
+ desired:
+ description: |-
+ desired is the version that the cluster is reconciling towards.
+ If the cluster is not yet fully initialized desired will be set
+ with the information available, which may be an image or a tag.
+ properties:
+ channels:
+ description: |-
+ channels is the set of Cincinnati channels to which the release
+ currently belongs.
+ items:
+ type: string
+ type: array
+ x-kubernetes-list-type: set
+ image:
+ description: |-
+ image is a container image location that contains the update. When this
+ field is part of spec, image is optional if version is specified and the
+ availableUpdates field contains a matching version.
+ type: string
+ url:
+ description: |-
+ url contains information about this release. This URL is set by
+ the 'url' metadata property on a release or the metadata returned by
+ the update API and should be displayed as a link in user
+ interfaces. The URL field may not be set for test or nightly
+ releases.
+ type: string
+ version:
+ description: |-
+ version is a semantic version identifying the update version. When this
+ field is part of spec, version is optional if image is specified.
+ type: string
+ required:
+ - image
+ - version
+ type: object
+ history:
+ description: |-
+ history contains a list of the most recent versions applied to the cluster.
+ This value may be empty during cluster startup, and then will be updated
+ when a new update is being applied. The newest update is first in the
+ list and it is ordered by recency. Updates in the history have state
+ Completed if the rollout completed - if an update was failing or halfway
+ applied the state will be Partial. Only a limited amount of update history
+ is preserved.
+ items:
+ description: UpdateHistory is a single attempted update to the
+ cluster.
+ properties:
+ acceptedRisks:
+ description: |-
+ acceptedRisks records risks which were accepted to initiate the update.
+ For example, it may mention an Upgradeable=False or missing signature
+ that was overridden via desiredUpdate.force, or an update that was
+ initiated despite not being in the availableUpdates set of recommended
+ update targets.
+ type: string
+ completionTime:
+ description: |-
+ completionTime, if set, is when the update was fully applied. The update
+ that is currently being applied will have a null completion time.
+ Completion time will always be set for entries that are not the current
+ update (usually to the started time of the next update).
+ format: date-time
+ nullable: true
+ type: string
+ image:
+ description: |-
+ image is a container image location that contains the update. This value
+ is always populated.
+ type: string
+ startedTime:
+ description: startedTime is the time at which the update
+ was started.
+ format: date-time
+ type: string
+ state:
+ description: |-
+ state reflects whether the update was fully applied. The Partial state
+ indicates the update is not fully applied, while the Completed state
+ indicates the update was successfully rolled out at least once (all
+ parts of the update successfully applied).
+ type: string
+ verified:
+ description: |-
+ verified indicates whether the provided update was properly verified
+ before it was installed. If this is false the cluster may not be trusted.
+ Verified does not cover upgradeable checks that depend on the cluster
+ state at the time when the update target was accepted.
+ type: boolean
+ version:
+ description: |-
+ version is a semantic version identifying the update version. If the
+ requested image does not define a version, or if a failure occurs
+ retrieving the image, this value may be empty.
+ type: string
+ required:
+ - completionTime
+ - image
+ - startedTime
+ - state
+ - verified
+ type: object
+ type: array
+ observedGeneration:
+ description: |-
+ observedGeneration reports which version of the spec is being synced.
+ If this value is not equal to metadata.generation, then the desired
+ and conditions fields may represent a previous version.
+ format: int64
+ type: integer
+ required:
+ - availableUpdates
+ - desired
+ - observedGeneration
+ type: object
+ required:
+ - initialized
+ - ready
+ type: object
+ type: object
+ served: true
+ storage: true
+ subresources:
+ status: {}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackup.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackup.go
new file mode 100644
index 000000000000..6cdc3d3db6a7
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackup.go
@@ -0,0 +1,241 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+import (
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ types "k8s.io/apimachinery/pkg/types"
+ v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+)
+
+// HCPEtcdBackupApplyConfiguration represents a declarative configuration of the HCPEtcdBackup type for use
+// with apply.
+type HCPEtcdBackupApplyConfiguration struct {
+ v1.TypeMetaApplyConfiguration `json:",inline"`
+ *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *HCPEtcdBackupSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *HCPEtcdBackupStatusApplyConfiguration `json:"status,omitempty"`
+}
+
+// HCPEtcdBackup constructs a declarative configuration of the HCPEtcdBackup type for use with
+// apply.
+func HCPEtcdBackup(name, namespace string) *HCPEtcdBackupApplyConfiguration {
+ b := &HCPEtcdBackupApplyConfiguration{}
+ b.WithName(name)
+ b.WithNamespace(namespace)
+ b.WithKind("HCPEtcdBackup")
+ b.WithAPIVersion("hypershift.openshift.io/v1beta1")
+ return b
+}
+func (b HCPEtcdBackupApplyConfiguration) IsApplyConfiguration() {}
+
+// WithKind sets the Kind field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Kind field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithKind(value string) *HCPEtcdBackupApplyConfiguration {
+ b.TypeMetaApplyConfiguration.Kind = &value
+ return b
+}
+
+// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the APIVersion field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithAPIVersion(value string) *HCPEtcdBackupApplyConfiguration {
+ b.TypeMetaApplyConfiguration.APIVersion = &value
+ return b
+}
+
+// WithName sets the Name field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Name field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithName(value string) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.Name = &value
+ return b
+}
+
+// WithGenerateName sets the GenerateName field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the GenerateName field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithGenerateName(value string) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
+ return b
+}
+
+// WithNamespace sets the Namespace field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Namespace field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithNamespace(value string) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.Namespace = &value
+ return b
+}
+
+// WithUID sets the UID field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the UID field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithUID(value types.UID) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.UID = &value
+ return b
+}
+
+// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the ResourceVersion field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithResourceVersion(value string) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
+ return b
+}
+
+// WithGeneration sets the Generation field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Generation field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithGeneration(value int64) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.Generation = &value
+ return b
+}
+
+// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the CreationTimestamp field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithCreationTimestamp(value metav1.Time) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
+ return b
+}
+
+// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
+ return b
+}
+
+// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
+ return b
+}
+
+// WithLabels puts the entries into the Labels field in the declarative configuration
+// and returns the receiver, so that objects can be build by chaining "With" function invocations.
+// If called multiple times, the entries provided by each call will be put on the Labels field,
+// overwriting an existing map entries in Labels field with the same key.
+func (b *HCPEtcdBackupApplyConfiguration) WithLabels(entries map[string]string) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
+ }
+ for k, v := range entries {
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
+ }
+ return b
+}
+
+// WithAnnotations puts the entries into the Annotations field in the declarative configuration
+// and returns the receiver, so that objects can be build by chaining "With" function invocations.
+// If called multiple times, the entries provided by each call will be put on the Annotations field,
+// overwriting an existing map entries in Annotations field with the same key.
+func (b *HCPEtcdBackupApplyConfiguration) WithAnnotations(entries map[string]string) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
+ }
+ for k, v := range entries {
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
+ }
+ return b
+}
+
+// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
+// and returns the receiver, so that objects can be build by chaining "With" function invocations.
+// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
+func (b *HCPEtcdBackupApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ for i := range values {
+ if values[i] == nil {
+ panic("nil value passed to WithOwnerReferences")
+ }
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
+ }
+ return b
+}
+
+// WithFinalizers adds the given value to the Finalizers field in the declarative configuration
+// and returns the receiver, so that objects can be build by chaining "With" function invocations.
+// If called multiple times, values provided by each call will be appended to the Finalizers field.
+func (b *HCPEtcdBackupApplyConfiguration) WithFinalizers(values ...string) *HCPEtcdBackupApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ for i := range values {
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
+ }
+ return b
+}
+
+func (b *HCPEtcdBackupApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
+ if b.ObjectMetaApplyConfiguration == nil {
+ b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ }
+}
+
+// WithSpec sets the Spec field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Spec field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithSpec(value *HCPEtcdBackupSpecApplyConfiguration) *HCPEtcdBackupApplyConfiguration {
+ b.Spec = value
+ return b
+}
+
+// WithStatus sets the Status field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Status field is set to the value of the last call.
+func (b *HCPEtcdBackupApplyConfiguration) WithStatus(value *HCPEtcdBackupStatusApplyConfiguration) *HCPEtcdBackupApplyConfiguration {
+ b.Status = value
+ return b
+}
+
+// GetKind retrieves the value of the Kind field in the declarative configuration.
+func (b *HCPEtcdBackupApplyConfiguration) GetKind() *string {
+ return b.TypeMetaApplyConfiguration.Kind
+}
+
+// GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.
+func (b *HCPEtcdBackupApplyConfiguration) GetAPIVersion() *string {
+ return b.TypeMetaApplyConfiguration.APIVersion
+}
+
+// GetName retrieves the value of the Name field in the declarative configuration.
+func (b *HCPEtcdBackupApplyConfiguration) GetName() *string {
+ b.ensureObjectMetaApplyConfigurationExists()
+ return b.ObjectMetaApplyConfiguration.Name
+}
+
+// GetNamespace retrieves the value of the Namespace field in the declarative configuration.
+func (b *HCPEtcdBackupApplyConfiguration) GetNamespace() *string {
+ b.ensureObjectMetaApplyConfigurationExists()
+ return b.ObjectMetaApplyConfiguration.Namespace
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupazureblob.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupazureblob.go
new file mode 100644
index 000000000000..48b327be72f9
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupazureblob.go
@@ -0,0 +1,74 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+// HCPEtcdBackupAzureBlobApplyConfiguration represents a declarative configuration of the HCPEtcdBackupAzureBlob type for use
+// with apply.
+type HCPEtcdBackupAzureBlobApplyConfiguration struct {
+ Container *string `json:"container,omitempty"`
+ StorageAccount *string `json:"storageAccount,omitempty"`
+ KeyPrefix *string `json:"keyPrefix,omitempty"`
+ Credentials *SecretReferenceApplyConfiguration `json:"credentials,omitempty"`
+ EncryptionKeyURL *string `json:"encryptionKeyURL,omitempty"`
+}
+
+// HCPEtcdBackupAzureBlobApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupAzureBlob type for use with
+// apply.
+func HCPEtcdBackupAzureBlob() *HCPEtcdBackupAzureBlobApplyConfiguration {
+ return &HCPEtcdBackupAzureBlobApplyConfiguration{}
+}
+
+// WithContainer sets the Container field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Container field is set to the value of the last call.
+func (b *HCPEtcdBackupAzureBlobApplyConfiguration) WithContainer(value string) *HCPEtcdBackupAzureBlobApplyConfiguration {
+ b.Container = &value
+ return b
+}
+
+// WithStorageAccount sets the StorageAccount field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the StorageAccount field is set to the value of the last call.
+func (b *HCPEtcdBackupAzureBlobApplyConfiguration) WithStorageAccount(value string) *HCPEtcdBackupAzureBlobApplyConfiguration {
+ b.StorageAccount = &value
+ return b
+}
+
+// WithKeyPrefix sets the KeyPrefix field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the KeyPrefix field is set to the value of the last call.
+func (b *HCPEtcdBackupAzureBlobApplyConfiguration) WithKeyPrefix(value string) *HCPEtcdBackupAzureBlobApplyConfiguration {
+ b.KeyPrefix = &value
+ return b
+}
+
+// WithCredentials sets the Credentials field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Credentials field is set to the value of the last call.
+func (b *HCPEtcdBackupAzureBlobApplyConfiguration) WithCredentials(value *SecretReferenceApplyConfiguration) *HCPEtcdBackupAzureBlobApplyConfiguration {
+ b.Credentials = value
+ return b
+}
+
+// WithEncryptionKeyURL sets the EncryptionKeyURL field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the EncryptionKeyURL field is set to the value of the last call.
+func (b *HCPEtcdBackupAzureBlobApplyConfiguration) WithEncryptionKeyURL(value string) *HCPEtcdBackupAzureBlobApplyConfiguration {
+ b.EncryptionKeyURL = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupconfig.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupconfig.go
new file mode 100644
index 000000000000..fc09da70d22c
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupconfig.go
@@ -0,0 +1,60 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+import (
+ hypershiftv1beta1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+)
+
+// HCPEtcdBackupConfigApplyConfiguration represents a declarative configuration of the HCPEtcdBackupConfig type for use
+// with apply.
+type HCPEtcdBackupConfigApplyConfiguration struct {
+ Platform *hypershiftv1beta1.HCPEtcdBackupConfigPlatform `json:"platform,omitempty"`
+ AWS *HCPEtcdBackupConfigAWSApplyConfiguration `json:"aws,omitempty"`
+ Azure *HCPEtcdBackupConfigAzureApplyConfiguration `json:"azure,omitempty"`
+}
+
+// HCPEtcdBackupConfigApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupConfig type for use with
+// apply.
+func HCPEtcdBackupConfig() *HCPEtcdBackupConfigApplyConfiguration {
+ return &HCPEtcdBackupConfigApplyConfiguration{}
+}
+
+// WithPlatform sets the Platform field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Platform field is set to the value of the last call.
+func (b *HCPEtcdBackupConfigApplyConfiguration) WithPlatform(value hypershiftv1beta1.HCPEtcdBackupConfigPlatform) *HCPEtcdBackupConfigApplyConfiguration {
+ b.Platform = &value
+ return b
+}
+
+// WithAWS sets the AWS field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the AWS field is set to the value of the last call.
+func (b *HCPEtcdBackupConfigApplyConfiguration) WithAWS(value *HCPEtcdBackupConfigAWSApplyConfiguration) *HCPEtcdBackupConfigApplyConfiguration {
+ b.AWS = value
+ return b
+}
+
+// WithAzure sets the Azure field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Azure field is set to the value of the last call.
+func (b *HCPEtcdBackupConfigApplyConfiguration) WithAzure(value *HCPEtcdBackupConfigAzureApplyConfiguration) *HCPEtcdBackupConfigApplyConfiguration {
+ b.Azure = value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupconfigaws.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupconfigaws.go
new file mode 100644
index 000000000000..85317b26064c
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupconfigaws.go
@@ -0,0 +1,38 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+// HCPEtcdBackupConfigAWSApplyConfiguration represents a declarative configuration of the HCPEtcdBackupConfigAWS type for use
+// with apply.
+type HCPEtcdBackupConfigAWSApplyConfiguration struct {
+ KMSKeyARN *string `json:"kmsKeyARN,omitempty"`
+}
+
+// HCPEtcdBackupConfigAWSApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupConfigAWS type for use with
+// apply.
+func HCPEtcdBackupConfigAWS() *HCPEtcdBackupConfigAWSApplyConfiguration {
+ return &HCPEtcdBackupConfigAWSApplyConfiguration{}
+}
+
+// WithKMSKeyARN sets the KMSKeyARN field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the KMSKeyARN field is set to the value of the last call.
+func (b *HCPEtcdBackupConfigAWSApplyConfiguration) WithKMSKeyARN(value string) *HCPEtcdBackupConfigAWSApplyConfiguration {
+ b.KMSKeyARN = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupconfigazure.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupconfigazure.go
new file mode 100644
index 000000000000..3cf0cf77a42c
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupconfigazure.go
@@ -0,0 +1,38 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+// HCPEtcdBackupConfigAzureApplyConfiguration represents a declarative configuration of the HCPEtcdBackupConfigAzure type for use
+// with apply.
+type HCPEtcdBackupConfigAzureApplyConfiguration struct {
+ EncryptionKeyURL *string `json:"encryptionKeyURL,omitempty"`
+}
+
+// HCPEtcdBackupConfigAzureApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupConfigAzure type for use with
+// apply.
+func HCPEtcdBackupConfigAzure() *HCPEtcdBackupConfigAzureApplyConfiguration {
+ return &HCPEtcdBackupConfigAzureApplyConfiguration{}
+}
+
+// WithEncryptionKeyURL sets the EncryptionKeyURL field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the EncryptionKeyURL field is set to the value of the last call.
+func (b *HCPEtcdBackupConfigAzureApplyConfiguration) WithEncryptionKeyURL(value string) *HCPEtcdBackupConfigAzureApplyConfiguration {
+ b.EncryptionKeyURL = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupencryptionmetadata.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupencryptionmetadata.go
new file mode 100644
index 000000000000..8319f27ad9b6
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupencryptionmetadata.go
@@ -0,0 +1,47 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+// HCPEtcdBackupEncryptionMetadataApplyConfiguration represents a declarative configuration of the HCPEtcdBackupEncryptionMetadata type for use
+// with apply.
+type HCPEtcdBackupEncryptionMetadataApplyConfiguration struct {
+ AWS *HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration `json:"aws,omitempty"`
+ Azure *HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration `json:"azure,omitempty"`
+}
+
+// HCPEtcdBackupEncryptionMetadataApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupEncryptionMetadata type for use with
+// apply.
+func HCPEtcdBackupEncryptionMetadata() *HCPEtcdBackupEncryptionMetadataApplyConfiguration {
+ return &HCPEtcdBackupEncryptionMetadataApplyConfiguration{}
+}
+
+// WithAWS sets the AWS field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the AWS field is set to the value of the last call.
+func (b *HCPEtcdBackupEncryptionMetadataApplyConfiguration) WithAWS(value *HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration) *HCPEtcdBackupEncryptionMetadataApplyConfiguration {
+ b.AWS = value
+ return b
+}
+
+// WithAzure sets the Azure field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Azure field is set to the value of the last call.
+func (b *HCPEtcdBackupEncryptionMetadataApplyConfiguration) WithAzure(value *HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration) *HCPEtcdBackupEncryptionMetadataApplyConfiguration {
+ b.Azure = value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupencryptionmetadataaws.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupencryptionmetadataaws.go
new file mode 100644
index 000000000000..d43724ebcc52
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupencryptionmetadataaws.go
@@ -0,0 +1,38 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+// HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration represents a declarative configuration of the HCPEtcdBackupEncryptionMetadataAWS type for use
+// with apply.
+type HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration struct {
+ KMSKeyARN *string `json:"kmsKeyARN,omitempty"`
+}
+
+// HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupEncryptionMetadataAWS type for use with
+// apply.
+func HCPEtcdBackupEncryptionMetadataAWS() *HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration {
+ return &HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration{}
+}
+
+// WithKMSKeyARN sets the KMSKeyARN field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the KMSKeyARN field is set to the value of the last call.
+func (b *HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration) WithKMSKeyARN(value string) *HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration {
+ b.KMSKeyARN = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupencryptionmetadataazure.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupencryptionmetadataazure.go
new file mode 100644
index 000000000000..5254b70c1f7e
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupencryptionmetadataazure.go
@@ -0,0 +1,38 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+// HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration represents a declarative configuration of the HCPEtcdBackupEncryptionMetadataAzure type for use
+// with apply.
+type HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration struct {
+ EncryptionKeyURL *string `json:"encryptionKeyURL,omitempty"`
+}
+
+// HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupEncryptionMetadataAzure type for use with
+// apply.
+func HCPEtcdBackupEncryptionMetadataAzure() *HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration {
+ return &HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration{}
+}
+
+// WithEncryptionKeyURL sets the EncryptionKeyURL field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the EncryptionKeyURL field is set to the value of the last call.
+func (b *HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration) WithEncryptionKeyURL(value string) *HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration {
+ b.EncryptionKeyURL = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackups3.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackups3.go
new file mode 100644
index 000000000000..3e0caf7c847c
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackups3.go
@@ -0,0 +1,74 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+// HCPEtcdBackupS3ApplyConfiguration represents a declarative configuration of the HCPEtcdBackupS3 type for use
+// with apply.
+type HCPEtcdBackupS3ApplyConfiguration struct {
+ Bucket *string `json:"bucket,omitempty"`
+ Region *string `json:"region,omitempty"`
+ KeyPrefix *string `json:"keyPrefix,omitempty"`
+ Credentials *SecretReferenceApplyConfiguration `json:"credentials,omitempty"`
+ KMSKeyARN *string `json:"kmsKeyARN,omitempty"`
+}
+
+// HCPEtcdBackupS3ApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupS3 type for use with
+// apply.
+func HCPEtcdBackupS3() *HCPEtcdBackupS3ApplyConfiguration {
+ return &HCPEtcdBackupS3ApplyConfiguration{}
+}
+
+// WithBucket sets the Bucket field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Bucket field is set to the value of the last call.
+func (b *HCPEtcdBackupS3ApplyConfiguration) WithBucket(value string) *HCPEtcdBackupS3ApplyConfiguration {
+ b.Bucket = &value
+ return b
+}
+
+// WithRegion sets the Region field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Region field is set to the value of the last call.
+func (b *HCPEtcdBackupS3ApplyConfiguration) WithRegion(value string) *HCPEtcdBackupS3ApplyConfiguration {
+ b.Region = &value
+ return b
+}
+
+// WithKeyPrefix sets the KeyPrefix field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the KeyPrefix field is set to the value of the last call.
+func (b *HCPEtcdBackupS3ApplyConfiguration) WithKeyPrefix(value string) *HCPEtcdBackupS3ApplyConfiguration {
+ b.KeyPrefix = &value
+ return b
+}
+
+// WithCredentials sets the Credentials field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Credentials field is set to the value of the last call.
+func (b *HCPEtcdBackupS3ApplyConfiguration) WithCredentials(value *SecretReferenceApplyConfiguration) *HCPEtcdBackupS3ApplyConfiguration {
+ b.Credentials = value
+ return b
+}
+
+// WithKMSKeyARN sets the KMSKeyARN field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the KMSKeyARN field is set to the value of the last call.
+func (b *HCPEtcdBackupS3ApplyConfiguration) WithKMSKeyARN(value string) *HCPEtcdBackupS3ApplyConfiguration {
+ b.KMSKeyARN = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupspec.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupspec.go
new file mode 100644
index 000000000000..538472e4342c
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupspec.go
@@ -0,0 +1,38 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+// HCPEtcdBackupSpecApplyConfiguration represents a declarative configuration of the HCPEtcdBackupSpec type for use
+// with apply.
+type HCPEtcdBackupSpecApplyConfiguration struct {
+ Storage *HCPEtcdBackupStorageApplyConfiguration `json:"storage,omitempty"`
+}
+
+// HCPEtcdBackupSpecApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupSpec type for use with
+// apply.
+func HCPEtcdBackupSpec() *HCPEtcdBackupSpecApplyConfiguration {
+ return &HCPEtcdBackupSpecApplyConfiguration{}
+}
+
+// WithStorage sets the Storage field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Storage field is set to the value of the last call.
+func (b *HCPEtcdBackupSpecApplyConfiguration) WithStorage(value *HCPEtcdBackupStorageApplyConfiguration) *HCPEtcdBackupSpecApplyConfiguration {
+ b.Storage = value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupstatus.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupstatus.go
new file mode 100644
index 000000000000..f11c6f7f57d4
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupstatus.go
@@ -0,0 +1,65 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+import (
+ v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+)
+
+// HCPEtcdBackupStatusApplyConfiguration represents a declarative configuration of the HCPEtcdBackupStatus type for use
+// with apply.
+type HCPEtcdBackupStatusApplyConfiguration struct {
+ Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ SnapshotURL *string `json:"snapshotURL,omitempty"`
+ EncryptionMetadata *HCPEtcdBackupEncryptionMetadataApplyConfiguration `json:"encryptionMetadata,omitempty"`
+}
+
+// HCPEtcdBackupStatusApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupStatus type for use with
+// apply.
+func HCPEtcdBackupStatus() *HCPEtcdBackupStatusApplyConfiguration {
+ return &HCPEtcdBackupStatusApplyConfiguration{}
+}
+
+// WithConditions adds the given value to the Conditions field in the declarative configuration
+// and returns the receiver, so that objects can be build by chaining "With" function invocations.
+// If called multiple times, values provided by each call will be appended to the Conditions field.
+func (b *HCPEtcdBackupStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *HCPEtcdBackupStatusApplyConfiguration {
+ for i := range values {
+ if values[i] == nil {
+ panic("nil value passed to WithConditions")
+ }
+ b.Conditions = append(b.Conditions, *values[i])
+ }
+ return b
+}
+
+// WithSnapshotURL sets the SnapshotURL field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the SnapshotURL field is set to the value of the last call.
+func (b *HCPEtcdBackupStatusApplyConfiguration) WithSnapshotURL(value string) *HCPEtcdBackupStatusApplyConfiguration {
+ b.SnapshotURL = &value
+ return b
+}
+
+// WithEncryptionMetadata sets the EncryptionMetadata field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the EncryptionMetadata field is set to the value of the last call.
+func (b *HCPEtcdBackupStatusApplyConfiguration) WithEncryptionMetadata(value *HCPEtcdBackupEncryptionMetadataApplyConfiguration) *HCPEtcdBackupStatusApplyConfiguration {
+ b.EncryptionMetadata = value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupstorage.go b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupstorage.go
new file mode 100644
index 000000000000..fd93bac31a28
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/hcpetcdbackupstorage.go
@@ -0,0 +1,60 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+import (
+ hypershiftv1beta1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+)
+
+// HCPEtcdBackupStorageApplyConfiguration represents a declarative configuration of the HCPEtcdBackupStorage type for use
+// with apply.
+type HCPEtcdBackupStorageApplyConfiguration struct {
+ StorageType *hypershiftv1beta1.HCPEtcdBackupStorageType `json:"storageType,omitempty"`
+ S3 *HCPEtcdBackupS3ApplyConfiguration `json:"s3,omitempty"`
+ AzureBlob *HCPEtcdBackupAzureBlobApplyConfiguration `json:"azureBlob,omitempty"`
+}
+
+// HCPEtcdBackupStorageApplyConfiguration constructs a declarative configuration of the HCPEtcdBackupStorage type for use with
+// apply.
+func HCPEtcdBackupStorage() *HCPEtcdBackupStorageApplyConfiguration {
+ return &HCPEtcdBackupStorageApplyConfiguration{}
+}
+
+// WithStorageType sets the StorageType field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the StorageType field is set to the value of the last call.
+func (b *HCPEtcdBackupStorageApplyConfiguration) WithStorageType(value hypershiftv1beta1.HCPEtcdBackupStorageType) *HCPEtcdBackupStorageApplyConfiguration {
+ b.StorageType = &value
+ return b
+}
+
+// WithS3 sets the S3 field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the S3 field is set to the value of the last call.
+func (b *HCPEtcdBackupStorageApplyConfiguration) WithS3(value *HCPEtcdBackupS3ApplyConfiguration) *HCPEtcdBackupStorageApplyConfiguration {
+ b.S3 = value
+ return b
+}
+
+// WithAzureBlob sets the AzureBlob field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the AzureBlob field is set to the value of the last call.
+func (b *HCPEtcdBackupStorageApplyConfiguration) WithAzureBlob(value *HCPEtcdBackupAzureBlobApplyConfiguration) *HCPEtcdBackupStorageApplyConfiguration {
+ b.AzureBlob = value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/managedetcdspec.go b/client/applyconfiguration/hypershift/v1beta1/managedetcdspec.go
index 0a590c652851..eb2eacd470d8 100644
--- a/client/applyconfiguration/hypershift/v1beta1/managedetcdspec.go
+++ b/client/applyconfiguration/hypershift/v1beta1/managedetcdspec.go
@@ -21,6 +21,7 @@ package v1beta1
// with apply.
type ManagedEtcdSpecApplyConfiguration struct {
Storage *ManagedEtcdStorageSpecApplyConfiguration `json:"storage,omitempty"`
+ Backup *HCPEtcdBackupConfigApplyConfiguration `json:"backup,omitempty"`
}
// ManagedEtcdSpecApplyConfiguration constructs a declarative configuration of the ManagedEtcdSpec type for use with
@@ -36,3 +37,11 @@ func (b *ManagedEtcdSpecApplyConfiguration) WithStorage(value *ManagedEtcdStorag
b.Storage = value
return b
}
+
+// WithBackup sets the Backup field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Backup field is set to the value of the last call.
+func (b *ManagedEtcdSpecApplyConfiguration) WithBackup(value *HCPEtcdBackupConfigApplyConfiguration) *ManagedEtcdSpecApplyConfiguration {
+ b.Backup = value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/secretreference.go b/client/applyconfiguration/hypershift/v1beta1/secretreference.go
new file mode 100644
index 000000000000..7019a72ed7ae
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/secretreference.go
@@ -0,0 +1,38 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1beta1
+
+// SecretReferenceApplyConfiguration represents a declarative configuration of the SecretReference type for use
+// with apply.
+type SecretReferenceApplyConfiguration struct {
+ Name *string `json:"name,omitempty"`
+}
+
+// SecretReferenceApplyConfiguration constructs a declarative configuration of the SecretReference type for use with
+// apply.
+func SecretReference() *SecretReferenceApplyConfiguration {
+ return &SecretReferenceApplyConfiguration{}
+}
+
+// WithName sets the Name field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Name field is set to the value of the last call.
+func (b *SecretReferenceApplyConfiguration) WithName(value string) *SecretReferenceApplyConfiguration {
+ b.Name = &value
+ return b
+}
diff --git a/client/applyconfiguration/utils.go b/client/applyconfiguration/utils.go
index a81464ba73e4..ac4d196da62c 100644
--- a/client/applyconfiguration/utils.go
+++ b/client/applyconfiguration/utils.go
@@ -191,6 +191,30 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &hypershiftv1beta1.GCPServiceAccountsEmailsApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("GCPWorkloadIdentityConfig"):
return &hypershiftv1beta1.GCPWorkloadIdentityConfigApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackup"):
+ return &hypershiftv1beta1.HCPEtcdBackupApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupAzureBlob"):
+ return &hypershiftv1beta1.HCPEtcdBackupAzureBlobApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupConfig"):
+ return &hypershiftv1beta1.HCPEtcdBackupConfigApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupConfigAWS"):
+ return &hypershiftv1beta1.HCPEtcdBackupConfigAWSApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupConfigAzure"):
+ return &hypershiftv1beta1.HCPEtcdBackupConfigAzureApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupEncryptionMetadata"):
+ return &hypershiftv1beta1.HCPEtcdBackupEncryptionMetadataApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupEncryptionMetadataAWS"):
+ return &hypershiftv1beta1.HCPEtcdBackupEncryptionMetadataAWSApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupEncryptionMetadataAzure"):
+ return &hypershiftv1beta1.HCPEtcdBackupEncryptionMetadataAzureApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupS3"):
+ return &hypershiftv1beta1.HCPEtcdBackupS3ApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupSpec"):
+ return &hypershiftv1beta1.HCPEtcdBackupSpecApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupStatus"):
+ return &hypershiftv1beta1.HCPEtcdBackupStatusApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackupStorage"):
+ return &hypershiftv1beta1.HCPEtcdBackupStorageApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("HostedCluster"):
return &hypershiftv1beta1.HostedClusterApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("HostedClusterSpec"):
@@ -341,6 +365,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &hypershiftv1beta1.ScaleDownConfigApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("SecretEncryptionSpec"):
return &hypershiftv1beta1.SecretEncryptionSpecApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("SecretReference"):
+ return &hypershiftv1beta1.SecretReferenceApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("ServiceNetworkEntry"):
return &hypershiftv1beta1.ServiceNetworkEntryApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("ServicePublishingStrategy"):
diff --git a/client/clientset/clientset/typed/hypershift/v1beta1/fake/fake_hcpetcdbackup.go b/client/clientset/clientset/typed/hypershift/v1beta1/fake/fake_hcpetcdbackup.go
new file mode 100644
index 000000000000..d397e3f2313b
--- /dev/null
+++ b/client/clientset/clientset/typed/hypershift/v1beta1/fake/fake_hcpetcdbackup.go
@@ -0,0 +1,52 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by client-gen. DO NOT EDIT.
+
+package fake
+
+import (
+ v1beta1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+ hypershiftv1beta1 "github.com/openshift/hypershift/client/applyconfiguration/hypershift/v1beta1"
+ typedhypershiftv1beta1 "github.com/openshift/hypershift/client/clientset/clientset/typed/hypershift/v1beta1"
+ gentype "k8s.io/client-go/gentype"
+)
+
+// fakeHCPEtcdBackups implements HCPEtcdBackupInterface
+type fakeHCPEtcdBackups struct {
+ *gentype.FakeClientWithListAndApply[*v1beta1.HCPEtcdBackup, *v1beta1.HCPEtcdBackupList, *hypershiftv1beta1.HCPEtcdBackupApplyConfiguration]
+ Fake *FakeHypershiftV1beta1
+}
+
+func newFakeHCPEtcdBackups(fake *FakeHypershiftV1beta1, namespace string) typedhypershiftv1beta1.HCPEtcdBackupInterface {
+ return &fakeHCPEtcdBackups{
+ gentype.NewFakeClientWithListAndApply[*v1beta1.HCPEtcdBackup, *v1beta1.HCPEtcdBackupList, *hypershiftv1beta1.HCPEtcdBackupApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1beta1.SchemeGroupVersion.WithResource("hcpetcdbackups"),
+ v1beta1.SchemeGroupVersion.WithKind("HCPEtcdBackup"),
+ func() *v1beta1.HCPEtcdBackup { return &v1beta1.HCPEtcdBackup{} },
+ func() *v1beta1.HCPEtcdBackupList { return &v1beta1.HCPEtcdBackupList{} },
+ func(dst, src *v1beta1.HCPEtcdBackupList) { dst.ListMeta = src.ListMeta },
+ func(list *v1beta1.HCPEtcdBackupList) []*v1beta1.HCPEtcdBackup {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1beta1.HCPEtcdBackupList, items []*v1beta1.HCPEtcdBackup) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
+ }
+}
diff --git a/client/clientset/clientset/typed/hypershift/v1beta1/fake/fake_hypershift_client.go b/client/clientset/clientset/typed/hypershift/v1beta1/fake/fake_hypershift_client.go
index 7fc078166720..bdbbe136822c 100644
--- a/client/clientset/clientset/typed/hypershift/v1beta1/fake/fake_hypershift_client.go
+++ b/client/clientset/clientset/typed/hypershift/v1beta1/fake/fake_hypershift_client.go
@@ -35,6 +35,10 @@ func (c *FakeHypershiftV1beta1) GCPPrivateServiceConnects(namespace string) v1be
return newFakeGCPPrivateServiceConnects(c, namespace)
}
+func (c *FakeHypershiftV1beta1) HCPEtcdBackups(namespace string) v1beta1.HCPEtcdBackupInterface {
+ return newFakeHCPEtcdBackups(c, namespace)
+}
+
func (c *FakeHypershiftV1beta1) HostedClusters(namespace string) v1beta1.HostedClusterInterface {
return newFakeHostedClusters(c, namespace)
}
diff --git a/client/clientset/clientset/typed/hypershift/v1beta1/generated_expansion.go b/client/clientset/clientset/typed/hypershift/v1beta1/generated_expansion.go
index 77ea2fc51ea0..1b2a66c147c6 100644
--- a/client/clientset/clientset/typed/hypershift/v1beta1/generated_expansion.go
+++ b/client/clientset/clientset/typed/hypershift/v1beta1/generated_expansion.go
@@ -21,6 +21,8 @@ type CertificateSigningRequestApprovalExpansion interface{}
type GCPPrivateServiceConnectExpansion interface{}
+type HCPEtcdBackupExpansion interface{}
+
type HostedClusterExpansion interface{}
type HostedControlPlaneExpansion interface{}
diff --git a/client/clientset/clientset/typed/hypershift/v1beta1/hcpetcdbackup.go b/client/clientset/clientset/typed/hypershift/v1beta1/hcpetcdbackup.go
new file mode 100644
index 000000000000..d1c4dd1ee1c9
--- /dev/null
+++ b/client/clientset/clientset/typed/hypershift/v1beta1/hcpetcdbackup.go
@@ -0,0 +1,73 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by client-gen. DO NOT EDIT.
+
+package v1beta1
+
+import (
+ context "context"
+
+ hypershiftv1beta1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+ applyconfigurationhypershiftv1beta1 "github.com/openshift/hypershift/client/applyconfiguration/hypershift/v1beta1"
+ scheme "github.com/openshift/hypershift/client/clientset/clientset/scheme"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ types "k8s.io/apimachinery/pkg/types"
+ watch "k8s.io/apimachinery/pkg/watch"
+ gentype "k8s.io/client-go/gentype"
+)
+
+// HCPEtcdBackupsGetter has a method to return a HCPEtcdBackupInterface.
+// A group's client should implement this interface.
+type HCPEtcdBackupsGetter interface {
+ HCPEtcdBackups(namespace string) HCPEtcdBackupInterface
+}
+
+// HCPEtcdBackupInterface has methods to work with HCPEtcdBackup resources.
+type HCPEtcdBackupInterface interface {
+ Create(ctx context.Context, hCPEtcdBackup *hypershiftv1beta1.HCPEtcdBackup, opts v1.CreateOptions) (*hypershiftv1beta1.HCPEtcdBackup, error)
+ Update(ctx context.Context, hCPEtcdBackup *hypershiftv1beta1.HCPEtcdBackup, opts v1.UpdateOptions) (*hypershiftv1beta1.HCPEtcdBackup, error)
+ // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
+ UpdateStatus(ctx context.Context, hCPEtcdBackup *hypershiftv1beta1.HCPEtcdBackup, opts v1.UpdateOptions) (*hypershiftv1beta1.HCPEtcdBackup, error)
+ Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
+ DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*hypershiftv1beta1.HCPEtcdBackup, error)
+ List(ctx context.Context, opts v1.ListOptions) (*hypershiftv1beta1.HCPEtcdBackupList, error)
+ Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hypershiftv1beta1.HCPEtcdBackup, err error)
+ Apply(ctx context.Context, hCPEtcdBackup *applyconfigurationhypershiftv1beta1.HCPEtcdBackupApplyConfiguration, opts v1.ApplyOptions) (result *hypershiftv1beta1.HCPEtcdBackup, err error)
+ // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
+ ApplyStatus(ctx context.Context, hCPEtcdBackup *applyconfigurationhypershiftv1beta1.HCPEtcdBackupApplyConfiguration, opts v1.ApplyOptions) (result *hypershiftv1beta1.HCPEtcdBackup, err error)
+ HCPEtcdBackupExpansion
+}
+
+// hCPEtcdBackups implements HCPEtcdBackupInterface
+type hCPEtcdBackups struct {
+ *gentype.ClientWithListAndApply[*hypershiftv1beta1.HCPEtcdBackup, *hypershiftv1beta1.HCPEtcdBackupList, *applyconfigurationhypershiftv1beta1.HCPEtcdBackupApplyConfiguration]
+}
+
+// newHCPEtcdBackups returns a HCPEtcdBackups
+func newHCPEtcdBackups(c *HypershiftV1beta1Client, namespace string) *hCPEtcdBackups {
+ return &hCPEtcdBackups{
+ gentype.NewClientWithListAndApply[*hypershiftv1beta1.HCPEtcdBackup, *hypershiftv1beta1.HCPEtcdBackupList, *applyconfigurationhypershiftv1beta1.HCPEtcdBackupApplyConfiguration](
+ "hcpetcdbackups",
+ c.RESTClient(),
+ scheme.ParameterCodec,
+ namespace,
+ func() *hypershiftv1beta1.HCPEtcdBackup { return &hypershiftv1beta1.HCPEtcdBackup{} },
+ func() *hypershiftv1beta1.HCPEtcdBackupList { return &hypershiftv1beta1.HCPEtcdBackupList{} },
+ ),
+ }
+}
diff --git a/client/clientset/clientset/typed/hypershift/v1beta1/hypershift_client.go b/client/clientset/clientset/typed/hypershift/v1beta1/hypershift_client.go
index 0ab909670371..2d9f845b1cf4 100644
--- a/client/clientset/clientset/typed/hypershift/v1beta1/hypershift_client.go
+++ b/client/clientset/clientset/typed/hypershift/v1beta1/hypershift_client.go
@@ -29,6 +29,7 @@ type HypershiftV1beta1Interface interface {
RESTClient() rest.Interface
CertificateSigningRequestApprovalsGetter
GCPPrivateServiceConnectsGetter
+ HCPEtcdBackupsGetter
HostedClustersGetter
HostedControlPlanesGetter
NodePoolsGetter
@@ -47,6 +48,10 @@ func (c *HypershiftV1beta1Client) GCPPrivateServiceConnects(namespace string) GC
return newGCPPrivateServiceConnects(c, namespace)
}
+func (c *HypershiftV1beta1Client) HCPEtcdBackups(namespace string) HCPEtcdBackupInterface {
+ return newHCPEtcdBackups(c, namespace)
+}
+
func (c *HypershiftV1beta1Client) HostedClusters(namespace string) HostedClusterInterface {
return newHostedClusters(c, namespace)
}
diff --git a/client/informers/externalversions/generic.go b/client/informers/externalversions/generic.go
index d784618173b2..03359d348bcd 100644
--- a/client/informers/externalversions/generic.go
+++ b/client/informers/externalversions/generic.go
@@ -70,6 +70,8 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
return &genericInformer{resource: resource.GroupResource(), informer: f.Hypershift().V1beta1().CertificateSigningRequestApprovals().Informer()}, nil
case v1beta1.SchemeGroupVersion.WithResource("gcpprivateserviceconnects"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Hypershift().V1beta1().GCPPrivateServiceConnects().Informer()}, nil
+ case v1beta1.SchemeGroupVersion.WithResource("hcpetcdbackups"):
+ return &genericInformer{resource: resource.GroupResource(), informer: f.Hypershift().V1beta1().HCPEtcdBackups().Informer()}, nil
case v1beta1.SchemeGroupVersion.WithResource("hostedclusters"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Hypershift().V1beta1().HostedClusters().Informer()}, nil
case v1beta1.SchemeGroupVersion.WithResource("hostedcontrolplanes"):
diff --git a/client/informers/externalversions/hypershift/v1beta1/hcpetcdbackup.go b/client/informers/externalversions/hypershift/v1beta1/hcpetcdbackup.go
new file mode 100644
index 000000000000..0cfcf0f873e1
--- /dev/null
+++ b/client/informers/externalversions/hypershift/v1beta1/hcpetcdbackup.go
@@ -0,0 +1,101 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by informer-gen. DO NOT EDIT.
+
+package v1beta1
+
+import (
+ context "context"
+ time "time"
+
+ apihypershiftv1beta1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+ clientset "github.com/openshift/hypershift/client/clientset/clientset"
+ internalinterfaces "github.com/openshift/hypershift/client/informers/externalversions/internalinterfaces"
+ hypershiftv1beta1 "github.com/openshift/hypershift/client/listers/hypershift/v1beta1"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+ watch "k8s.io/apimachinery/pkg/watch"
+ cache "k8s.io/client-go/tools/cache"
+)
+
+// HCPEtcdBackupInformer provides access to a shared informer and lister for
+// HCPEtcdBackups.
+type HCPEtcdBackupInformer interface {
+ Informer() cache.SharedIndexInformer
+ Lister() hypershiftv1beta1.HCPEtcdBackupLister
+}
+
+type hCPEtcdBackupInformer struct {
+ factory internalinterfaces.SharedInformerFactory
+ tweakListOptions internalinterfaces.TweakListOptionsFunc
+ namespace string
+}
+
+// NewHCPEtcdBackupInformer constructs a new informer for HCPEtcdBackup type.
+// Always prefer using an informer factory to get a shared informer instead of getting an independent
+// one. This reduces memory footprint and number of connections to the server.
+func NewHCPEtcdBackupInformer(client clientset.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+ return NewFilteredHCPEtcdBackupInformer(client, namespace, resyncPeriod, indexers, nil)
+}
+
+// NewFilteredHCPEtcdBackupInformer constructs a new informer for HCPEtcdBackup type.
+// Always prefer using an informer factory to get a shared informer instead of getting an independent
+// one. This reduces memory footprint and number of connections to the server.
+func NewFilteredHCPEtcdBackupInformer(client clientset.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+ return cache.NewSharedIndexInformer(
+ &cache.ListWatch{
+ ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
+ if tweakListOptions != nil {
+ tweakListOptions(&options)
+ }
+ return client.HypershiftV1beta1().HCPEtcdBackups(namespace).List(context.Background(), options)
+ },
+ WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
+ if tweakListOptions != nil {
+ tweakListOptions(&options)
+ }
+ return client.HypershiftV1beta1().HCPEtcdBackups(namespace).Watch(context.Background(), options)
+ },
+ ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) {
+ if tweakListOptions != nil {
+ tweakListOptions(&options)
+ }
+ return client.HypershiftV1beta1().HCPEtcdBackups(namespace).List(ctx, options)
+ },
+ WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) {
+ if tweakListOptions != nil {
+ tweakListOptions(&options)
+ }
+ return client.HypershiftV1beta1().HCPEtcdBackups(namespace).Watch(ctx, options)
+ },
+ },
+ &apihypershiftv1beta1.HCPEtcdBackup{},
+ resyncPeriod,
+ indexers,
+ )
+}
+
+func (f *hCPEtcdBackupInformer) defaultInformer(client clientset.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+ return NewFilteredHCPEtcdBackupInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
+}
+
+func (f *hCPEtcdBackupInformer) Informer() cache.SharedIndexInformer {
+ return f.factory.InformerFor(&apihypershiftv1beta1.HCPEtcdBackup{}, f.defaultInformer)
+}
+
+func (f *hCPEtcdBackupInformer) Lister() hypershiftv1beta1.HCPEtcdBackupLister {
+ return hypershiftv1beta1.NewHCPEtcdBackupLister(f.Informer().GetIndexer())
+}
diff --git a/client/informers/externalversions/hypershift/v1beta1/interface.go b/client/informers/externalversions/hypershift/v1beta1/interface.go
index a0c0691f143a..cbfb8a08d947 100644
--- a/client/informers/externalversions/hypershift/v1beta1/interface.go
+++ b/client/informers/externalversions/hypershift/v1beta1/interface.go
@@ -27,6 +27,8 @@ type Interface interface {
CertificateSigningRequestApprovals() CertificateSigningRequestApprovalInformer
// GCPPrivateServiceConnects returns a GCPPrivateServiceConnectInformer.
GCPPrivateServiceConnects() GCPPrivateServiceConnectInformer
+ // HCPEtcdBackups returns a HCPEtcdBackupInformer.
+ HCPEtcdBackups() HCPEtcdBackupInformer
// HostedClusters returns a HostedClusterInformer.
HostedClusters() HostedClusterInformer
// HostedControlPlanes returns a HostedControlPlaneInformer.
@@ -56,6 +58,11 @@ func (v *version) GCPPrivateServiceConnects() GCPPrivateServiceConnectInformer {
return &gCPPrivateServiceConnectInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}
+// HCPEtcdBackups returns a HCPEtcdBackupInformer.
+func (v *version) HCPEtcdBackups() HCPEtcdBackupInformer {
+ return &hCPEtcdBackupInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
+}
+
// HostedClusters returns a HostedClusterInformer.
func (v *version) HostedClusters() HostedClusterInformer {
return &hostedClusterInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
diff --git a/client/listers/hypershift/v1beta1/expansion_generated.go b/client/listers/hypershift/v1beta1/expansion_generated.go
index f97b9357bf5f..2d2f8e1ab40e 100644
--- a/client/listers/hypershift/v1beta1/expansion_generated.go
+++ b/client/listers/hypershift/v1beta1/expansion_generated.go
@@ -33,6 +33,14 @@ type GCPPrivateServiceConnectListerExpansion interface{}
// GCPPrivateServiceConnectNamespaceLister.
type GCPPrivateServiceConnectNamespaceListerExpansion interface{}
+// HCPEtcdBackupListerExpansion allows custom methods to be added to
+// HCPEtcdBackupLister.
+type HCPEtcdBackupListerExpansion interface{}
+
+// HCPEtcdBackupNamespaceListerExpansion allows custom methods to be added to
+// HCPEtcdBackupNamespaceLister.
+type HCPEtcdBackupNamespaceListerExpansion interface{}
+
// HostedClusterListerExpansion allows custom methods to be added to
// HostedClusterLister.
type HostedClusterListerExpansion interface{}
diff --git a/client/listers/hypershift/v1beta1/hcpetcdbackup.go b/client/listers/hypershift/v1beta1/hcpetcdbackup.go
new file mode 100644
index 000000000000..4f569d5a2bf0
--- /dev/null
+++ b/client/listers/hypershift/v1beta1/hcpetcdbackup.go
@@ -0,0 +1,69 @@
+/*
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+// Code generated by lister-gen. DO NOT EDIT.
+
+package v1beta1
+
+import (
+ hypershiftv1beta1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
+)
+
+// HCPEtcdBackupLister helps list HCPEtcdBackups.
+// All objects returned here must be treated as read-only.
+type HCPEtcdBackupLister interface {
+ // List lists all HCPEtcdBackups in the indexer.
+ // Objects returned here must be treated as read-only.
+ List(selector labels.Selector) (ret []*hypershiftv1beta1.HCPEtcdBackup, err error)
+ // HCPEtcdBackups returns an object that can list and get HCPEtcdBackups.
+ HCPEtcdBackups(namespace string) HCPEtcdBackupNamespaceLister
+ HCPEtcdBackupListerExpansion
+}
+
+// hCPEtcdBackupLister implements the HCPEtcdBackupLister interface.
+type hCPEtcdBackupLister struct {
+ listers.ResourceIndexer[*hypershiftv1beta1.HCPEtcdBackup]
+}
+
+// NewHCPEtcdBackupLister returns a new HCPEtcdBackupLister.
+func NewHCPEtcdBackupLister(indexer cache.Indexer) HCPEtcdBackupLister {
+ return &hCPEtcdBackupLister{listers.New[*hypershiftv1beta1.HCPEtcdBackup](indexer, hypershiftv1beta1.Resource("hcpetcdbackup"))}
+}
+
+// HCPEtcdBackups returns an object that can list and get HCPEtcdBackups.
+func (s *hCPEtcdBackupLister) HCPEtcdBackups(namespace string) HCPEtcdBackupNamespaceLister {
+ return hCPEtcdBackupNamespaceLister{listers.NewNamespaced[*hypershiftv1beta1.HCPEtcdBackup](s.ResourceIndexer, namespace)}
+}
+
+// HCPEtcdBackupNamespaceLister helps list and get HCPEtcdBackups.
+// All objects returned here must be treated as read-only.
+type HCPEtcdBackupNamespaceLister interface {
+ // List lists all HCPEtcdBackups in the indexer for a given namespace.
+ // Objects returned here must be treated as read-only.
+ List(selector labels.Selector) (ret []*hypershiftv1beta1.HCPEtcdBackup, err error)
+ // Get retrieves the HCPEtcdBackup from the indexer for a given namespace and name.
+ // Objects returned here must be treated as read-only.
+ Get(name string) (*hypershiftv1beta1.HCPEtcdBackup, error)
+ HCPEtcdBackupNamespaceListerExpansion
+}
+
+// hCPEtcdBackupNamespaceLister implements the HCPEtcdBackupNamespaceLister
+// interface.
+type hCPEtcdBackupNamespaceLister struct {
+ listers.ResourceIndexer[*hypershiftv1beta1.HCPEtcdBackup]
+}
diff --git a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hcpetcdbackups-CustomNoUpgrade.crd.yaml b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hcpetcdbackups-CustomNoUpgrade.crd.yaml
new file mode 100644
index 000000000000..daa5c0eb080c
--- /dev/null
+++ b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hcpetcdbackups-CustomNoUpgrade.crd.yaml
@@ -0,0 +1,422 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ api.openshift.io/merged-by-featuregates: "true"
+ include.release.openshift.io/ibm-cloud-managed: "true"
+ include.release.openshift.io/self-managed-high-availability: "true"
+ release.openshift.io/feature-set: CustomNoUpgrade
+ name: hcpetcdbackups.hypershift.openshift.io
+spec:
+ group: hypershift.openshift.io
+ names:
+ kind: HCPEtcdBackup
+ listKind: HCPEtcdBackupList
+ plural: hcpetcdbackups
+ shortNames:
+ - hcpetcdbk
+ singular: hcpetcdbackup
+ scope: Namespaced
+ versions:
+ - additionalPrinterColumns:
+ - description: Backup completion status
+ jsonPath: .status.conditions[?(@.type=="BackupCompleted")].status
+ name: Completed
+ type: string
+ - description: Snapshot URL
+ jsonPath: .status.snapshotURL
+ name: URL
+ type: string
+ - jsonPath: .metadata.creationTimestamp
+ name: Age
+ type: date
+ name: v1beta1
+ schema:
+ openAPIV3Schema:
+ description: |-
+ HCPEtcdBackup represents a request to back up etcd for a hosted control plane.
+ This resource is feature-gated behind the HCPEtcdBackup feature gate.
+ properties:
+ apiVersion:
+ description: |-
+ APIVersion defines the versioned schema of this representation of an object.
+ Servers should convert recognized schemas to the latest internal value, and
+ may reject unrecognized values.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |-
+ Kind is a string value representing the REST resource this object represents.
+ Servers may infer this from the endpoint the client submits requests to.
+ Cannot be updated.
+ In CamelCase.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: spec is the specification for the HCPEtcdBackup.
+ properties:
+ storage:
+ description: storage defines the cloud storage backend where the etcd
+ snapshot will be uploaded.
+ properties:
+ azureBlob:
+ description: |-
+ azureBlob specifies the Azure Blob storage configuration for the etcd backup.
+ Required when storageType is "AzureBlob", and forbidden otherwise.
+ properties:
+ container:
+ description: |-
+ container is the name of the Azure Blob container where backups are stored.
+ Must be 3-63 characters, lowercase letters, numbers, and hyphens only.
+ Must start and end with a letter or number. Consecutive hyphens are not allowed.
+ See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names
+ maxLength: 63
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: container must consist of lowercase letters, numbers,
+ and hyphens, and must start and end with a letter or number
+ rule: self.matches('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$')
+ - message: container must not contain consecutive hyphens
+ rule: '!self.contains(''--'')'
+ credentials:
+ description: |-
+ credentials references a Secret containing Azure credentials for uploading
+ to Blob Storage. The Secret must exist in the Hypershift Operator namespace.
+ properties:
+ name:
+ description: |-
+ name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+ 253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+ Each period-separated segment must start and end with an alphanumeric character.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: name must consist only of lowercase alphanumeric
+ characters, hyphens, and periods. Each period-separated
+ segment must start and end with an alphanumeric character.
+ rule: self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$')
+ required:
+ - name
+ type: object
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key used for encryption.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ This field is immutable once set and cannot be removed.
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure Key Vault
+ (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ - message: encryptionKeyURL is immutable
+ rule: self == oldSelf
+ keyPrefix:
+ description: |-
+ keyPrefix is the blob name prefix for the backup file.
+ Must consist of valid blob name characters: alphanumeric characters, forward slashes,
+ hyphens, underscores, and periods.
+ See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#blob-names
+ maxLength: 1024
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: keyPrefix must consist of alphanumeric characters,
+ forward slashes, hyphens, underscores, and periods
+ rule: self.matches('^[a-zA-Z0-9/_.-]+$')
+ storageAccount:
+ description: |-
+ storageAccount is the name of the Azure Storage Account.
+ Must be 3-24 characters, lowercase letters and numbers only.
+ See https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#storage-account-name
+ maxLength: 24
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: storageAccount must consist of lowercase letters
+ and numbers only
+ rule: self.matches('^[a-z0-9]+$')
+ required:
+ - container
+ - credentials
+ - keyPrefix
+ - storageAccount
+ type: object
+ x-kubernetes-validations:
+ - message: encryptionKeyURL cannot be removed once set
+ rule: '!has(oldSelf.encryptionKeyURL) || has(self.encryptionKeyURL)'
+ s3:
+ description: |-
+ s3 specifies the S3 storage configuration for the etcd backup.
+ Required when storageType is "S3", and forbidden otherwise.
+ properties:
+ bucket:
+ description: |-
+ bucket is the name of the S3 bucket where backups are stored.
+ Must be 3-63 characters, lowercase letters, numbers, hyphens, and periods only.
+ Must start and end with a letter or number. Consecutive periods are not allowed.
+ See https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
+ maxLength: 63
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: bucket must consist of lowercase letters, numbers,
+ hyphens, and periods, and must start and end with a letter
+ or number
+ rule: self.matches('^[a-z0-9][a-z0-9.-]*[a-z0-9]$')
+ - message: bucket must not contain consecutive periods
+ rule: '!self.contains(''..'')'
+ credentials:
+ description: |-
+ credentials references a Secret containing AWS credentials for uploading
+ to S3. The Secret must exist in the Hypershift Operator namespace and contain a
+ 'credentials' key with a valid AWS credentials file.
+ properties:
+ name:
+ description: |-
+ name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+ 253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+ Each period-separated segment must start and end with an alphanumeric character.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: name must consist only of lowercase alphanumeric
+ characters, hyphens, and periods. Each period-separated
+ segment must start and end with an alphanumeric character.
+ rule: self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$')
+ required:
+ - name
+ type: object
+ keyPrefix:
+ description: |-
+ keyPrefix is the S3 key prefix for the backup file.
+ Must consist of safe S3 object key characters: alphanumeric characters,
+ forward slashes, hyphens, underscores, periods, exclamation marks,
+ asterisks, single quotes, and parentheses.
+ See https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
+ maxLength: 1024
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: 'keyPrefix must consist of safe S3 key characters:
+ alphanumeric characters, forward slashes, hyphens, underscores,
+ periods, exclamation marks, asterisks, single quotes,
+ and parentheses'
+ rule: self.matches('^[a-zA-Z0-9!_.*\'()/-]+$')
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ This field is immutable once set and cannot be removed.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ - message: kmsKeyARN is immutable
+ rule: self == oldSelf
+ region:
+ description: |-
+ region is the AWS region where the S3 bucket is located (e.g. "us-east-1").
+ Must be a valid AWS region identifier: lowercase letters, digits, and hyphens.
+ Must start and end with an alphanumeric character, no consecutive hyphens.
+ maxLength: 63
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: region must consist of lowercase letters, digits,
+ and hyphens, must start with a letter and end with an
+ alphanumeric character
+ rule: self.matches('^[a-z][a-z0-9-]*[a-z0-9]$')
+ - message: region must not contain consecutive hyphens
+ rule: '!self.contains(''--'')'
+ required:
+ - bucket
+ - credentials
+ - keyPrefix
+ - region
+ type: object
+ x-kubernetes-validations:
+ - message: kmsKeyARN cannot be removed once set
+ rule: '!has(oldSelf.kmsKeyARN) || has(self.kmsKeyARN)'
+ storageType:
+ description: |-
+ storageType specifies the type of cloud storage backend for the etcd backup.
+ Valid values are "S3" for AWS S3 storage and "AzureBlob" for Azure Blob Storage.
+ enum:
+ - S3
+ - AzureBlob
+ type: string
+ required:
+ - storageType
+ type: object
+ x-kubernetes-validations:
+ - message: s3 configuration is required when storageType is S3, and
+ forbidden otherwise
+ rule: 'self.storageType == ''S3'' ? has(self.s3) : !has(self.s3)'
+ - message: azureBlob configuration is required when storageType is
+ AzureBlob, and forbidden otherwise
+ rule: 'self.storageType == ''AzureBlob'' ? has(self.azureBlob) :
+ !has(self.azureBlob)'
+ required:
+ - storage
+ type: object
+ x-kubernetes-validations:
+ - message: HCPEtcdBackupSpec is immutable
+ rule: self == oldSelf
+ status:
+ description: status is the status of the HCPEtcdBackup.
+ minProperties: 1
+ properties:
+ conditions:
+ description: |-
+ conditions contains details for the current state of the etcd backup.
+ The following condition types are expected:
+ - "BackupCompleted": indicates whether the etcd backup has completed (True=success, False=failure).
+ items:
+ description: Condition contains details for one aspect of the current
+ state of this API Resource.
+ properties:
+ lastTransitionTime:
+ description: |-
+ lastTransitionTime is the 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: |-
+ message is a human readable message indicating details about the transition.
+ This may be an empty string.
+ maxLength: 32768
+ type: string
+ observedGeneration:
+ description: |-
+ observedGeneration represents the .metadata.generation that the condition was set based upon.
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+ with respect to the current state of the instance.
+ format: int64
+ minimum: 0
+ type: integer
+ reason:
+ description: |-
+ reason contains a programmatic identifier indicating the reason for the condition's last transition.
+ Producers of specific condition types may define expected values and meanings for this field,
+ and whether the values are considered a guaranteed API.
+ The value should be a CamelCase string.
+ This field may not be empty.
+ maxLength: 1024
+ minLength: 1
+ pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
+ type: string
+ status:
+ description: status of the condition, one of True, False, Unknown.
+ enum:
+ - "True"
+ - "False"
+ - Unknown
+ type: string
+ type:
+ description: type of condition in CamelCase or in foo.example.com/CamelCase.
+ maxLength: 316
+ pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
+ type: string
+ required:
+ - lastTransitionTime
+ - message
+ - reason
+ - status
+ - type
+ type: object
+ maxItems: 10
+ minItems: 1
+ type: array
+ x-kubernetes-list-map-keys:
+ - type
+ x-kubernetes-list-type: map
+ encryptionMetadata:
+ description: |-
+ encryptionMetadata contains metadata about the encryption of the backup.
+ When present, at least one platform-specific encryption block must be set.
+ maxProperties: 1
+ minProperties: 1
+ properties:
+ aws:
+ description: aws contains AWS-specific encryption metadata for
+ the backup.
+ properties:
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup in S3.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ required:
+ - kmsKeyARN
+ type: object
+ azure:
+ description: azure contains Azure-specific encryption metadata
+ for the backup.
+ properties:
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key used for encryption of the backup.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure Key Vault
+ (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ required:
+ - encryptionKeyURL
+ type: object
+ type: object
+ snapshotURL:
+ description: |-
+ snapshotURL is the URL of the completed backup snapshot in cloud storage.
+ Must be a valid URL with scheme https or s3.
+ maxLength: 2048
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: snapshotURL must be a valid URL
+ rule: isURL(self)
+ - message: snapshotURL scheme must be https or s3
+ rule: url(self).getScheme() == 'https' || url(self).getScheme()
+ == 's3'
+ type: object
+ required:
+ - spec
+ type: object
+ served: true
+ storage: true
+ subresources:
+ status: {}
diff --git a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hcpetcdbackups-TechPreviewNoUpgrade.crd.yaml b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hcpetcdbackups-TechPreviewNoUpgrade.crd.yaml
new file mode 100644
index 000000000000..813e7c23287e
--- /dev/null
+++ b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hcpetcdbackups-TechPreviewNoUpgrade.crd.yaml
@@ -0,0 +1,422 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ api.openshift.io/merged-by-featuregates: "true"
+ include.release.openshift.io/ibm-cloud-managed: "true"
+ include.release.openshift.io/self-managed-high-availability: "true"
+ release.openshift.io/feature-set: TechPreviewNoUpgrade
+ name: hcpetcdbackups.hypershift.openshift.io
+spec:
+ group: hypershift.openshift.io
+ names:
+ kind: HCPEtcdBackup
+ listKind: HCPEtcdBackupList
+ plural: hcpetcdbackups
+ shortNames:
+ - hcpetcdbk
+ singular: hcpetcdbackup
+ scope: Namespaced
+ versions:
+ - additionalPrinterColumns:
+ - description: Backup completion status
+ jsonPath: .status.conditions[?(@.type=="BackupCompleted")].status
+ name: Completed
+ type: string
+ - description: Snapshot URL
+ jsonPath: .status.snapshotURL
+ name: URL
+ type: string
+ - jsonPath: .metadata.creationTimestamp
+ name: Age
+ type: date
+ name: v1beta1
+ schema:
+ openAPIV3Schema:
+ description: |-
+ HCPEtcdBackup represents a request to back up etcd for a hosted control plane.
+ This resource is feature-gated behind the HCPEtcdBackup feature gate.
+ properties:
+ apiVersion:
+ description: |-
+ APIVersion defines the versioned schema of this representation of an object.
+ Servers should convert recognized schemas to the latest internal value, and
+ may reject unrecognized values.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |-
+ Kind is a string value representing the REST resource this object represents.
+ Servers may infer this from the endpoint the client submits requests to.
+ Cannot be updated.
+ In CamelCase.
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: spec is the specification for the HCPEtcdBackup.
+ properties:
+ storage:
+ description: storage defines the cloud storage backend where the etcd
+ snapshot will be uploaded.
+ properties:
+ azureBlob:
+ description: |-
+ azureBlob specifies the Azure Blob storage configuration for the etcd backup.
+ Required when storageType is "AzureBlob", and forbidden otherwise.
+ properties:
+ container:
+ description: |-
+ container is the name of the Azure Blob container where backups are stored.
+ Must be 3-63 characters, lowercase letters, numbers, and hyphens only.
+ Must start and end with a letter or number. Consecutive hyphens are not allowed.
+ See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names
+ maxLength: 63
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: container must consist of lowercase letters, numbers,
+ and hyphens, and must start and end with a letter or number
+ rule: self.matches('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$')
+ - message: container must not contain consecutive hyphens
+ rule: '!self.contains(''--'')'
+ credentials:
+ description: |-
+ credentials references a Secret containing Azure credentials for uploading
+ to Blob Storage. The Secret must exist in the Hypershift Operator namespace.
+ properties:
+ name:
+ description: |-
+ name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+ 253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+ Each period-separated segment must start and end with an alphanumeric character.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: name must consist only of lowercase alphanumeric
+ characters, hyphens, and periods. Each period-separated
+ segment must start and end with an alphanumeric character.
+ rule: self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$')
+ required:
+ - name
+ type: object
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key used for encryption.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ This field is immutable once set and cannot be removed.
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure Key Vault
+ (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ - message: encryptionKeyURL is immutable
+ rule: self == oldSelf
+ keyPrefix:
+ description: |-
+ keyPrefix is the blob name prefix for the backup file.
+ Must consist of valid blob name characters: alphanumeric characters, forward slashes,
+ hyphens, underscores, and periods.
+ See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#blob-names
+ maxLength: 1024
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: keyPrefix must consist of alphanumeric characters,
+ forward slashes, hyphens, underscores, and periods
+ rule: self.matches('^[a-zA-Z0-9/_.-]+$')
+ storageAccount:
+ description: |-
+ storageAccount is the name of the Azure Storage Account.
+ Must be 3-24 characters, lowercase letters and numbers only.
+ See https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#storage-account-name
+ maxLength: 24
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: storageAccount must consist of lowercase letters
+ and numbers only
+ rule: self.matches('^[a-z0-9]+$')
+ required:
+ - container
+ - credentials
+ - keyPrefix
+ - storageAccount
+ type: object
+ x-kubernetes-validations:
+ - message: encryptionKeyURL cannot be removed once set
+ rule: '!has(oldSelf.encryptionKeyURL) || has(self.encryptionKeyURL)'
+ s3:
+ description: |-
+ s3 specifies the S3 storage configuration for the etcd backup.
+ Required when storageType is "S3", and forbidden otherwise.
+ properties:
+ bucket:
+ description: |-
+ bucket is the name of the S3 bucket where backups are stored.
+ Must be 3-63 characters, lowercase letters, numbers, hyphens, and periods only.
+ Must start and end with a letter or number. Consecutive periods are not allowed.
+ See https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
+ maxLength: 63
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: bucket must consist of lowercase letters, numbers,
+ hyphens, and periods, and must start and end with a letter
+ or number
+ rule: self.matches('^[a-z0-9][a-z0-9.-]*[a-z0-9]$')
+ - message: bucket must not contain consecutive periods
+ rule: '!self.contains(''..'')'
+ credentials:
+ description: |-
+ credentials references a Secret containing AWS credentials for uploading
+ to S3. The Secret must exist in the Hypershift Operator namespace and contain a
+ 'credentials' key with a valid AWS credentials file.
+ properties:
+ name:
+ description: |-
+ name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+ 253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+ Each period-separated segment must start and end with an alphanumeric character.
+ maxLength: 253
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: name must consist only of lowercase alphanumeric
+ characters, hyphens, and periods. Each period-separated
+ segment must start and end with an alphanumeric character.
+ rule: self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$')
+ required:
+ - name
+ type: object
+ keyPrefix:
+ description: |-
+ keyPrefix is the S3 key prefix for the backup file.
+ Must consist of safe S3 object key characters: alphanumeric characters,
+ forward slashes, hyphens, underscores, periods, exclamation marks,
+ asterisks, single quotes, and parentheses.
+ See https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
+ maxLength: 1024
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: 'keyPrefix must consist of safe S3 key characters:
+ alphanumeric characters, forward slashes, hyphens, underscores,
+ periods, exclamation marks, asterisks, single quotes,
+ and parentheses'
+ rule: self.matches('^[a-zA-Z0-9!_.*\'()/-]+$')
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ This field is immutable once set and cannot be removed.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ - message: kmsKeyARN is immutable
+ rule: self == oldSelf
+ region:
+ description: |-
+ region is the AWS region where the S3 bucket is located (e.g. "us-east-1").
+ Must be a valid AWS region identifier: lowercase letters, digits, and hyphens.
+ Must start and end with an alphanumeric character, no consecutive hyphens.
+ maxLength: 63
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: region must consist of lowercase letters, digits,
+ and hyphens, must start with a letter and end with an
+ alphanumeric character
+ rule: self.matches('^[a-z][a-z0-9-]*[a-z0-9]$')
+ - message: region must not contain consecutive hyphens
+ rule: '!self.contains(''--'')'
+ required:
+ - bucket
+ - credentials
+ - keyPrefix
+ - region
+ type: object
+ x-kubernetes-validations:
+ - message: kmsKeyARN cannot be removed once set
+ rule: '!has(oldSelf.kmsKeyARN) || has(self.kmsKeyARN)'
+ storageType:
+ description: |-
+ storageType specifies the type of cloud storage backend for the etcd backup.
+ Valid values are "S3" for AWS S3 storage and "AzureBlob" for Azure Blob Storage.
+ enum:
+ - S3
+ - AzureBlob
+ type: string
+ required:
+ - storageType
+ type: object
+ x-kubernetes-validations:
+ - message: s3 configuration is required when storageType is S3, and
+ forbidden otherwise
+ rule: 'self.storageType == ''S3'' ? has(self.s3) : !has(self.s3)'
+ - message: azureBlob configuration is required when storageType is
+ AzureBlob, and forbidden otherwise
+ rule: 'self.storageType == ''AzureBlob'' ? has(self.azureBlob) :
+ !has(self.azureBlob)'
+ required:
+ - storage
+ type: object
+ x-kubernetes-validations:
+ - message: HCPEtcdBackupSpec is immutable
+ rule: self == oldSelf
+ status:
+ description: status is the status of the HCPEtcdBackup.
+ minProperties: 1
+ properties:
+ conditions:
+ description: |-
+ conditions contains details for the current state of the etcd backup.
+ The following condition types are expected:
+ - "BackupCompleted": indicates whether the etcd backup has completed (True=success, False=failure).
+ items:
+ description: Condition contains details for one aspect of the current
+ state of this API Resource.
+ properties:
+ lastTransitionTime:
+ description: |-
+ lastTransitionTime is the 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: |-
+ message is a human readable message indicating details about the transition.
+ This may be an empty string.
+ maxLength: 32768
+ type: string
+ observedGeneration:
+ description: |-
+ observedGeneration represents the .metadata.generation that the condition was set based upon.
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+ with respect to the current state of the instance.
+ format: int64
+ minimum: 0
+ type: integer
+ reason:
+ description: |-
+ reason contains a programmatic identifier indicating the reason for the condition's last transition.
+ Producers of specific condition types may define expected values and meanings for this field,
+ and whether the values are considered a guaranteed API.
+ The value should be a CamelCase string.
+ This field may not be empty.
+ maxLength: 1024
+ minLength: 1
+ pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
+ type: string
+ status:
+ description: status of the condition, one of True, False, Unknown.
+ enum:
+ - "True"
+ - "False"
+ - Unknown
+ type: string
+ type:
+ description: type of condition in CamelCase or in foo.example.com/CamelCase.
+ maxLength: 316
+ pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
+ type: string
+ required:
+ - lastTransitionTime
+ - message
+ - reason
+ - status
+ - type
+ type: object
+ maxItems: 10
+ minItems: 1
+ type: array
+ x-kubernetes-list-map-keys:
+ - type
+ x-kubernetes-list-type: map
+ encryptionMetadata:
+ description: |-
+ encryptionMetadata contains metadata about the encryption of the backup.
+ When present, at least one platform-specific encryption block must be set.
+ maxProperties: 1
+ minProperties: 1
+ properties:
+ aws:
+ description: aws contains AWS-specific encryption metadata for
+ the backup.
+ properties:
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup in S3.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ required:
+ - kmsKeyARN
+ type: object
+ azure:
+ description: azure contains Azure-specific encryption metadata
+ for the backup.
+ properties:
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key used for encryption of the backup.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure Key Vault
+ (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ required:
+ - encryptionKeyURL
+ type: object
+ type: object
+ snapshotURL:
+ description: |-
+ snapshotURL is the URL of the completed backup snapshot in cloud storage.
+ Must be a valid URL with scheme https or s3.
+ maxLength: 2048
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: snapshotURL must be a valid URL
+ rule: isURL(self)
+ - message: snapshotURL scheme must be https or s3
+ rule: url(self).getScheme() == 'https' || url(self).getScheme()
+ == 's3'
+ type: object
+ required:
+ - spec
+ type: object
+ served: true
+ storage: true
+ subresources:
+ status: {}
diff --git a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml
index 6fc61f44f188..4263f2928f94 100644
--- a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml
+++ b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml
@@ -3329,6 +3329,77 @@ spec:
description: managed specifies the behavior of an etcd cluster
managed by HyperShift.
properties:
+ backup:
+ description: |-
+ backup defines the backup configuration for managed etcd, including
+ optional KMS key settings for artifact encryption in cloud storage.
+ This configuration is only used when an HCPEtcdBackup CR exists.
+ properties:
+ aws:
+ description: |-
+ aws contains AWS-specific backup encryption configuration.
+ Required when platform is "AWS", and forbidden otherwise.
+ properties:
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN
+ (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ required:
+ - kmsKeyARN
+ type: object
+ azure:
+ description: |-
+ azure contains Azure-specific backup encryption configuration.
+ Required when platform is "Azure", and forbidden otherwise.
+ properties:
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS
+ URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure
+ Key Vault (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ required:
+ - encryptionKeyURL
+ type: object
+ platform:
+ description: |-
+ platform specifies the cloud platform for backup encryption configuration.
+ Valid values are "AWS" for AWS KMS encryption and "Azure" for Azure Key Vault encryption.
+ enum:
+ - AWS
+ - Azure
+ type: string
+ required:
+ - platform
+ type: object
+ x-kubernetes-validations:
+ - message: aws configuration is required when platform is
+ AWS, and forbidden otherwise
+ rule: 'self.platform == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: azure configuration is required when platform is
+ Azure, and forbidden otherwise
+ rule: 'self.platform == ''Azure'' ? has(self.azure) : !has(self.azure)'
storage:
description: storage specifies how etcd data is persisted.
properties:
diff --git a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml
index 7e3f39bf0076..19a2d380c9f5 100644
--- a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml
+++ b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml
@@ -3140,6 +3140,77 @@ spec:
description: managed specifies the behavior of an etcd cluster
managed by HyperShift.
properties:
+ backup:
+ description: |-
+ backup defines the backup configuration for managed etcd, including
+ optional KMS key settings for artifact encryption in cloud storage.
+ This configuration is only used when an HCPEtcdBackup CR exists.
+ properties:
+ aws:
+ description: |-
+ aws contains AWS-specific backup encryption configuration.
+ Required when platform is "AWS", and forbidden otherwise.
+ properties:
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN
+ (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ required:
+ - kmsKeyARN
+ type: object
+ azure:
+ description: |-
+ azure contains Azure-specific backup encryption configuration.
+ Required when platform is "Azure", and forbidden otherwise.
+ properties:
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS
+ URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure
+ Key Vault (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ required:
+ - encryptionKeyURL
+ type: object
+ platform:
+ description: |-
+ platform specifies the cloud platform for backup encryption configuration.
+ Valid values are "AWS" for AWS KMS encryption and "Azure" for Azure Key Vault encryption.
+ enum:
+ - AWS
+ - Azure
+ type: string
+ required:
+ - platform
+ type: object
+ x-kubernetes-validations:
+ - message: aws configuration is required when platform is
+ AWS, and forbidden otherwise
+ rule: 'self.platform == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: azure configuration is required when platform is
+ Azure, and forbidden otherwise
+ rule: 'self.platform == ''Azure'' ? has(self.azure) : !has(self.azure)'
storage:
description: storage specifies how etcd data is persisted.
properties:
diff --git a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml
index 678c1eaf22ea..780b8a336e11 100644
--- a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml
+++ b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml
@@ -3262,6 +3262,77 @@ spec:
description: managed specifies the behavior of an etcd cluster
managed by HyperShift.
properties:
+ backup:
+ description: |-
+ backup defines the backup configuration for managed etcd, including
+ optional KMS key settings for artifact encryption in cloud storage.
+ This configuration is only used when an HCPEtcdBackup CR exists.
+ properties:
+ aws:
+ description: |-
+ aws contains AWS-specific backup encryption configuration.
+ Required when platform is "AWS", and forbidden otherwise.
+ properties:
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN
+ (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ required:
+ - kmsKeyARN
+ type: object
+ azure:
+ description: |-
+ azure contains Azure-specific backup encryption configuration.
+ Required when platform is "Azure", and forbidden otherwise.
+ properties:
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS
+ URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure
+ Key Vault (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ required:
+ - encryptionKeyURL
+ type: object
+ platform:
+ description: |-
+ platform specifies the cloud platform for backup encryption configuration.
+ Valid values are "AWS" for AWS KMS encryption and "Azure" for Azure Key Vault encryption.
+ enum:
+ - AWS
+ - Azure
+ type: string
+ required:
+ - platform
+ type: object
+ x-kubernetes-validations:
+ - message: aws configuration is required when platform is
+ AWS, and forbidden otherwise
+ rule: 'self.platform == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: azure configuration is required when platform is
+ Azure, and forbidden otherwise
+ rule: 'self.platform == ''Azure'' ? has(self.azure) : !has(self.azure)'
storage:
description: storage specifies how etcd data is persisted.
properties:
diff --git a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml
index 3e6a5a56fa72..d67e6ea5123a 100644
--- a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml
+++ b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml
@@ -3073,6 +3073,77 @@ spec:
description: managed specifies the behavior of an etcd cluster
managed by HyperShift.
properties:
+ backup:
+ description: |-
+ backup defines the backup configuration for managed etcd, including
+ optional KMS key settings for artifact encryption in cloud storage.
+ This configuration is only used when an HCPEtcdBackup CR exists.
+ properties:
+ aws:
+ description: |-
+ aws contains AWS-specific backup encryption configuration.
+ Required when platform is "AWS", and forbidden otherwise.
+ properties:
+ kmsKeyARN:
+ description: |-
+ kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+ Must be a valid AWS KMS key ARN in the format
+ "arn::kms:::key/"
+ where partition is one of aws, aws-cn, or aws-us-gov.
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: kmsKeyARN must be a valid AWS KMS key ARN
+ (arn::kms:::key/)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')
+ required:
+ - kmsKeyARN
+ type: object
+ azure:
+ description: |-
+ azure contains Azure-specific backup encryption configuration.
+ Required when platform is "Azure", and forbidden otherwise.
+ properties:
+ encryptionKeyURL:
+ description: |-
+ encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+ Must be a valid Azure Key Vault key URL in the format
+ "https://.vault.azure.net/keys/[/]".
+ maxLength: 512
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: encryptionKeyURL must be a valid HTTPS
+ URL
+ rule: isURL(self) && url(self).getScheme() == 'https'
+ - message: encryptionKeyURL must point to an Azure
+ Key Vault (*.vault.azure.net)
+ rule: url(self).getHostname().matches('[a-zA-Z0-9-]+\\.vault\\.azure\\.net$')
+ - message: encryptionKeyURL path must be /keys/
+ or /keys//
+ rule: url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')
+ required:
+ - encryptionKeyURL
+ type: object
+ platform:
+ description: |-
+ platform specifies the cloud platform for backup encryption configuration.
+ Valid values are "AWS" for AWS KMS encryption and "Azure" for Azure Key Vault encryption.
+ enum:
+ - AWS
+ - Azure
+ type: string
+ required:
+ - platform
+ type: object
+ x-kubernetes-validations:
+ - message: aws configuration is required when platform is
+ AWS, and forbidden otherwise
+ rule: 'self.platform == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: azure configuration is required when platform is
+ Azure, and forbidden otherwise
+ rule: 'self.platform == ''Azure'' ? has(self.azure) : !has(self.azure)'
storage:
description: storage specifies how etcd data is persisted.
properties:
diff --git a/docs/content/reference/aggregated-docs.md b/docs/content/reference/aggregated-docs.md
index cfbf1420d934..81660f26f721 100644
--- a/docs/content/reference/aggregated-docs.md
+++ b/docs/content/reference/aggregated-docs.md
@@ -29020,6 +29020,81 @@ GCPPrivateServiceConnectStatus
+##HCPEtcdBackup { #hypershift.openshift.io/v1beta1.HCPEtcdBackup }
+
+
HCPEtcdBackup represents a request to back up etcd for a hosted control plane.
+This resource is feature-gated behind the HCPEtcdBackup feature gate.
+
+
+
+
+Field
+Description
+
+
+
+
+
+apiVersion
+string
+
+
+hypershift.openshift.io/v1beta1
+
+
+
+
+
+kind
+string
+
+HCPEtcdBackup
+
+
+
+metadata
+
+
+Kubernetes meta/v1.ObjectMeta
+
+
+
+
+(Optional)
+metadata is the metadata for the HCPEtcdBackup.
+Refer to the Kubernetes API documentation for the fields of the
+metadata field.
+
+
+
+
+spec,omitzero
+
+
+HCPEtcdBackupSpec
+
+
+
+
+spec is the specification for the HCPEtcdBackup.
+
+
+
+
+status,omitzero
+
+
+HCPEtcdBackupStatus
+
+
+
+
+(Optional)
+status is the status of the HCPEtcdBackup.
+
+
+
+
##HostedCluster { #hypershift.openshift.io/v1beta1.HostedCluster }
HostedCluster is the primary representation of a HyperShift cluster and encapsulates
@@ -33771,6 +33846,9 @@ created in the guest VPC
AWSEndpointServiceAvailable indicates whether the AWS Endpoint Service
has been created for the specified NLB in the management VPC
+"BackupCompleted"
+BackupCompleted indicates whether the etcd backup has completed.
+
"CVOScaledDown"
"CloudResourcesDestroyed"
@@ -35579,30 +35657,593 @@ See https://c
-value
+value
+
+string
+
+
+
+(Optional)
+value is the value part of the label. A label value can have a maximum of 63 characters.
+Empty values are allowed by GCP. If non-empty, it must start with a lowercase letter,
+contain only lowercase letters, digits, underscores, or hyphens, and end with a lowercase letter or digit.
+See https://cloud.google.com/compute/docs/labeling-resources for Compute Engine label requirements.
+
+
+
+
+###GCPResourceReference { #hypershift.openshift.io/v1beta1.GCPResourceReference }
+
+(Appears on:
+GCPNetworkConfig )
+
+
+
GCPResourceReference represents a reference to a GCP resource by name.
+Follows GCP naming patterns (name-based APIs, not ID-based like AWS).
+See https://google.aip.dev/122 for GCP resource name standards.
+
+
+
+
+Field
+Description
+
+
+
+
+
+name
+
+string
+
+
+
+name is the name of the GCP resource.
+Must conform to GCP resource naming standards: lowercase letters, numbers, and hyphens only.
+Must start with a lowercase letter and end with a lowercase letter or number, max 63 characters.
+Pattern: “^a-z ?$” (max 63 chars), per GCP naming requirements.
+See https://cloud.google.com/compute/docs/naming-resources for details.
+
+
+
+
+###GCPServiceAccountsEmails { #hypershift.openshift.io/v1beta1.GCPServiceAccountsEmails }
+
+(Appears on:
+GCPWorkloadIdentityConfig )
+
+
+
GCPServiceAccountsEmails contains email addresses of Google Service Accounts for different controllers.
+Each service account should have the appropriate IAM permissions for its specific role.
+
+
+
+
+Field
+Description
+
+
+
+
+
+nodePool
+
+string
+
+
+
+nodePool is the Google Service Account email for CAPG controllers
+that manage NodePool infrastructure (VMs, networks, disks, etc.).
+This GSA requires the following IAM roles:
+- roles/compute.instanceAdmin.v1 (Compute Instance Admin v1)
+- roles/compute.networkAdmin (Compute Network Admin)
+- roles/iam.serviceAccountUser (Service Account User - to attach service accounts to VMs)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+controlPlane
+
+string
+
+
+
+controlPlane is the Google Service Account email for the Control Plane Operator
+that manages control plane infrastructure and resources.
+This GSA requires the following IAM roles:
+- roles/dns.admin (DNS Admin - for managing DNS records)
+- roles/compute.networkAdmin (Compute Network Admin - for network management)
+- roles/compute.viewer (Compute Viewer - for CCM to read instance metadata)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+cloudController
+
+string
+
+
+
+cloudController is the Google Service Account email for the Cloud Controller Manager
+that manages LoadBalancer services and node lifecycle in the hosted cluster.
+This GSA requires the following IAM roles:
+- roles/compute.loadBalancerAdmin (Load Balancer Admin - for provisioning GCP load balancers)
+- roles/compute.securityAdmin (Security Admin - for managing firewall rules)
+- roles/compute.viewer (Compute Viewer - for reading instance metadata for node management)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+storage
+
+string
+
+
+
+storage is the Google Service Account email for the GCP PD CSI Driver
+that manages Persistent Disk storage operations (create, attach, delete volumes).
+This GSA requires the following IAM roles:
+- roles/compute.storageAdmin (Compute Storage Admin - for managing persistent disks)
+- roles/compute.instanceAdmin.v1 (Compute Instance Admin - for attaching disks to VMs)
+- roles/iam.serviceAccountUser (Service Account User - for impersonation)
+- roles/resourcemanager.tagUser (Tag User - for applying resource tags to disks)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+imageRegistry
+
+string
+
+
+
+imageRegistry is the Google Service Account email for the Image Registry Operator
+that manages GCS storage for the internal container image registry.
+This GSA requires the following IAM roles:
+- roles/storage.admin (Storage Admin - for creating and managing GCS buckets and objects)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+###GCPWorkloadIdentityConfig { #hypershift.openshift.io/v1beta1.GCPWorkloadIdentityConfig }
+
+(Appears on:
+GCPPlatformSpec )
+
+
+
GCPWorkloadIdentityConfig configures Workload Identity Federation for GCP clusters.
+This enables secure, short-lived token-based authentication without storing
+long-term service account keys.
+
+
+
+
+Field
+Description
+
+
+
+
+
+projectNumber
+
+string
+
+
+
+projectNumber is the numeric GCP project identifier for WIF configuration.
+This differs from the project ID and is required for workload identity pools.
+Must be a numeric string representing the GCP project number.
+This is a user-provided value obtained from GCP (found in GCP Console or via gcloud projects describe PROJECT_ID).
+Also available in the output of hypershift infra create gcp.
+
+
+
+
+poolID
+
+string
+
+
+
+poolID is the workload identity pool identifier within the project.
+This pool is used to manage external identity mappings.
+Must be 4-32 characters and start with a lowercase letter.
+Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-).
+Cannot start or end with a hyphen.
+The prefix “gcp-” is reserved by Google and cannot be used.
+This is a user-provided value referencing a pre-created Workload Identity Pool.
+Typically obtained from the output of hypershift infra create gcp which creates
+the WIF infrastructure and generates appropriate pool IDs.
+
+
+
+
+providerID
+
+string
+
+
+
+providerID is the workload identity provider identifier within the pool.
+This provider handles the token exchange between external and GCP identities.
+Must be 4-32 characters and start with a lowercase letter.
+Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-).
+Cannot start or end with a hyphen.
+The prefix “gcp-” is reserved by Google and cannot be used.
+This is a user-provided value referencing a pre-created OIDC Provider within the WIF Pool.
+Typically obtained from the output of hypershift infra create gcp.
+
+
+
+
+serviceAccountsEmails,omitzero
+
+
+GCPServiceAccountsEmails
+
+
+
+
+serviceAccountsEmails contains email addresses of various Google Service Accounts
+required to enable integrations for different controllers and operators.
+This follows the AWS pattern of having different roles for different purposes.
+
+
+
+
+###HCPEtcdBackupAzureBlob { #hypershift.openshift.io/v1beta1.HCPEtcdBackupAzureBlob }
+
+(Appears on:
+HCPEtcdBackupStorage )
+
+
+
HCPEtcdBackupAzureBlob defines the Azure Blob storage configuration for etcd backups.
+
+
+###HCPEtcdBackupConfig { #hypershift.openshift.io/v1beta1.HCPEtcdBackupConfig }
+
+(Appears on:
+ManagedEtcdSpec )
+
+
+
HCPEtcdBackupConfig defines the backup encryption configuration that is propagated
+from the HostedCluster to the HostedControlPlane via ManagedEtcdSpec.
+Exactly one platform-specific block must be specified, matching the platform discriminator.
+
+
+
+
+Field
+Description
+
+
+
+
+
+platform
+
+
+HCPEtcdBackupConfigPlatform
+
+
+
+
+platform specifies the cloud platform for backup encryption configuration.
+Valid values are “AWS” for AWS KMS encryption and “Azure” for Azure Key Vault encryption.
+
+
+
+
+aws,omitzero
+
+
+HCPEtcdBackupConfigAWS
+
+
+
+
+(Optional)
+aws contains AWS-specific backup encryption configuration.
+Required when platform is “AWS”, and forbidden otherwise.
+
+
+
+
+azure,omitzero
+
+
+HCPEtcdBackupConfigAzure
+
+
+
+
+(Optional)
+azure contains Azure-specific backup encryption configuration.
+Required when platform is “Azure”, and forbidden otherwise.
+
+
+
+
+###HCPEtcdBackupConfigAWS { #hypershift.openshift.io/v1beta1.HCPEtcdBackupConfigAWS }
+
+(Appears on:
+HCPEtcdBackupConfig )
+
+
+
HCPEtcdBackupConfigAWS defines AWS-specific encryption settings for etcd backups.
+
+
+
+
+Field
+Description
+
+
+
+
+
+kmsKeyARN
+
+string
+
+
+
+kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+Must be a valid AWS KMS key ARN in the format
+“arn::kms:::key/”
+where partition is one of aws, aws-cn, or aws-us-gov.
+
+
+
+
+###HCPEtcdBackupConfigAzure { #hypershift.openshift.io/v1beta1.HCPEtcdBackupConfigAzure }
+
+(Appears on:
+HCPEtcdBackupConfig )
+
+
+
HCPEtcdBackupConfigAzure defines Azure-specific encryption settings for etcd backups.
+
+
+
+
+Field
+Description
+
+
+
+
+
+encryptionKeyURL
+
+string
+
+
+
+encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+Must be a valid Azure Key Vault key URL in the format
+“https://.vault.azure.net/keys/[/]”.
+
+
+
+
+###HCPEtcdBackupConfigPlatform { #hypershift.openshift.io/v1beta1.HCPEtcdBackupConfigPlatform }
+
+(Appears on:
+HCPEtcdBackupConfig )
+
+
+
HCPEtcdBackupConfigPlatform identifies the cloud platform for backup encryption configuration.
+
+
+
+
+Value
+Description
+
+
+"AWS"
+AWSBackupConfigPlatform indicates AWS KMS encryption for backup artifacts.
+
+"Azure"
+AzureBackupConfigPlatform indicates Azure Key Vault encryption for backup artifacts.
+
+
+
+###HCPEtcdBackupEncryptionMetadata { #hypershift.openshift.io/v1beta1.HCPEtcdBackupEncryptionMetadata }
+
+(Appears on:
+HCPEtcdBackupStatus )
+
+
+
HCPEtcdBackupEncryptionMetadata contains platform-specific metadata about the
+encryption applied to the backup artifact in cloud storage.
+The presence of a platform block indicates that encryption was applied.
+
+
+###HCPEtcdBackupEncryptionMetadataAWS { #hypershift.openshift.io/v1beta1.HCPEtcdBackupEncryptionMetadataAWS }
+
+(Appears on:
+HCPEtcdBackupEncryptionMetadata )
+
+
+
HCPEtcdBackupEncryptionMetadataAWS contains AWS-specific encryption metadata.
+The values here reflect the encryption settings from the HCPEtcdBackupConfig input.
+
+
+
+
+Field
+Description
+
+
+
+
+
+kmsKeyARN
string
-(Optional)
-value is the value part of the label. A label value can have a maximum of 63 characters.
-Empty values are allowed by GCP. If non-empty, it must start with a lowercase letter,
-contain only lowercase letters, digits, underscores, or hyphens, and end with a lowercase letter or digit.
-See https://cloud.google.com/compute/docs/labeling-resources for Compute Engine label requirements.
+kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup in S3.
+Must be a valid AWS KMS key ARN in the format
+“arn::kms:::key/”
+where partition is one of aws, aws-cn, or aws-us-gov.
-###GCPResourceReference { #hypershift.openshift.io/v1beta1.GCPResourceReference }
+###HCPEtcdBackupEncryptionMetadataAzure { #hypershift.openshift.io/v1beta1.HCPEtcdBackupEncryptionMetadataAzure }
(Appears on:
-GCPNetworkConfig )
+HCPEtcdBackupEncryptionMetadata )
-
GCPResourceReference represents a reference to a GCP resource by name.
-Follows GCP naming patterns (name-based APIs, not ID-based like AWS).
-See https://google.aip.dev/122 for GCP resource name standards.
+HCPEtcdBackupEncryptionMetadataAzure contains Azure-specific encryption metadata.
+The values here reflect the encryption settings from the HCPEtcdBackupConfig input.
@@ -35614,29 +36255,26 @@ See https://google.aip.dev/122 for GCP
-name
+encryptionKeyURL
string
-name is the name of the GCP resource.
-Must conform to GCP resource naming standards: lowercase letters, numbers, and hyphens only.
-Must start with a lowercase letter and end with a lowercase letter or number, max 63 characters.
-Pattern: “^a-z ?$” (max 63 chars), per GCP naming requirements.
-See https://cloud.google.com/compute/docs/naming-resources for details.
+encryptionKeyURL is the URL of the Azure Key Vault key used for encryption of the backup.
+Must be a valid Azure Key Vault key URL in the format
+“https://.vault.azure.net/keys/[/]”.
-###GCPServiceAccountsEmails { #hypershift.openshift.io/v1beta1.GCPServiceAccountsEmails }
+###HCPEtcdBackupS3 { #hypershift.openshift.io/v1beta1.HCPEtcdBackupS3 }
(Appears on:
-GCPWorkloadIdentityConfig )
+HCPEtcdBackupStorage )
-
GCPServiceAccountsEmails contains email addresses of Google Service Accounts for different controllers.
-Each service account should have the appropriate IAM permissions for its specific role.
+HCPEtcdBackupS3 defines the S3 storage configuration for etcd backups.
@@ -35648,119 +36286,87 @@ Each service account should have the appropriate IAM permissions for its specifi
-nodePool
+bucket
string
-nodePool is the Google Service Account email for CAPG controllers
-that manage NodePool infrastructure (VMs, networks, disks, etc.).
-This GSA requires the following IAM roles:
-- roles/compute.instanceAdmin.v1 (Compute Instance Admin v1)
-- roles/compute.networkAdmin (Compute Network Admin)
-- roles/iam.serviceAccountUser (Service Account User - to attach service accounts to VMs)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+bucket is the name of the S3 bucket where backups are stored.
+Must be 3-63 characters, lowercase letters, numbers, hyphens, and periods only.
+Must start and end with a letter or number. Consecutive periods are not allowed.
+See https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
-controlPlane
+region
string
-controlPlane is the Google Service Account email for the Control Plane Operator
-that manages control plane infrastructure and resources.
-This GSA requires the following IAM roles:
-- roles/dns.admin (DNS Admin - for managing DNS records)
-- roles/compute.networkAdmin (Compute Network Admin - for network management)
-- roles/compute.viewer (Compute Viewer - for CCM to read instance metadata)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+region is the AWS region where the S3 bucket is located (e.g. “us-east-1”).
+Must be a valid AWS region identifier: lowercase letters, digits, and hyphens.
+Must start and end with an alphanumeric character, no consecutive hyphens.
-cloudController
+keyPrefix
string
-cloudController is the Google Service Account email for the Cloud Controller Manager
-that manages LoadBalancer services and node lifecycle in the hosted cluster.
-This GSA requires the following IAM roles:
-- roles/compute.loadBalancerAdmin (Load Balancer Admin - for provisioning GCP load balancers)
-- roles/compute.securityAdmin (Security Admin - for managing firewall rules)
-- roles/compute.viewer (Compute Viewer - for reading instance metadata for node management)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+keyPrefix is the S3 key prefix for the backup file.
+Must consist of safe S3 object key characters: alphanumeric characters,
+forward slashes, hyphens, underscores, periods, exclamation marks,
+asterisks, single quotes, and parentheses.
+See https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
-storage
+credentials,omitzero
-string
+
+SecretReference
+
-storage is the Google Service Account email for the GCP PD CSI Driver
-that manages Persistent Disk storage operations (create, attach, delete volumes).
-This GSA requires the following IAM roles:
-- roles/compute.storageAdmin (Compute Storage Admin - for managing persistent disks)
-- roles/compute.instanceAdmin.v1 (Compute Instance Admin - for attaching disks to VMs)
-- roles/iam.serviceAccountUser (Service Account User - for impersonation)
-- roles/resourcemanager.tagUser (Tag User - for applying resource tags to disks)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+credentials references a Secret containing AWS credentials for uploading
+to S3. The Secret must exist in the Hypershift Operator namespace and contain a
+‘credentials’ key with a valid AWS credentials file.
-imageRegistry
+kmsKeyARN
string
-imageRegistry is the Google Service Account email for the Image Registry Operator
-that manages GCS storage for the internal container image registry.
-This GSA requires the following IAM roles:
-- roles/storage.admin (Storage Admin - for creating and managing GCS buckets and objects)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+(Optional)
+kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup.
+Must be a valid AWS KMS key ARN in the format
+“arn::kms:::key/”
+where partition is one of aws, aws-cn, or aws-us-gov.
+This field is immutable once set and cannot be removed.
-###GCPWorkloadIdentityConfig { #hypershift.openshift.io/v1beta1.GCPWorkloadIdentityConfig }
+###HCPEtcdBackupSpec { #hypershift.openshift.io/v1beta1.HCPEtcdBackupSpec }
(Appears on:
-GCPPlatformSpec )
+HCPEtcdBackup )
-
GCPWorkloadIdentityConfig configures Workload Identity Federation for GCP clusters.
-This enables secure, short-lived token-based authentication without storing
-long-term service account keys.
+HCPEtcdBackupSpec defines the desired state of HCPEtcdBackup.
+HCPEtcdBackup is a one-shot backup request; the entire spec is immutable once created.
@@ -35772,73 +36378,167 @@ long-term service account keys.
-projectNumber
+storage,omitzero
-string
+
+HCPEtcdBackupStorage
+
-projectNumber is the numeric GCP project identifier for WIF configuration.
-This differs from the project ID and is required for workload identity pools.
-Must be a numeric string representing the GCP project number.
-This is a user-provided value obtained from GCP (found in GCP Console or via gcloud projects describe PROJECT_ID).
-Also available in the output of hypershift infra create gcp.
+storage defines the cloud storage backend where the etcd snapshot will be uploaded.
+
+
+###HCPEtcdBackupStatus { #hypershift.openshift.io/v1beta1.HCPEtcdBackupStatus }
+
+(Appears on:
+HCPEtcdBackup )
+
+
+
HCPEtcdBackupStatus defines the observed state of HCPEtcdBackup.
+
+
+
+
+Field
+Description
+
+
+
-poolID
+conditions
-string
+
+[]Kubernetes meta/v1.Condition
+
-poolID is the workload identity pool identifier within the project.
-This pool is used to manage external identity mappings.
-Must be 4-32 characters and start with a lowercase letter.
-Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-).
-Cannot start or end with a hyphen.
-The prefix “gcp-” is reserved by Google and cannot be used.
-This is a user-provided value referencing a pre-created Workload Identity Pool.
-Typically obtained from the output of hypershift infra create gcp which creates
-the WIF infrastructure and generates appropriate pool IDs.
+(Optional)
+conditions contains details for the current state of the etcd backup.
+The following condition types are expected:
+- “BackupCompleted”: indicates whether the etcd backup has completed (True=success, False=failure).
-providerID
+snapshotURL
string
-providerID is the workload identity provider identifier within the pool.
-This provider handles the token exchange between external and GCP identities.
-Must be 4-32 characters and start with a lowercase letter.
-Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-).
-Cannot start or end with a hyphen.
-The prefix “gcp-” is reserved by Google and cannot be used.
-This is a user-provided value referencing a pre-created OIDC Provider within the WIF Pool.
-Typically obtained from the output of hypershift infra create gcp.
+(Optional)
+snapshotURL is the URL of the completed backup snapshot in cloud storage.
+Must be a valid URL with scheme https or s3.
-serviceAccountsEmails,omitzero
+encryptionMetadata,omitzero
-
-GCPServiceAccountsEmails
+
+HCPEtcdBackupEncryptionMetadata
-serviceAccountsEmails contains email addresses of various Google Service Accounts
-required to enable integrations for different controllers and operators.
-This follows the AWS pattern of having different roles for different purposes.
+(Optional)
+encryptionMetadata contains metadata about the encryption of the backup.
+When present, at least one platform-specific encryption block must be set.
+
+
+
+
+###HCPEtcdBackupStorage { #hypershift.openshift.io/v1beta1.HCPEtcdBackupStorage }
+
+(Appears on:
+HCPEtcdBackupSpec )
+
+
+
HCPEtcdBackupStorage defines the cloud storage backend configuration for the backup.
+Exactly one storage backend must be specified, matching the storageType discriminator.
+
+
+
+
+Field
+Description
+
+
+
+
+
+storageType
+
+
+HCPEtcdBackupStorageType
+
+
+
+
+storageType specifies the type of cloud storage backend for the etcd backup.
+Valid values are “S3” for AWS S3 storage and “AzureBlob” for Azure Blob Storage.
+
+
+
+
+s3,omitzero
+
+
+HCPEtcdBackupS3
+
+
+
+
+(Optional)
+s3 specifies the S3 storage configuration for the etcd backup.
+Required when storageType is “S3”, and forbidden otherwise.
+
+
+
+
+azureBlob,omitzero
+
+
+HCPEtcdBackupAzureBlob
+
+
+
+
+(Optional)
+azureBlob specifies the Azure Blob storage configuration for the etcd backup.
+Required when storageType is “AzureBlob”, and forbidden otherwise.
+###HCPEtcdBackupStorageType { #hypershift.openshift.io/v1beta1.HCPEtcdBackupStorageType }
+
+(Appears on:
+HCPEtcdBackupStorage )
+
+
+
HCPEtcdBackupStorageType is the type of storage for etcd backups.
+
+
+
+
+Value
+Description
+
+
+"AzureBlob"
+AzureBlobBackupStorage indicates that the backup is stored in Azure Blob Storage.
+
+"S3"
+S3BackupStorage indicates that the backup is stored in AWS S3.
+
+
+
###HostedClusterSpec { #hypershift.openshift.io/v1beta1.HostedClusterSpec }
(Appears on:
@@ -39299,6 +39999,22 @@ ManagedEtcdStorageSpec
storage specifies how etcd data is persisted.
+
+
+backup,omitzero
+
+
+HCPEtcdBackupConfig
+
+
+
+
+(Optional)
+backup defines the backup configuration for managed etcd, including
+optional KMS key settings for artifact encryption in cloud storage.
+This configuration is only used when an HCPEtcdBackup CR exists.
+
+
###ManagedEtcdStorageSpec { #hypershift.openshift.io/v1beta1.ManagedEtcdStorageSpec }
@@ -42680,6 +43396,39 @@ AESCBCSpec
+###SecretReference { #hypershift.openshift.io/v1beta1.SecretReference }
+
+(Appears on:
+HCPEtcdBackupAzureBlob ,
+HCPEtcdBackupS3 )
+
+
+
SecretReference contains a reference to a Secret by name.
+The Secret must exist in the same namespace as the referencing resource.
+
+
+
+
+Field
+Description
+
+
+
+
+
+name
+
+string
+
+
+
+name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+Each period-separated segment must start and end with an alphanumeric character.
+
+
+
+
###ServiceNetworkEntry { #hypershift.openshift.io/v1beta1.ServiceNetworkEntry }
(Appears on:
diff --git a/docs/content/reference/api.md b/docs/content/reference/api.md
index 6442ab1b5ed6..94a83745297d 100644
--- a/docs/content/reference/api.md
+++ b/docs/content/reference/api.md
@@ -231,6 +231,81 @@ GCPPrivateServiceConnectStatus
+##HCPEtcdBackup { #hypershift.openshift.io/v1beta1.HCPEtcdBackup }
+
+
HCPEtcdBackup represents a request to back up etcd for a hosted control plane.
+This resource is feature-gated behind the HCPEtcdBackup feature gate.
+
+
+
+
+Field
+Description
+
+
+
+
+
+apiVersion
+string
+
+
+hypershift.openshift.io/v1beta1
+
+
+
+
+
+kind
+string
+
+HCPEtcdBackup
+
+
+
+metadata
+
+
+Kubernetes meta/v1.ObjectMeta
+
+
+
+
+(Optional)
+metadata is the metadata for the HCPEtcdBackup.
+Refer to the Kubernetes API documentation for the fields of the
+metadata field.
+
+
+
+
+spec,omitzero
+
+
+HCPEtcdBackupSpec
+
+
+
+
+spec is the specification for the HCPEtcdBackup.
+
+
+
+
+status,omitzero
+
+
+HCPEtcdBackupStatus
+
+
+
+
+(Optional)
+status is the status of the HCPEtcdBackup.
+
+
+
+
##HostedCluster { #hypershift.openshift.io/v1beta1.HostedCluster }
HostedCluster is the primary representation of a HyperShift cluster and encapsulates
@@ -4982,6 +5057,9 @@ created in the guest VPC
AWSEndpointServiceAvailable indicates whether the AWS Endpoint Service
has been created for the specified NLB in the management VPC
+"BackupCompleted"
+BackupCompleted indicates whether the etcd backup has completed.
+
"CVOScaledDown"
"CloudResourcesDestroyed"
@@ -6790,30 +6868,593 @@ See https://c
-value
+value
+
+string
+
+
+
+(Optional)
+value is the value part of the label. A label value can have a maximum of 63 characters.
+Empty values are allowed by GCP. If non-empty, it must start with a lowercase letter,
+contain only lowercase letters, digits, underscores, or hyphens, and end with a lowercase letter or digit.
+See https://cloud.google.com/compute/docs/labeling-resources for Compute Engine label requirements.
+
+
+
+
+###GCPResourceReference { #hypershift.openshift.io/v1beta1.GCPResourceReference }
+
+(Appears on:
+GCPNetworkConfig )
+
+
+
GCPResourceReference represents a reference to a GCP resource by name.
+Follows GCP naming patterns (name-based APIs, not ID-based like AWS).
+See https://google.aip.dev/122 for GCP resource name standards.
+
+
+
+
+Field
+Description
+
+
+
+
+
+name
+
+string
+
+
+
+name is the name of the GCP resource.
+Must conform to GCP resource naming standards: lowercase letters, numbers, and hyphens only.
+Must start with a lowercase letter and end with a lowercase letter or number, max 63 characters.
+Pattern: “^a-z ?$” (max 63 chars), per GCP naming requirements.
+See https://cloud.google.com/compute/docs/naming-resources for details.
+
+
+
+
+###GCPServiceAccountsEmails { #hypershift.openshift.io/v1beta1.GCPServiceAccountsEmails }
+
+(Appears on:
+GCPWorkloadIdentityConfig )
+
+
+
GCPServiceAccountsEmails contains email addresses of Google Service Accounts for different controllers.
+Each service account should have the appropriate IAM permissions for its specific role.
+
+
+
+
+Field
+Description
+
+
+
+
+
+nodePool
+
+string
+
+
+
+nodePool is the Google Service Account email for CAPG controllers
+that manage NodePool infrastructure (VMs, networks, disks, etc.).
+This GSA requires the following IAM roles:
+- roles/compute.instanceAdmin.v1 (Compute Instance Admin v1)
+- roles/compute.networkAdmin (Compute Network Admin)
+- roles/iam.serviceAccountUser (Service Account User - to attach service accounts to VMs)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+controlPlane
+
+string
+
+
+
+controlPlane is the Google Service Account email for the Control Plane Operator
+that manages control plane infrastructure and resources.
+This GSA requires the following IAM roles:
+- roles/dns.admin (DNS Admin - for managing DNS records)
+- roles/compute.networkAdmin (Compute Network Admin - for network management)
+- roles/compute.viewer (Compute Viewer - for CCM to read instance metadata)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+cloudController
+
+string
+
+
+
+cloudController is the Google Service Account email for the Cloud Controller Manager
+that manages LoadBalancer services and node lifecycle in the hosted cluster.
+This GSA requires the following IAM roles:
+- roles/compute.loadBalancerAdmin (Load Balancer Admin - for provisioning GCP load balancers)
+- roles/compute.securityAdmin (Security Admin - for managing firewall rules)
+- roles/compute.viewer (Compute Viewer - for reading instance metadata for node management)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+storage
+
+string
+
+
+
+storage is the Google Service Account email for the GCP PD CSI Driver
+that manages Persistent Disk storage operations (create, attach, delete volumes).
+This GSA requires the following IAM roles:
+- roles/compute.storageAdmin (Compute Storage Admin - for managing persistent disks)
+- roles/compute.instanceAdmin.v1 (Compute Instance Admin - for attaching disks to VMs)
+- roles/iam.serviceAccountUser (Service Account User - for impersonation)
+- roles/resourcemanager.tagUser (Tag User - for applying resource tags to disks)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+imageRegistry
+
+string
+
+
+
+imageRegistry is the Google Service Account email for the Image Registry Operator
+that manages GCS storage for the internal container image registry.
+This GSA requires the following IAM roles:
+- roles/storage.admin (Storage Admin - for creating and managing GCS buckets and objects)
+See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
+Format: service-account-name@project-id.iam.gserviceaccount.com
+This is a user-provided value referencing a pre-created Google Service Account.
+Typically obtained from the output of hypershift infra create gcp which creates
+the required service accounts with appropriate IAM roles and WIF bindings.
+
+
+
+
+###GCPWorkloadIdentityConfig { #hypershift.openshift.io/v1beta1.GCPWorkloadIdentityConfig }
+
+(Appears on:
+GCPPlatformSpec )
+
+
+
GCPWorkloadIdentityConfig configures Workload Identity Federation for GCP clusters.
+This enables secure, short-lived token-based authentication without storing
+long-term service account keys.
+
+
+
+
+Field
+Description
+
+
+
+
+
+projectNumber
+
+string
+
+
+
+projectNumber is the numeric GCP project identifier for WIF configuration.
+This differs from the project ID and is required for workload identity pools.
+Must be a numeric string representing the GCP project number.
+This is a user-provided value obtained from GCP (found in GCP Console or via gcloud projects describe PROJECT_ID).
+Also available in the output of hypershift infra create gcp.
+
+
+
+
+poolID
+
+string
+
+
+
+poolID is the workload identity pool identifier within the project.
+This pool is used to manage external identity mappings.
+Must be 4-32 characters and start with a lowercase letter.
+Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-).
+Cannot start or end with a hyphen.
+The prefix “gcp-” is reserved by Google and cannot be used.
+This is a user-provided value referencing a pre-created Workload Identity Pool.
+Typically obtained from the output of hypershift infra create gcp which creates
+the WIF infrastructure and generates appropriate pool IDs.
+
+
+
+
+providerID
+
+string
+
+
+
+providerID is the workload identity provider identifier within the pool.
+This provider handles the token exchange between external and GCP identities.
+Must be 4-32 characters and start with a lowercase letter.
+Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-).
+Cannot start or end with a hyphen.
+The prefix “gcp-” is reserved by Google and cannot be used.
+This is a user-provided value referencing a pre-created OIDC Provider within the WIF Pool.
+Typically obtained from the output of hypershift infra create gcp.
+
+
+
+
+serviceAccountsEmails,omitzero
+
+
+GCPServiceAccountsEmails
+
+
+
+
+serviceAccountsEmails contains email addresses of various Google Service Accounts
+required to enable integrations for different controllers and operators.
+This follows the AWS pattern of having different roles for different purposes.
+
+
+
+
+###HCPEtcdBackupAzureBlob { #hypershift.openshift.io/v1beta1.HCPEtcdBackupAzureBlob }
+
+(Appears on:
+HCPEtcdBackupStorage )
+
+
+
HCPEtcdBackupAzureBlob defines the Azure Blob storage configuration for etcd backups.
+
+
+###HCPEtcdBackupConfig { #hypershift.openshift.io/v1beta1.HCPEtcdBackupConfig }
+
+(Appears on:
+ManagedEtcdSpec )
+
+
+
HCPEtcdBackupConfig defines the backup encryption configuration that is propagated
+from the HostedCluster to the HostedControlPlane via ManagedEtcdSpec.
+Exactly one platform-specific block must be specified, matching the platform discriminator.
+
+
+
+
+Field
+Description
+
+
+
+
+
+platform
+
+
+HCPEtcdBackupConfigPlatform
+
+
+
+
+platform specifies the cloud platform for backup encryption configuration.
+Valid values are “AWS” for AWS KMS encryption and “Azure” for Azure Key Vault encryption.
+
+
+
+
+aws,omitzero
+
+
+HCPEtcdBackupConfigAWS
+
+
+
+
+(Optional)
+aws contains AWS-specific backup encryption configuration.
+Required when platform is “AWS”, and forbidden otherwise.
+
+
+
+
+azure,omitzero
+
+
+HCPEtcdBackupConfigAzure
+
+
+
+
+(Optional)
+azure contains Azure-specific backup encryption configuration.
+Required when platform is “Azure”, and forbidden otherwise.
+
+
+
+
+###HCPEtcdBackupConfigAWS { #hypershift.openshift.io/v1beta1.HCPEtcdBackupConfigAWS }
+
+(Appears on:
+HCPEtcdBackupConfig )
+
+
+
HCPEtcdBackupConfigAWS defines AWS-specific encryption settings for etcd backups.
+
+
+
+
+Field
+Description
+
+
+
+
+
+kmsKeyARN
+
+string
+
+
+
+kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+Must be a valid AWS KMS key ARN in the format
+“arn::kms:::key/”
+where partition is one of aws, aws-cn, or aws-us-gov.
+
+
+
+
+###HCPEtcdBackupConfigAzure { #hypershift.openshift.io/v1beta1.HCPEtcdBackupConfigAzure }
+
+(Appears on:
+HCPEtcdBackupConfig )
+
+
+
HCPEtcdBackupConfigAzure defines Azure-specific encryption settings for etcd backups.
+
+
+
+
+Field
+Description
+
+
+
+
+
+encryptionKeyURL
+
+string
+
+
+
+encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+Must be a valid Azure Key Vault key URL in the format
+“https://.vault.azure.net/keys/[/]”.
+
+
+
+
+###HCPEtcdBackupConfigPlatform { #hypershift.openshift.io/v1beta1.HCPEtcdBackupConfigPlatform }
+
+(Appears on:
+HCPEtcdBackupConfig )
+
+
+
HCPEtcdBackupConfigPlatform identifies the cloud platform for backup encryption configuration.
+
+
+
+
+Value
+Description
+
+
+"AWS"
+AWSBackupConfigPlatform indicates AWS KMS encryption for backup artifacts.
+
+"Azure"
+AzureBackupConfigPlatform indicates Azure Key Vault encryption for backup artifacts.
+
+
+
+###HCPEtcdBackupEncryptionMetadata { #hypershift.openshift.io/v1beta1.HCPEtcdBackupEncryptionMetadata }
+
+(Appears on:
+HCPEtcdBackupStatus )
+
+
+
HCPEtcdBackupEncryptionMetadata contains platform-specific metadata about the
+encryption applied to the backup artifact in cloud storage.
+The presence of a platform block indicates that encryption was applied.
+
+
+###HCPEtcdBackupEncryptionMetadataAWS { #hypershift.openshift.io/v1beta1.HCPEtcdBackupEncryptionMetadataAWS }
+
+(Appears on:
+HCPEtcdBackupEncryptionMetadata )
+
+
+
HCPEtcdBackupEncryptionMetadataAWS contains AWS-specific encryption metadata.
+The values here reflect the encryption settings from the HCPEtcdBackupConfig input.
+
+
+
+
+Field
+Description
+
+
+
+
+
+kmsKeyARN
string
-(Optional)
-value is the value part of the label. A label value can have a maximum of 63 characters.
-Empty values are allowed by GCP. If non-empty, it must start with a lowercase letter,
-contain only lowercase letters, digits, underscores, or hyphens, and end with a lowercase letter or digit.
-See https://cloud.google.com/compute/docs/labeling-resources for Compute Engine label requirements.
+kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup in S3.
+Must be a valid AWS KMS key ARN in the format
+“arn::kms:::key/”
+where partition is one of aws, aws-cn, or aws-us-gov.
-###GCPResourceReference { #hypershift.openshift.io/v1beta1.GCPResourceReference }
+###HCPEtcdBackupEncryptionMetadataAzure { #hypershift.openshift.io/v1beta1.HCPEtcdBackupEncryptionMetadataAzure }
(Appears on:
-GCPNetworkConfig )
+HCPEtcdBackupEncryptionMetadata )
-
GCPResourceReference represents a reference to a GCP resource by name.
-Follows GCP naming patterns (name-based APIs, not ID-based like AWS).
-See https://google.aip.dev/122 for GCP resource name standards.
+HCPEtcdBackupEncryptionMetadataAzure contains Azure-specific encryption metadata.
+The values here reflect the encryption settings from the HCPEtcdBackupConfig input.
@@ -6825,29 +7466,26 @@ See https://google.aip.dev/122 for GCP
-name
+encryptionKeyURL
string
-name is the name of the GCP resource.
-Must conform to GCP resource naming standards: lowercase letters, numbers, and hyphens only.
-Must start with a lowercase letter and end with a lowercase letter or number, max 63 characters.
-Pattern: “^a-z ?$” (max 63 chars), per GCP naming requirements.
-See https://cloud.google.com/compute/docs/naming-resources for details.
+encryptionKeyURL is the URL of the Azure Key Vault key used for encryption of the backup.
+Must be a valid Azure Key Vault key URL in the format
+“https://.vault.azure.net/keys/[/]”.
-###GCPServiceAccountsEmails { #hypershift.openshift.io/v1beta1.GCPServiceAccountsEmails }
+###HCPEtcdBackupS3 { #hypershift.openshift.io/v1beta1.HCPEtcdBackupS3 }
(Appears on:
-GCPWorkloadIdentityConfig )
+HCPEtcdBackupStorage )
-
GCPServiceAccountsEmails contains email addresses of Google Service Accounts for different controllers.
-Each service account should have the appropriate IAM permissions for its specific role.
+HCPEtcdBackupS3 defines the S3 storage configuration for etcd backups.
@@ -6859,119 +7497,87 @@ Each service account should have the appropriate IAM permissions for its specifi
-nodePool
+bucket
string
-nodePool is the Google Service Account email for CAPG controllers
-that manage NodePool infrastructure (VMs, networks, disks, etc.).
-This GSA requires the following IAM roles:
-- roles/compute.instanceAdmin.v1 (Compute Instance Admin v1)
-- roles/compute.networkAdmin (Compute Network Admin)
-- roles/iam.serviceAccountUser (Service Account User - to attach service accounts to VMs)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+bucket is the name of the S3 bucket where backups are stored.
+Must be 3-63 characters, lowercase letters, numbers, hyphens, and periods only.
+Must start and end with a letter or number. Consecutive periods are not allowed.
+See https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
-controlPlane
+region
string
-controlPlane is the Google Service Account email for the Control Plane Operator
-that manages control plane infrastructure and resources.
-This GSA requires the following IAM roles:
-- roles/dns.admin (DNS Admin - for managing DNS records)
-- roles/compute.networkAdmin (Compute Network Admin - for network management)
-- roles/compute.viewer (Compute Viewer - for CCM to read instance metadata)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+region is the AWS region where the S3 bucket is located (e.g. “us-east-1”).
+Must be a valid AWS region identifier: lowercase letters, digits, and hyphens.
+Must start and end with an alphanumeric character, no consecutive hyphens.
-cloudController
+keyPrefix
string
-cloudController is the Google Service Account email for the Cloud Controller Manager
-that manages LoadBalancer services and node lifecycle in the hosted cluster.
-This GSA requires the following IAM roles:
-- roles/compute.loadBalancerAdmin (Load Balancer Admin - for provisioning GCP load balancers)
-- roles/compute.securityAdmin (Security Admin - for managing firewall rules)
-- roles/compute.viewer (Compute Viewer - for reading instance metadata for node management)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+keyPrefix is the S3 key prefix for the backup file.
+Must consist of safe S3 object key characters: alphanumeric characters,
+forward slashes, hyphens, underscores, periods, exclamation marks,
+asterisks, single quotes, and parentheses.
+See https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
-storage
+credentials,omitzero
-string
+
+SecretReference
+
-storage is the Google Service Account email for the GCP PD CSI Driver
-that manages Persistent Disk storage operations (create, attach, delete volumes).
-This GSA requires the following IAM roles:
-- roles/compute.storageAdmin (Compute Storage Admin - for managing persistent disks)
-- roles/compute.instanceAdmin.v1 (Compute Instance Admin - for attaching disks to VMs)
-- roles/iam.serviceAccountUser (Service Account User - for impersonation)
-- roles/resourcemanager.tagUser (Tag User - for applying resource tags to disks)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+credentials references a Secret containing AWS credentials for uploading
+to S3. The Secret must exist in the Hypershift Operator namespace and contain a
+‘credentials’ key with a valid AWS credentials file.
-imageRegistry
+kmsKeyARN
string
-imageRegistry is the Google Service Account email for the Image Registry Operator
-that manages GCS storage for the internal container image registry.
-This GSA requires the following IAM roles:
-- roles/storage.admin (Storage Admin - for creating and managing GCS buckets and objects)
-See cmd/infra/gcp/iam-bindings.json for the authoritative role definitions.
-Format: service-account-name@project-id.iam.gserviceaccount.com
-This is a user-provided value referencing a pre-created Google Service Account.
-Typically obtained from the output of hypershift infra create gcp which creates
-the required service accounts with appropriate IAM roles and WIF bindings.
+(Optional)
+kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup.
+Must be a valid AWS KMS key ARN in the format
+“arn::kms:::key/”
+where partition is one of aws, aws-cn, or aws-us-gov.
+This field is immutable once set and cannot be removed.
-###GCPWorkloadIdentityConfig { #hypershift.openshift.io/v1beta1.GCPWorkloadIdentityConfig }
+###HCPEtcdBackupSpec { #hypershift.openshift.io/v1beta1.HCPEtcdBackupSpec }
(Appears on:
-GCPPlatformSpec )
+HCPEtcdBackup )
-
GCPWorkloadIdentityConfig configures Workload Identity Federation for GCP clusters.
-This enables secure, short-lived token-based authentication without storing
-long-term service account keys.
+HCPEtcdBackupSpec defines the desired state of HCPEtcdBackup.
+HCPEtcdBackup is a one-shot backup request; the entire spec is immutable once created.
@@ -6983,73 +7589,167 @@ long-term service account keys.
-projectNumber
+storage,omitzero
-string
+
+HCPEtcdBackupStorage
+
-projectNumber is the numeric GCP project identifier for WIF configuration.
-This differs from the project ID and is required for workload identity pools.
-Must be a numeric string representing the GCP project number.
-This is a user-provided value obtained from GCP (found in GCP Console or via gcloud projects describe PROJECT_ID).
-Also available in the output of hypershift infra create gcp.
+storage defines the cloud storage backend where the etcd snapshot will be uploaded.
+
+
+###HCPEtcdBackupStatus { #hypershift.openshift.io/v1beta1.HCPEtcdBackupStatus }
+
+(Appears on:
+HCPEtcdBackup )
+
+
+
HCPEtcdBackupStatus defines the observed state of HCPEtcdBackup.
+
+
+
+
+Field
+Description
+
+
+
-poolID
+conditions
-string
+
+[]Kubernetes meta/v1.Condition
+
-poolID is the workload identity pool identifier within the project.
-This pool is used to manage external identity mappings.
-Must be 4-32 characters and start with a lowercase letter.
-Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-).
-Cannot start or end with a hyphen.
-The prefix “gcp-” is reserved by Google and cannot be used.
-This is a user-provided value referencing a pre-created Workload Identity Pool.
-Typically obtained from the output of hypershift infra create gcp which creates
-the WIF infrastructure and generates appropriate pool IDs.
+(Optional)
+conditions contains details for the current state of the etcd backup.
+The following condition types are expected:
+- “BackupCompleted”: indicates whether the etcd backup has completed (True=success, False=failure).
-providerID
+snapshotURL
string
-providerID is the workload identity provider identifier within the pool.
-This provider handles the token exchange between external and GCP identities.
-Must be 4-32 characters and start with a lowercase letter.
-Allowed characters: lowercase letters (a-z), digits (0-9), hyphens (-).
-Cannot start or end with a hyphen.
-The prefix “gcp-” is reserved by Google and cannot be used.
-This is a user-provided value referencing a pre-created OIDC Provider within the WIF Pool.
-Typically obtained from the output of hypershift infra create gcp.
+(Optional)
+snapshotURL is the URL of the completed backup snapshot in cloud storage.
+Must be a valid URL with scheme https or s3.
-serviceAccountsEmails,omitzero
+encryptionMetadata,omitzero
-
-GCPServiceAccountsEmails
+
+HCPEtcdBackupEncryptionMetadata
-serviceAccountsEmails contains email addresses of various Google Service Accounts
-required to enable integrations for different controllers and operators.
-This follows the AWS pattern of having different roles for different purposes.
+(Optional)
+encryptionMetadata contains metadata about the encryption of the backup.
+When present, at least one platform-specific encryption block must be set.
+
+
+
+
+###HCPEtcdBackupStorage { #hypershift.openshift.io/v1beta1.HCPEtcdBackupStorage }
+
+(Appears on:
+HCPEtcdBackupSpec )
+
+
+
HCPEtcdBackupStorage defines the cloud storage backend configuration for the backup.
+Exactly one storage backend must be specified, matching the storageType discriminator.
+
+
+
+
+Field
+Description
+
+
+
+
+
+storageType
+
+
+HCPEtcdBackupStorageType
+
+
+
+
+storageType specifies the type of cloud storage backend for the etcd backup.
+Valid values are “S3” for AWS S3 storage and “AzureBlob” for Azure Blob Storage.
+
+
+
+
+s3,omitzero
+
+
+HCPEtcdBackupS3
+
+
+
+
+(Optional)
+s3 specifies the S3 storage configuration for the etcd backup.
+Required when storageType is “S3”, and forbidden otherwise.
+
+
+
+
+azureBlob,omitzero
+
+
+HCPEtcdBackupAzureBlob
+
+
+
+
+(Optional)
+azureBlob specifies the Azure Blob storage configuration for the etcd backup.
+Required when storageType is “AzureBlob”, and forbidden otherwise.
+###HCPEtcdBackupStorageType { #hypershift.openshift.io/v1beta1.HCPEtcdBackupStorageType }
+
+(Appears on:
+HCPEtcdBackupStorage )
+
+
+
HCPEtcdBackupStorageType is the type of storage for etcd backups.
+
+
+
+
+Value
+Description
+
+
+"AzureBlob"
+AzureBlobBackupStorage indicates that the backup is stored in Azure Blob Storage.
+
+"S3"
+S3BackupStorage indicates that the backup is stored in AWS S3.
+
+
+
###HostedClusterSpec { #hypershift.openshift.io/v1beta1.HostedClusterSpec }
(Appears on:
@@ -10510,6 +11210,22 @@ ManagedEtcdStorageSpec
storage specifies how etcd data is persisted.
+
+
+backup,omitzero
+
+
+HCPEtcdBackupConfig
+
+
+
+
+(Optional)
+backup defines the backup configuration for managed etcd, including
+optional KMS key settings for artifact encryption in cloud storage.
+This configuration is only used when an HCPEtcdBackup CR exists.
+
+
###ManagedEtcdStorageSpec { #hypershift.openshift.io/v1beta1.ManagedEtcdStorageSpec }
@@ -13891,6 +14607,39 @@ AESCBCSpec
+###SecretReference { #hypershift.openshift.io/v1beta1.SecretReference }
+
+(Appears on:
+HCPEtcdBackupAzureBlob ,
+HCPEtcdBackupS3 )
+
+
+
SecretReference contains a reference to a Secret by name.
+The Secret must exist in the same namespace as the referencing resource.
+
+
+
+
+Field
+Description
+
+
+
+
+
+name
+
+string
+
+
+
+name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+Each period-separated segment must start and end with an alphanumeric character.
+
+
+
+
###ServiceNetworkEntry { #hypershift.openshift.io/v1beta1.ServiceNetworkEntry }
(Appears on:
diff --git a/hypershift-operator/featuregate/feature.go b/hypershift-operator/featuregate/feature.go
index 556004873398..1a01c39484b2 100644
--- a/hypershift-operator/featuregate/feature.go
+++ b/hypershift-operator/featuregate/feature.go
@@ -28,6 +28,12 @@ const (
// alpha: v0.1.49
// beta: x.y.z
GCPPlatform featuregate.Feature = "GCPPlatform"
+
+ // HCPEtcdBackup enables the HCPEtcdBackup CRD for OADP-driven etcd backup orchestration.
+ // owner: @jparrill
+ // alpha: v0.1.49
+ // beta: x.y.z
+ HCPEtcdBackup featuregate.Feature = "HCPEtcdBackup"
)
// Initialize new features here
@@ -37,6 +43,7 @@ var (
aroHCPManagedIdentitiesFeature = featuregates.NewFeature(AROHCPManagedIdentities, featuregates.WithEnableForFeatureSets(configv1.TechPreviewNoUpgrade))
openStackFeature = featuregates.NewFeature(OpenStack, featuregates.WithEnableForFeatureSets(configv1.TechPreviewNoUpgrade))
gcpHCPFeature = featuregates.NewFeature(GCPPlatform, featuregates.WithEnableForFeatureSets(configv1.TechPreviewNoUpgrade))
+ hcpEtcdBackupFeature = featuregates.NewFeature(HCPEtcdBackup, featuregates.WithEnableForFeatureSets(configv1.TechPreviewNoUpgrade))
)
func init() {
@@ -44,6 +51,7 @@ func init() {
allFeatures.AddFeature(aroHCPManagedIdentitiesFeature)
allFeatures.AddFeature(openStackFeature)
allFeatures.AddFeature(gcpHCPFeature)
+ allFeatures.AddFeature(hcpEtcdBackupFeature)
// Default to configuring the Default featureset
ConfigureFeatureSet(string(configv1.Default))
diff --git a/hypershift-operator/featuregate/feature_test.go b/hypershift-operator/featuregate/feature_test.go
index af3f4b561f55..43b98482378c 100644
--- a/hypershift-operator/featuregate/feature_test.go
+++ b/hypershift-operator/featuregate/feature_test.go
@@ -10,6 +10,43 @@ import (
"github.com/stretchr/testify/assert"
)
+func TestHCPEtcdBackupFeatureGate(t *testing.T) {
+ testcases := []struct {
+ name string
+ featureSet configv1.FeatureSet
+ expectedHCPEtcdBackup bool
+ }{
+ {
+ name: "Default feature set should disable HCPEtcdBackup",
+ featureSet: configv1.Default,
+ expectedHCPEtcdBackup: false,
+ },
+ {
+ name: "TechPreviewNoUpgrade feature set should enable HCPEtcdBackup",
+ featureSet: configv1.TechPreviewNoUpgrade,
+ expectedHCPEtcdBackup: true,
+ },
+ {
+ name: "DevPreviewNoUpgrade feature set should disable HCPEtcdBackup",
+ featureSet: configv1.DevPreviewNoUpgrade,
+ expectedHCPEtcdBackup: false,
+ },
+ }
+
+ for _, tc := range testcases {
+ t.Run(tc.name, func(t *testing.T) {
+ featuregate.ConfigureFeatureSet(string(tc.featureSet))
+
+ actualHCPEtcdBackup := featuregate.Gate().Enabled(featuregate.HCPEtcdBackup)
+ assert.Equal(t, tc.expectedHCPEtcdBackup, actualHCPEtcdBackup,
+ "HCPEtcdBackup feature gate enabled state should match expected value for feature set %s", tc.featureSet)
+
+ assert.Equal(t, tc.featureSet, featuregate.FeatureSet(),
+ "Feature set should be correctly configured")
+ })
+ }
+}
+
func TestGCPPlatformFeatureGate(t *testing.T) {
testcases := []struct {
name string
@@ -63,6 +100,7 @@ func TestAllHypershiftOperatorFeatureGates(t *testing.T) {
"AROHCPManagedIdentities": false,
"OpenStack": false,
"GCPPlatform": false,
+ "HCPEtcdBackup": false,
},
},
{
@@ -72,6 +110,7 @@ func TestAllHypershiftOperatorFeatureGates(t *testing.T) {
"AROHCPManagedIdentities": true,
"OpenStack": true,
"GCPPlatform": true,
+ "HCPEtcdBackup": true,
},
},
{
@@ -81,6 +120,7 @@ func TestAllHypershiftOperatorFeatureGates(t *testing.T) {
"AROHCPManagedIdentities": false,
"OpenStack": false,
"GCPPlatform": false,
+ "HCPEtcdBackup": false,
},
},
}
@@ -107,6 +147,12 @@ func TestAllHypershiftOperatorFeatureGates(t *testing.T) {
assert.Equal(t, tc.expected["GCPPlatform"], actualGCPPlatform,
"GCPPlatform should be %v for feature set %s",
tc.expected["GCPPlatform"], tc.featureSet)
+
+ // Test HCPEtcdBackup
+ actualHCPEtcdBackup := featuregate.Gate().Enabled(featuregate.HCPEtcdBackup)
+ assert.Equal(t, tc.expected["HCPEtcdBackup"], actualHCPEtcdBackup,
+ "HCPEtcdBackup should be %v for feature set %s",
+ tc.expected["HCPEtcdBackup"], tc.featureSet)
})
}
}
@@ -116,4 +162,5 @@ func TestFeatureGateConstants(t *testing.T) {
assert.Equal(t, "AROHCPManagedIdentities", string(featuregate.AROHCPManagedIdentities))
assert.Equal(t, "OpenStack", string(featuregate.OpenStack))
assert.Equal(t, "GCPPlatform", string(featuregate.GCPPlatform))
+ assert.Equal(t, "HCPEtcdBackup", string(featuregate.HCPEtcdBackup))
}
diff --git a/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/etcdbackup_types.go b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/etcdbackup_types.go
new file mode 100644
index 000000000000..915400537359
--- /dev/null
+++ b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/etcdbackup_types.go
@@ -0,0 +1,366 @@
+package v1beta1
+
+import (
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/apimachinery/pkg/runtime"
+)
+
+func init() {
+ SchemeBuilder.Register(func(scheme *runtime.Scheme) error {
+ scheme.AddKnownTypes(SchemeGroupVersion,
+ &HCPEtcdBackup{},
+ &HCPEtcdBackupList{},
+ )
+ return nil
+ })
+}
+
+// Condition types and reasons for HCPEtcdBackup.
+const (
+ // BackupCompleted indicates whether the etcd backup has completed.
+ BackupCompleted ConditionType = "BackupCompleted"
+
+ BackupSucceededReason string = "BackupSucceeded"
+ BackupFailedReason string = "BackupFailed"
+ BackupAlreadyInProgressReason string = "BackupAlreadyInProgress"
+ EtcdUnhealthyReason string = "EtcdUnhealthy"
+)
+
+// HCPEtcdBackupStorageType is the type of storage for etcd backups.
+// +kubebuilder:validation:Enum=S3;AzureBlob
+type HCPEtcdBackupStorageType string
+
+const (
+ // S3BackupStorage indicates that the backup is stored in AWS S3.
+ S3BackupStorage HCPEtcdBackupStorageType = "S3"
+
+ // AzureBlobBackupStorage indicates that the backup is stored in Azure Blob Storage.
+ AzureBlobBackupStorage HCPEtcdBackupStorageType = "AzureBlob"
+)
+
+// SecretReference contains a reference to a Secret by name.
+// The Secret must exist in the same namespace as the referencing resource.
+type SecretReference struct {
+ // name is the name of the Secret. It must be a valid DNS-1123 subdomain: at most
+ // 253 characters, consisting of lowercase alphanumeric characters, hyphens, and periods.
+ // Each period-separated segment must start and end with an alphanumeric character.
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=253
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$')",message="name must consist only of lowercase alphanumeric characters, hyphens, and periods. Each period-separated segment must start and end with an alphanumeric character."
+ Name string `json:"name,omitempty"`
+}
+
+// HCPEtcdBackupSpec defines the desired state of HCPEtcdBackup.
+// HCPEtcdBackup is a one-shot backup request; the entire spec is immutable once created.
+// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="HCPEtcdBackupSpec is immutable"
+type HCPEtcdBackupSpec struct {
+ // storage defines the cloud storage backend where the etcd snapshot will be uploaded.
+ // +required
+ Storage HCPEtcdBackupStorage `json:"storage,omitzero"`
+}
+
+// HCPEtcdBackupStorage defines the cloud storage backend configuration for the backup.
+// Exactly one storage backend must be specified, matching the storageType discriminator.
+// +union
+// +kubebuilder:validation:XValidation:rule="self.storageType == 'S3' ? has(self.s3) : !has(self.s3)",message="s3 configuration is required when storageType is S3, and forbidden otherwise"
+// +kubebuilder:validation:XValidation:rule="self.storageType == 'AzureBlob' ? has(self.azureBlob) : !has(self.azureBlob)",message="azureBlob configuration is required when storageType is AzureBlob, and forbidden otherwise"
+type HCPEtcdBackupStorage struct {
+ // storageType specifies the type of cloud storage backend for the etcd backup.
+ // Valid values are "S3" for AWS S3 storage and "AzureBlob" for Azure Blob Storage.
+ // +unionDiscriminator
+ // +required
+ StorageType HCPEtcdBackupStorageType `json:"storageType,omitempty"`
+
+ // s3 specifies the S3 storage configuration for the etcd backup.
+ // Required when storageType is "S3", and forbidden otherwise.
+ // +optional
+ // +unionMember
+ S3 HCPEtcdBackupS3 `json:"s3,omitzero"`
+
+ // azureBlob specifies the Azure Blob storage configuration for the etcd backup.
+ // Required when storageType is "AzureBlob", and forbidden otherwise.
+ // +optional
+ // +unionMember
+ AzureBlob HCPEtcdBackupAzureBlob `json:"azureBlob,omitzero"`
+}
+
+// HCPEtcdBackupS3 defines the S3 storage configuration for etcd backups.
+// +kubebuilder:validation:XValidation:rule="!has(oldSelf.kmsKeyARN) || has(self.kmsKeyARN)",message="kmsKeyARN cannot be removed once set"
+type HCPEtcdBackupS3 struct {
+ // bucket is the name of the S3 bucket where backups are stored.
+ // Must be 3-63 characters, lowercase letters, numbers, hyphens, and periods only.
+ // Must start and end with a letter or number. Consecutive periods are not allowed.
+ // See https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
+ // +required
+ // +kubebuilder:validation:MinLength=3
+ // +kubebuilder:validation:MaxLength=63
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z0-9][a-z0-9.-]*[a-z0-9]$')",message="bucket must consist of lowercase letters, numbers, hyphens, and periods, and must start and end with a letter or number"
+ // +kubebuilder:validation:XValidation:rule="!self.contains('..')",message="bucket must not contain consecutive periods"
+ Bucket string `json:"bucket,omitempty"`
+
+ // region is the AWS region where the S3 bucket is located (e.g. "us-east-1").
+ // Must be a valid AWS region identifier: lowercase letters, digits, and hyphens.
+ // Must start and end with an alphanumeric character, no consecutive hyphens.
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=63
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z][a-z0-9-]*[a-z0-9]$')",message="region must consist of lowercase letters, digits, and hyphens, must start with a letter and end with an alphanumeric character"
+ // +kubebuilder:validation:XValidation:rule="!self.contains('--')",message="region must not contain consecutive hyphens"
+ Region string `json:"region,omitempty"`
+
+ // keyPrefix is the S3 key prefix for the backup file.
+ // Must consist of safe S3 object key characters: alphanumeric characters,
+ // forward slashes, hyphens, underscores, periods, exclamation marks,
+ // asterisks, single quotes, and parentheses.
+ // See https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=1024
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-zA-Z0-9!_.*\\'()/-]+$')",message="keyPrefix must consist of safe S3 key characters: alphanumeric characters, forward slashes, hyphens, underscores, periods, exclamation marks, asterisks, single quotes, and parentheses"
+ KeyPrefix string `json:"keyPrefix,omitempty"`
+
+ // credentials references a Secret containing AWS credentials for uploading
+ // to S3. The Secret must exist in the Hypershift Operator namespace and contain a
+ // 'credentials' key with a valid AWS credentials file.
+ // +required
+ Credentials SecretReference `json:"credentials,omitzero"`
+
+ // kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup.
+ // Must be a valid AWS KMS key ARN in the format
+ // "arn::kms:::key/"
+ // where partition is one of aws, aws-cn, or aws-us-gov.
+ // This field is immutable once set and cannot be removed.
+ // +optional
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=256
+ // +kubebuilder:validation:XValidation:rule="self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')",message="kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)"
+ // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="kmsKeyARN is immutable"
+ KMSKeyARN string `json:"kmsKeyARN,omitempty"`
+}
+
+// HCPEtcdBackupAzureBlob defines the Azure Blob storage configuration for etcd backups.
+// +kubebuilder:validation:XValidation:rule="!has(oldSelf.encryptionKeyURL) || has(self.encryptionKeyURL)",message="encryptionKeyURL cannot be removed once set"
+type HCPEtcdBackupAzureBlob struct {
+ // container is the name of the Azure Blob container where backups are stored.
+ // Must be 3-63 characters, lowercase letters, numbers, and hyphens only.
+ // Must start and end with a letter or number. Consecutive hyphens are not allowed.
+ // See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names
+ // +required
+ // +kubebuilder:validation:MinLength=3
+ // +kubebuilder:validation:MaxLength=63
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z0-9]([a-z0-9-]*[a-z0-9])?$')",message="container must consist of lowercase letters, numbers, and hyphens, and must start and end with a letter or number"
+ // +kubebuilder:validation:XValidation:rule="!self.contains('--')",message="container must not contain consecutive hyphens"
+ Container string `json:"container,omitempty"`
+
+ // storageAccount is the name of the Azure Storage Account.
+ // Must be 3-24 characters, lowercase letters and numbers only.
+ // See https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#storage-account-name
+ // +required
+ // +kubebuilder:validation:MinLength=3
+ // +kubebuilder:validation:MaxLength=24
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-z0-9]+$')",message="storageAccount must consist of lowercase letters and numbers only"
+ StorageAccount string `json:"storageAccount,omitempty"`
+
+ // keyPrefix is the blob name prefix for the backup file.
+ // Must consist of valid blob name characters: alphanumeric characters, forward slashes,
+ // hyphens, underscores, and periods.
+ // See https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#blob-names
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=1024
+ // +kubebuilder:validation:XValidation:rule="self.matches('^[a-zA-Z0-9/_.-]+$')",message="keyPrefix must consist of alphanumeric characters, forward slashes, hyphens, underscores, and periods"
+ KeyPrefix string `json:"keyPrefix,omitempty"`
+
+ // credentials references a Secret containing Azure credentials for uploading
+ // to Blob Storage. The Secret must exist in the Hypershift Operator namespace.
+ // +required
+ Credentials SecretReference `json:"credentials,omitzero"`
+
+ // encryptionKeyURL is the URL of the Azure Key Vault key used for encryption.
+ // Must be a valid Azure Key Vault key URL in the format
+ // "https://.vault.azure.net/keys/[/]".
+ // This field is immutable once set and cannot be removed.
+ // +optional
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=512
+ // +kubebuilder:validation:XValidation:rule="isURL(self) && url(self).getScheme() == 'https'",message="encryptionKeyURL must be a valid HTTPS URL"
+ // +kubebuilder:validation:XValidation:rule="url(self).getHostname().matches('[a-zA-Z0-9-]+\\\\.vault\\\\.azure\\\\.net$')",message="encryptionKeyURL must point to an Azure Key Vault (*.vault.azure.net)"
+ // +kubebuilder:validation:XValidation:rule="url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')",message="encryptionKeyURL path must be /keys/ or /keys//"
+ // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="encryptionKeyURL is immutable"
+ EncryptionKeyURL string `json:"encryptionKeyURL,omitempty"`
+}
+
+// HCPEtcdBackupStatus defines the observed state of HCPEtcdBackup.
+// +kubebuilder:validation:MinProperties=1
+type HCPEtcdBackupStatus struct {
+ // conditions contains details for the current state of the etcd backup.
+ // The following condition types are expected:
+ // - "BackupCompleted": indicates whether the etcd backup has completed (True=success, False=failure).
+ // +optional
+ // +listType=map
+ // +listMapKey=type
+ // +kubebuilder:validation:MinItems=1
+ // +kubebuilder:validation:MaxItems=10
+ Conditions []metav1.Condition `json:"conditions,omitempty"`
+
+ // snapshotURL is the URL of the completed backup snapshot in cloud storage.
+ // Must be a valid URL with scheme https or s3.
+ // +optional
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=2048
+ // +kubebuilder:validation:XValidation:rule="isURL(self)",message="snapshotURL must be a valid URL"
+ // +kubebuilder:validation:XValidation:rule="url(self).getScheme() == 'https' || url(self).getScheme() == 's3'",message="snapshotURL scheme must be https or s3"
+ SnapshotURL string `json:"snapshotURL,omitempty"`
+
+ // encryptionMetadata contains metadata about the encryption of the backup.
+ // When present, at least one platform-specific encryption block must be set.
+ // +optional
+ EncryptionMetadata HCPEtcdBackupEncryptionMetadata `json:"encryptionMetadata,omitzero"`
+}
+
+// HCPEtcdBackupEncryptionMetadata contains platform-specific metadata about the
+// encryption applied to the backup artifact in cloud storage.
+// The presence of a platform block indicates that encryption was applied.
+// +kubebuilder:validation:MinProperties=1
+// +kubebuilder:validation:MaxProperties=1
+type HCPEtcdBackupEncryptionMetadata struct {
+ // aws contains AWS-specific encryption metadata for the backup.
+ // +optional
+ AWS HCPEtcdBackupEncryptionMetadataAWS `json:"aws,omitzero"`
+
+ // azure contains Azure-specific encryption metadata for the backup.
+ // +optional
+ Azure HCPEtcdBackupEncryptionMetadataAzure `json:"azure,omitzero"`
+}
+
+// HCPEtcdBackupEncryptionMetadataAWS contains AWS-specific encryption metadata.
+// The values here reflect the encryption settings from the HCPEtcdBackupConfig input.
+type HCPEtcdBackupEncryptionMetadataAWS struct {
+ // kmsKeyARN is the ARN of the KMS key used for server-side encryption of the backup in S3.
+ // Must be a valid AWS KMS key ARN in the format
+ // "arn::kms:::key/"
+ // where partition is one of aws, aws-cn, or aws-us-gov.
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=256
+ // +kubebuilder:validation:XValidation:rule="self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')",message="kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)"
+ KMSKeyARN string `json:"kmsKeyARN,omitempty"`
+}
+
+// HCPEtcdBackupEncryptionMetadataAzure contains Azure-specific encryption metadata.
+// The values here reflect the encryption settings from the HCPEtcdBackupConfig input.
+type HCPEtcdBackupEncryptionMetadataAzure struct {
+ // encryptionKeyURL is the URL of the Azure Key Vault key used for encryption of the backup.
+ // Must be a valid Azure Key Vault key URL in the format
+ // "https://.vault.azure.net/keys/[/]".
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=512
+ // +kubebuilder:validation:XValidation:rule="isURL(self) && url(self).getScheme() == 'https'",message="encryptionKeyURL must be a valid HTTPS URL"
+ // +kubebuilder:validation:XValidation:rule="url(self).getHostname().matches('[a-zA-Z0-9-]+\\\\.vault\\\\.azure\\\\.net$')",message="encryptionKeyURL must point to an Azure Key Vault (*.vault.azure.net)"
+ // +kubebuilder:validation:XValidation:rule="url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')",message="encryptionKeyURL path must be /keys/ or /keys//"
+ EncryptionKeyURL string `json:"encryptionKeyURL,omitempty"`
+}
+
+// +genclient
+// +kubebuilder:object:root=true
+// +kubebuilder:resource:path=hcpetcdbackups,scope=Namespaced,shortName=hcpetcdbk
+// +kubebuilder:storageversion
+// +kubebuilder:subresource:status
+// +kubebuilder:printcolumn:name="Completed",type="string",JSONPath=".status.conditions[?(@.type==\"BackupCompleted\")].status",description="Backup completion status"
+// +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".status.snapshotURL",description="Snapshot URL"
+// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
+// +openshift:enable:FeatureGate=HCPEtcdBackup
+
+// HCPEtcdBackup represents a request to back up etcd for a hosted control plane.
+// This resource is feature-gated behind the HCPEtcdBackup feature gate.
+type HCPEtcdBackup struct {
+ metav1.TypeMeta `json:",inline"`
+ // metadata is the metadata for the HCPEtcdBackup.
+ // +optional
+ metav1.ObjectMeta `json:"metadata,omitempty"`
+ // spec is the specification for the HCPEtcdBackup.
+ // +required
+ Spec HCPEtcdBackupSpec `json:"spec,omitzero"`
+ // status is the status of the HCPEtcdBackup.
+ // +optional
+ Status HCPEtcdBackupStatus `json:"status,omitzero"`
+}
+
+// HCPEtcdBackupList contains a list of HCPEtcdBackup.
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+type HCPEtcdBackupList struct {
+ metav1.TypeMeta `json:",inline"`
+ // metadata is standard list metadata.
+ // +optional
+ metav1.ListMeta `json:"metadata,omitempty"`
+ // items is the list of HCPEtcdBackups.
+ // +required
+ Items []HCPEtcdBackup `json:"items,omitempty"`
+}
+
+// HCPEtcdBackupConfigPlatform identifies the cloud platform for backup encryption configuration.
+// +kubebuilder:validation:Enum=AWS;Azure
+type HCPEtcdBackupConfigPlatform string
+
+const (
+ // AWSBackupConfigPlatform indicates AWS KMS encryption for backup artifacts.
+ AWSBackupConfigPlatform HCPEtcdBackupConfigPlatform = "AWS"
+
+ // AzureBackupConfigPlatform indicates Azure Key Vault encryption for backup artifacts.
+ AzureBackupConfigPlatform HCPEtcdBackupConfigPlatform = "Azure"
+)
+
+// HCPEtcdBackupConfig defines the backup encryption configuration that is propagated
+// from the HostedCluster to the HostedControlPlane via ManagedEtcdSpec.
+// Exactly one platform-specific block must be specified, matching the platform discriminator.
+// +union
+// +kubebuilder:validation:XValidation:rule="self.platform == 'AWS' ? has(self.aws) : !has(self.aws)",message="aws configuration is required when platform is AWS, and forbidden otherwise"
+// +kubebuilder:validation:XValidation:rule="self.platform == 'Azure' ? has(self.azure) : !has(self.azure)",message="azure configuration is required when platform is Azure, and forbidden otherwise"
+type HCPEtcdBackupConfig struct {
+ // platform specifies the cloud platform for backup encryption configuration.
+ // Valid values are "AWS" for AWS KMS encryption and "Azure" for Azure Key Vault encryption.
+ // +unionDiscriminator
+ // +required
+ Platform HCPEtcdBackupConfigPlatform `json:"platform,omitempty"`
+
+ // aws contains AWS-specific backup encryption configuration.
+ // Required when platform is "AWS", and forbidden otherwise.
+ // +optional
+ // +unionMember
+ AWS HCPEtcdBackupConfigAWS `json:"aws,omitzero"`
+
+ // azure contains Azure-specific backup encryption configuration.
+ // Required when platform is "Azure", and forbidden otherwise.
+ // +optional
+ // +unionMember
+ Azure HCPEtcdBackupConfigAzure `json:"azure,omitzero"`
+}
+
+// HCPEtcdBackupConfigAWS defines AWS-specific encryption settings for etcd backups.
+type HCPEtcdBackupConfigAWS struct {
+ // kmsKeyARN is the ARN of the AWS KMS key to use for encrypting etcd backup artifacts in S3.
+ // Must be a valid AWS KMS key ARN in the format
+ // "arn::kms:::key/"
+ // where partition is one of aws, aws-cn, or aws-us-gov.
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=256
+ // +kubebuilder:validation:XValidation:rule="self.matches('^arn:(aws|aws-cn|aws-us-gov):kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+$')",message="kmsKeyARN must be a valid AWS KMS key ARN (arn::kms:::key/)"
+ KMSKeyARN string `json:"kmsKeyARN,omitempty"`
+}
+
+// HCPEtcdBackupConfigAzure defines Azure-specific encryption settings for etcd backups.
+type HCPEtcdBackupConfigAzure struct {
+ // encryptionKeyURL is the URL of the Azure Key Vault key to use for encrypting etcd backup artifacts.
+ // Must be a valid Azure Key Vault key URL in the format
+ // "https://.vault.azure.net/keys/[/]".
+ // +required
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=512
+ // +kubebuilder:validation:XValidation:rule="isURL(self) && url(self).getScheme() == 'https'",message="encryptionKeyURL must be a valid HTTPS URL"
+ // +kubebuilder:validation:XValidation:rule="url(self).getHostname().matches('[a-zA-Z0-9-]+\\\\.vault\\\\.azure\\\\.net$')",message="encryptionKeyURL must point to an Azure Key Vault (*.vault.azure.net)"
+ // +kubebuilder:validation:XValidation:rule="url(self).getEscapedPath().matches('^/keys/[a-zA-Z0-9-]+(/[a-zA-Z0-9]+)?$')",message="encryptionKeyURL path must be /keys/ or /keys//"
+ EncryptionKeyURL string `json:"encryptionKeyURL,omitempty"`
+}
diff --git a/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/hostedcluster_types.go b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/hostedcluster_types.go
index 92e1852fb2ca..a32b846952be 100644
--- a/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/hostedcluster_types.go
+++ b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/hostedcluster_types.go
@@ -1885,6 +1885,13 @@ type ManagedEtcdSpec struct {
// storage specifies how etcd data is persisted.
// +required
Storage ManagedEtcdStorageSpec `json:"storage"`
+
+ // backup defines the backup configuration for managed etcd, including
+ // optional KMS key settings for artifact encryption in cloud storage.
+ // This configuration is only used when an HCPEtcdBackup CR exists.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPEtcdBackup
+ Backup HCPEtcdBackupConfig `json:"backup,omitzero"`
}
// ManagedEtcdStorageType is a storage type for an etcd cluster.
diff --git a/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/zz_generated.deepcopy.go b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/zz_generated.deepcopy.go
index c1d7cc029c95..404f1ad6cef5 100644
--- a/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/zz_generated.deepcopy.go
+++ b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/zz_generated.deepcopy.go
@@ -1822,6 +1822,247 @@ func (in *GCPWorkloadIdentityConfig) DeepCopy() *GCPWorkloadIdentityConfig {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackup) DeepCopyInto(out *HCPEtcdBackup) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ out.Spec = in.Spec
+ in.Status.DeepCopyInto(&out.Status)
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackup.
+func (in *HCPEtcdBackup) DeepCopy() *HCPEtcdBackup {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackup)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *HCPEtcdBackup) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupAzureBlob) DeepCopyInto(out *HCPEtcdBackupAzureBlob) {
+ *out = *in
+ out.Credentials = in.Credentials
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupAzureBlob.
+func (in *HCPEtcdBackupAzureBlob) DeepCopy() *HCPEtcdBackupAzureBlob {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupAzureBlob)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupConfig) DeepCopyInto(out *HCPEtcdBackupConfig) {
+ *out = *in
+ out.AWS = in.AWS
+ out.Azure = in.Azure
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupConfig.
+func (in *HCPEtcdBackupConfig) DeepCopy() *HCPEtcdBackupConfig {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupConfig)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupConfigAWS) DeepCopyInto(out *HCPEtcdBackupConfigAWS) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupConfigAWS.
+func (in *HCPEtcdBackupConfigAWS) DeepCopy() *HCPEtcdBackupConfigAWS {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupConfigAWS)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupConfigAzure) DeepCopyInto(out *HCPEtcdBackupConfigAzure) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupConfigAzure.
+func (in *HCPEtcdBackupConfigAzure) DeepCopy() *HCPEtcdBackupConfigAzure {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupConfigAzure)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupEncryptionMetadata) DeepCopyInto(out *HCPEtcdBackupEncryptionMetadata) {
+ *out = *in
+ out.AWS = in.AWS
+ out.Azure = in.Azure
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupEncryptionMetadata.
+func (in *HCPEtcdBackupEncryptionMetadata) DeepCopy() *HCPEtcdBackupEncryptionMetadata {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupEncryptionMetadata)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupEncryptionMetadataAWS) DeepCopyInto(out *HCPEtcdBackupEncryptionMetadataAWS) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupEncryptionMetadataAWS.
+func (in *HCPEtcdBackupEncryptionMetadataAWS) DeepCopy() *HCPEtcdBackupEncryptionMetadataAWS {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupEncryptionMetadataAWS)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupEncryptionMetadataAzure) DeepCopyInto(out *HCPEtcdBackupEncryptionMetadataAzure) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupEncryptionMetadataAzure.
+func (in *HCPEtcdBackupEncryptionMetadataAzure) DeepCopy() *HCPEtcdBackupEncryptionMetadataAzure {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupEncryptionMetadataAzure)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupList) DeepCopyInto(out *HCPEtcdBackupList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]HCPEtcdBackup, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupList.
+func (in *HCPEtcdBackupList) DeepCopy() *HCPEtcdBackupList {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *HCPEtcdBackupList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupS3) DeepCopyInto(out *HCPEtcdBackupS3) {
+ *out = *in
+ out.Credentials = in.Credentials
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupS3.
+func (in *HCPEtcdBackupS3) DeepCopy() *HCPEtcdBackupS3 {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupS3)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupSpec) DeepCopyInto(out *HCPEtcdBackupSpec) {
+ *out = *in
+ out.Storage = in.Storage
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupSpec.
+func (in *HCPEtcdBackupSpec) DeepCopy() *HCPEtcdBackupSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupStatus) DeepCopyInto(out *HCPEtcdBackupStatus) {
+ *out = *in
+ if in.Conditions != nil {
+ in, out := &in.Conditions, &out.Conditions
+ *out = make([]v1.Condition, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ out.EncryptionMetadata = in.EncryptionMetadata
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupStatus.
+func (in *HCPEtcdBackupStatus) DeepCopy() *HCPEtcdBackupStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *HCPEtcdBackupStorage) DeepCopyInto(out *HCPEtcdBackupStorage) {
+ *out = *in
+ out.S3 = in.S3
+ out.AzureBlob = in.AzureBlob
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HCPEtcdBackupStorage.
+func (in *HCPEtcdBackupStorage) DeepCopy() *HCPEtcdBackupStorage {
+ if in == nil {
+ return nil
+ }
+ out := new(HCPEtcdBackupStorage)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *HostedCluster) DeepCopyInto(out *HostedCluster) {
*out = *in
@@ -2950,6 +3191,7 @@ func (in *ManagedAzureKeyVault) DeepCopy() *ManagedAzureKeyVault {
func (in *ManagedEtcdSpec) DeepCopyInto(out *ManagedEtcdSpec) {
*out = *in
in.Storage.DeepCopyInto(&out.Storage)
+ out.Backup = in.Backup
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedEtcdSpec.
@@ -3945,6 +4187,21 @@ func (in *SecretEncryptionSpec) DeepCopy() *SecretEncryptionSpec {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *SecretReference) DeepCopyInto(out *SecretReference) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.
+func (in *SecretReference) DeepCopy() *SecretReference {
+ if in == nil {
+ return nil
+ }
+ out := new(SecretReference)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServiceNetworkEntry) DeepCopyInto(out *ServiceNetworkEntry) {
*out = *in
diff --git a/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml
index db8ddc7b22e1..55961c584029 100644
--- a/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml
+++ b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml
@@ -125,6 +125,41 @@ gcpprivateserviceconnects.hypershift.openshift.io:
- GCPPlatform
Version: v1beta1
+hcpetcdbackups.hypershift.openshift.io:
+ Annotations: {}
+ ApprovedPRNumber: ""
+ CRDName: hcpetcdbackups.hypershift.openshift.io
+ Capability: ""
+ Category: ""
+ FeatureGates:
+ - HCPEtcdBackup
+ FilenameOperatorName: ""
+ FilenameOperatorOrdering: ""
+ FilenameRunLevel: ""
+ GroupName: hypershift.openshift.io
+ HasStatus: true
+ KindName: HCPEtcdBackup
+ Labels: {}
+ PluralName: hcpetcdbackups
+ PrinterColumns:
+ - description: Backup completion status
+ jsonPath: .status.conditions[?(@.type=="BackupCompleted")].status
+ name: Completed
+ type: string
+ - description: Snapshot URL
+ jsonPath: .status.snapshotURL
+ name: URL
+ type: string
+ - jsonPath: .metadata.creationTimestamp
+ name: Age
+ type: date
+ Scope: Namespaced
+ ShortNames:
+ - hcpetcdbk
+ TopLevelFeatureGates:
+ - HCPEtcdBackup
+ Version: v1beta1
+
hostedclusters.hypershift.openshift.io:
Annotations: {}
ApprovedPRNumber: ""
@@ -139,6 +174,7 @@ hostedclusters.hypershift.openshift.io:
- ExternalOIDCWithUIDAndExtraClaimMappings
- ExternalOIDCWithUpstreamParity
- GCPPlatform
+ - HCPEtcdBackup
- HyperShiftOnlyDynamicResourceAllocation
- ImageStreamImportMode
- KMSEncryptionProvider
@@ -198,6 +234,7 @@ hostedcontrolplanes.hypershift.openshift.io:
- ExternalOIDCWithUIDAndExtraClaimMappings
- ExternalOIDCWithUpstreamParity
- GCPPlatform
+ - HCPEtcdBackup
- HyperShiftOnlyDynamicResourceAllocation
- ImageStreamImportMode
- KMSEncryptionProvider