From d01f5a21ee415bd1212407a7c5191af94ffc4c74 Mon Sep 17 00:00:00 2001
From: Dhruv Gautam
Date: Mon, 24 Aug 2026 19:52:42 +0530
Subject: [PATCH] feat(operator-config): OCPSTRAT-3156 add per-component
configurable log levels
Introduce OperatorConfiguration in the HostedCluster API so operators can
set per-component log verbosity for the control plane components, replacing
hardcoded verbosity flags.
- Add ComponentLogLevelSpec and LogLevel (Normal/Debug/Trace/TraceAll)
with CEL validation and godocs. etcd log levels are restricted to
Normal and Debug.
- Wire log-level configuration through kube-apiserver, kube-controller-manager,
kube-scheduler, openshift-apiserver, openshift-controller-manager,
openshift-oauth-apiserver, oauth-server, and etcd deployments.
- For kube-apiserver, fall back to the existing verbosity annotation when
the API field is unset; the API field takes precedence when both are set.
- Add unit tests covering log-level resolution for all components.
---
.../featureGate-Hypershift-Default.yaml | 3 +
...eGate-Hypershift-TechPreviewNoUpgrade.yaml | 3 +
.../featureGate-SelfManagedHA-Default.yaml | 3 +
...te-SelfManagedHA-TechPreviewNoUpgrade.yaml | 3 +
api/hypershift/v1beta1/hostedcluster_types.go | 77 +
api/hypershift/v1beta1/operator.go | 68 +-
.../v1beta1/zz_generated.deepcopy.go | 151 +
..._generated.featuregated-crd-manifests.yaml | 2 +
.../ClusterVersionOperatorConfiguration.yaml | 1 -
.../HCPUserFacingOperatorLogs.yaml | 8377 +++++++++++++++++
.../ClusterVersionOperatorConfiguration.yaml | 1 -
.../HCPUserFacingOperatorLogs.yaml | 8210 ++++++++++++++++
.../v1beta1/componentloglevelspec.go | 42 +
.../hypershift/v1beta1/etcdoperatorspec.go | 42 +
.../v1beta1/kubeapiserveroperatorspec.go | 42 +
.../kubecontrollermanageroperatorspec.go | 42 +
.../v1beta1/kubescheduleroperatorspec.go | 42 +
.../v1beta1/oauthserveroperatorspec.go | 42 +
.../v1beta1/openshiftapiserveroperatorspec.go | 42 +
.../openshiftcontrollermanageroperatorspec.go | 42 +
.../openshiftoauthapiserveroperatorspec.go | 42 +
.../v1beta1/operatorconfiguration.go | 78 +-
client/applyconfiguration/utils.go | 18 +
.../featureGate-Hypershift-Default.yaml | 3 +
...eGate-Hypershift-TechPreviewNoUpgrade.yaml | 3 +
.../featureGate-SelfManagedHA-Default.yaml | 3 +
...te-SelfManagedHA-TechPreviewNoUpgrade.yaml | 3 +
...sters.operatorconfiguration.testsuite.yaml | 4031 ++++++++
...usters-Hypershift-CustomNoUpgrade.crd.yaml | 248 +-
...s-Hypershift-TechPreviewNoUpgrade.crd.yaml | 248 +-
...planes-Hypershift-CustomNoUpgrade.crd.yaml | 248 +-
...s-Hypershift-TechPreviewNoUpgrade.crd.yaml | 248 +-
...ntrolPlaneComponents_etcd_statefulset.yaml | 4 +-
...ntrolPlaneComponents_etcd_statefulset.yaml | 4 +-
...ntrolPlaneComponents_etcd_statefulset.yaml | 4 +-
...ntrolPlaneComponents_etcd_statefulset.yaml | 4 +-
...ntrolPlaneComponents_etcd_statefulset.yaml | 4 +-
...ntrolPlaneComponents_etcd_statefulset.yaml | 4 +-
...ts_kube_controller_manager_deployment.yaml | 3 +-
...ts_kube_controller_manager_deployment.yaml | 3 +-
...ts_kube_controller_manager_deployment.yaml | 3 +-
...ts_kube_controller_manager_deployment.yaml | 3 +-
...ts_kube_controller_manager_deployment.yaml | 3 +-
...ts_kube_controller_manager_deployment.yaml | 3 +-
...eComponents_kube_scheduler_deployment.yaml | 4 +-
...eComponents_kube_scheduler_deployment.yaml | 4 +-
...eComponents_kube_scheduler_deployment.yaml | 4 +-
...eComponents_kube_scheduler_deployment.yaml | 4 +-
...eComponents_kube_scheduler_deployment.yaml | 4 +-
...eComponents_kube_scheduler_deployment.yaml | 4 +-
...Components_oauth_openshift_deployment.yaml | 3 +-
...Components_oauth_openshift_deployment.yaml | 3 +-
...Components_oauth_openshift_deployment.yaml | 3 +-
...Components_oauth_openshift_deployment.yaml | 3 +-
...Components_oauth_openshift_deployment.yaml | 3 +-
...Components_oauth_openshift_deployment.yaml | 3 +-
...onents_openshift_apiserver_deployment.yaml | 3 +-
...onents_openshift_apiserver_deployment.yaml | 3 +-
...onents_openshift_apiserver_deployment.yaml | 3 +-
...onents_openshift_apiserver_deployment.yaml | 3 +-
...onents_openshift_apiserver_deployment.yaml | 3 +-
...onents_openshift_apiserver_deployment.yaml | 3 +-
...enshift_controller_manager_deployment.yaml | 3 +-
...enshift_controller_manager_deployment.yaml | 3 +-
...enshift_controller_manager_deployment.yaml | 3 +-
...enshift_controller_manager_deployment.yaml | 3 +-
...enshift_controller_manager_deployment.yaml | 3 +-
...enshift_controller_manager_deployment.yaml | 3 +-
..._openshift_oauth_apiserver_deployment.yaml | 4 +-
..._openshift_oauth_apiserver_deployment.yaml | 4 +-
..._openshift_oauth_apiserver_deployment.yaml | 4 +-
..._openshift_oauth_apiserver_deployment.yaml | 4 +-
..._openshift_oauth_apiserver_deployment.yaml | 4 +-
..._openshift_oauth_apiserver_deployment.yaml | 4 +-
.../v2/assets/kube-scheduler/deployment.yaml | 1 -
.../openshift-oauth-apiserver/deployment.yaml | 1 -
.../hostedcontrolplane/v2/etcd/etcd_test.go | 122 +
.../hostedcontrolplane/v2/etcd/statefulset.go | 9 +
.../hostedcontrolplane/v2/kas/deployment.go | 32 +-
.../v2/kas/deployment_test.go | 209 +-
.../hostedcontrolplane/v2/kcm/deployment.go | 9 +
.../v2/kcm/deployment_test.go | 156 +
.../v2/kube_scheduler/deployment.go | 9 +
.../v2/kube_scheduler/deployment_test.go | 174 +
.../hostedcontrolplane/v2/oapi/deployment.go | 9 +
.../v2/oapi/deployment_test.go | 140 +
.../hostedcontrolplane/v2/oauth/deployment.go | 10 +
.../v2/oauth/deployment_test.go | 139 +
.../v2/oauth_apiserver/deployment.go | 11 +
.../v2/oauth_apiserver/deployment_test.go | 136 +
.../hostedcontrolplane/v2/ocm/component.go | 1 +
.../hostedcontrolplane/v2/ocm/deployment.go | 28 +
.../v2/ocm/deployment_test.go | 140 +
docs/content/reference/aggregated-docs.md | 461 +-
docs/content/reference/api.md | 461 +-
support/util/loglevel.go | 42 +
support/util/loglevel_test.go | 107 +
.../hypershift/v1beta1/hostedcluster_types.go | 77 +
.../api/hypershift/v1beta1/operator.go | 68 +-
.../v1beta1/zz_generated.deepcopy.go | 151 +
..._generated.featuregated-crd-manifests.yaml | 2 +
101 files changed, 25163 insertions(+), 94 deletions(-)
create mode 100644 api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPUserFacingOperatorLogs.yaml
create mode 100644 api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPUserFacingOperatorLogs.yaml
create mode 100644 client/applyconfiguration/hypershift/v1beta1/componentloglevelspec.go
create mode 100644 client/applyconfiguration/hypershift/v1beta1/etcdoperatorspec.go
create mode 100644 client/applyconfiguration/hypershift/v1beta1/kubeapiserveroperatorspec.go
create mode 100644 client/applyconfiguration/hypershift/v1beta1/kubecontrollermanageroperatorspec.go
create mode 100644 client/applyconfiguration/hypershift/v1beta1/kubescheduleroperatorspec.go
create mode 100644 client/applyconfiguration/hypershift/v1beta1/oauthserveroperatorspec.go
create mode 100644 client/applyconfiguration/hypershift/v1beta1/openshiftapiserveroperatorspec.go
create mode 100644 client/applyconfiguration/hypershift/v1beta1/openshiftcontrollermanageroperatorspec.go
create mode 100644 client/applyconfiguration/hypershift/v1beta1/openshiftoauthapiserveroperatorspec.go
create mode 100644 cmd/install/assets/crds/hypershift-operator/tests/hostedclusters.hypershift.openshift.io/featuregated.hostedclusters.operatorconfiguration.testsuite.yaml
create mode 100644 control-plane-operator/controllers/hostedcontrolplane/v2/kube_scheduler/deployment_test.go
create mode 100644 control-plane-operator/controllers/hostedcontrolplane/v2/ocm/deployment.go
create mode 100644 control-plane-operator/controllers/hostedcontrolplane/v2/ocm/deployment_test.go
create mode 100644 support/util/loglevel.go
create mode 100644 support/util/loglevel_test.go
diff --git a/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-Default.yaml b/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-Default.yaml
index ed6fe5dc246d..235b43b3b360 100644
--- a/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-Default.yaml
+++ b/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-Default.yaml
@@ -35,6 +35,9 @@
},
{
"name": "EtcdSharding"
+ },
+ {
+ "name": "HCPUserFacingOperatorLogs"
}
],
"enabled": [
diff --git a/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml b/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml
index 087183961cdf..562d145d958f 100644
--- a/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml
+++ b/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml
@@ -54,6 +54,9 @@
},
{
"name": "TLSAdherence"
+ },
+ {
+ "name": "HCPUserFacingOperatorLogs"
}
],
"version": ""
diff --git a/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-Default.yaml b/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-Default.yaml
index 9970329f3b4e..32e42f00a53a 100644
--- a/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-Default.yaml
+++ b/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-Default.yaml
@@ -35,6 +35,9 @@
},
{
"name": "EtcdSharding"
+ },
+ {
+ "name": "HCPUserFacingOperatorLogs"
}
],
"enabled": [
diff --git a/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml b/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml
index 8bd932a41aa2..390c4f924acf 100644
--- a/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml
+++ b/api/hypershift/v1beta1/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml
@@ -51,6 +51,9 @@
},
{
"name": "EtcdSharding"
+ },
+ {
+ "name": "HCPUserFacingOperatorLogs"
}
],
"version": ""
diff --git a/api/hypershift/v1beta1/hostedcluster_types.go b/api/hypershift/v1beta1/hostedcluster_types.go
index b20ea6f8d498..0d303e4767de 100644
--- a/api/hypershift/v1beta1/hostedcluster_types.go
+++ b/api/hypershift/v1beta1/hostedcluster_types.go
@@ -388,6 +388,9 @@ const (
RecommendedClusterSizeAnnotation = "hypershift.openshift.io/recommended-cluster-size"
// KubeAPIServerVerbosityLevelAnnotation allows specifying the log verbosity of kube-apiserver.
+ // Deprecated: Use spec.operatorConfiguration.kubeAPIServer.logLevel instead.
+ // When both are set, the OperatorConfiguration field takes precedence.
+ // This annotation will be removed in a future release.
KubeAPIServerVerbosityLevelAnnotation = "hypershift.openshift.io/kube-apiserver-verbosity-level"
// NodePoolSupportsKubevirtTopologySpreadConstraintsAnnotation indicates if the NodePool currently supports
@@ -2895,6 +2898,80 @@ type OperatorConfiguration struct {
//
// +optional
IngressOperator *IngressOperatorSpec `json:"ingressOperator,omitempty"`
+
+ // kubeAPIServer configures the kube-apiserver component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ KubeAPIServer KubeAPIServerOperatorSpec `json:"kubeAPIServer,omitzero"`
+
+ // etcd configures the etcd component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // Note: etcd supports fewer log levels than klog-based components,
+ // etcd supports only Normal and Debug log levels.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ Etcd EtcdOperatorSpec `json:"etcd,omitzero"`
+
+ // kubeControllerManager configures the kube-controller-manager component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ KubeControllerManager KubeControllerManagerOperatorSpec `json:"kubeControllerManager,omitzero"`
+
+ // kubeScheduler configures the kube-scheduler component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ KubeScheduler KubeSchedulerOperatorSpec `json:"kubeScheduler,omitzero"`
+
+ // openShiftControllerManager configures the openshift-controller-manager component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ OpenShiftControllerManager OpenShiftControllerManagerOperatorSpec `json:"openShiftControllerManager,omitzero"`
+
+ // openShiftAPIServer configures the openshift-apiserver component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ OpenShiftAPIServer OpenShiftAPIServerOperatorSpec `json:"openShiftAPIServer,omitzero"`
+
+ // openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ OpenShiftOAuthAPIServer OpenShiftOAuthAPIServerOperatorSpec `json:"openShiftOAuthAPIServer,omitzero"`
+
+ // oauthServer configures the oauth-server component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ OAuthServer OAuthServerOperatorSpec `json:"oauthServer,omitzero"`
}
// +genclient
diff --git a/api/hypershift/v1beta1/operator.go b/api/hypershift/v1beta1/operator.go
index 5c4160fb257a..3980fa37ffc0 100644
--- a/api/hypershift/v1beta1/operator.go
+++ b/api/hypershift/v1beta1/operator.go
@@ -18,7 +18,7 @@ const (
KubevirtDefaultV4InternalSubnet = "100.66.0.0/16"
)
-// +kubebuilder:validation:Enum="";Normal;Debug;Trace;TraceAll
+// +kubebuilder:validation:Enum=Normal;Debug;Trace;TraceAll
type LogLevel string
var (
@@ -40,6 +40,72 @@ var (
TraceAll LogLevel = "TraceAll"
)
+// ComponentLogLevelSpec configures the log verbosity for a hosted control plane component.
+// +kubebuilder:validation:MinProperties=1
+type ComponentLogLevelSpec struct {
+ // logLevel sets the log verbosity for the component.
+ // Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ // When set to Normal, standard operational log messages are produced for auditing and common operations.
+ // When set to Debug, more verbose logging is enabled for diagnosing problems.
+ // When set to Trace, very verbose logging is enabled including function-level tracing.
+ // When set to TraceAll, the most verbose logging is used, including full API body content,
+ // this can cause significant performance impact and produce large volumes of logs.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ LogLevel LogLevel `json:"logLevel,omitempty"`
+}
+
+// KubeAPIServerOperatorSpec specifies the configuration for the Kube API Server.
+// +kubebuilder:validation:MinProperties=1
+type KubeAPIServerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// EtcdOperatorSpec specifies the configuration for the etcd.
+// +kubebuilder:validation:MinProperties=1
+// +kubebuilder:validation:XValidation:rule="!has(self.logLevel) || self.logLevel in ['Normal', 'Debug']",message="etcd only supports Normal and Debug log levels; Trace and TraceAll are not valid for etcd"
+type EtcdOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// KubeControllerManagerOperatorSpec specifies the configuration for the Kube Controller Manager.
+// +kubebuilder:validation:MinProperties=1
+type KubeControllerManagerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// KubeSchedulerOperatorSpec specifies the configuration for the Kube Scheduler.
+// +kubebuilder:validation:MinProperties=1
+type KubeSchedulerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// OpenShiftControllerManagerOperatorSpec specifies the configuration for the OpenShift Controller Manager.
+// +kubebuilder:validation:MinProperties=1
+type OpenShiftControllerManagerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// OpenShiftAPIServerOperatorSpec specifies the configuration for the OpenShift API Server.
+// +kubebuilder:validation:MinProperties=1
+type OpenShiftAPIServerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// OpenShiftOAuthAPIServerOperatorSpec specifies the configuration for the OpenShift OAuth API Server.
+// +kubebuilder:validation:MinProperties=1
+type OpenShiftOAuthAPIServerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// OAuthServerOperatorSpec specifies the configuration for the OAuth Server.
+// +kubebuilder:validation:MinProperties=1
+type OAuthServerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
// ClusterVersionOperatorSpec is the specification of the desired behavior of the Cluster Version Operator.
type ClusterVersionOperatorSpec struct {
// operatorLogLevel is an intent based logging for the operator itself. It does not give fine-grained control,
diff --git a/api/hypershift/v1beta1/zz_generated.deepcopy.go b/api/hypershift/v1beta1/zz_generated.deepcopy.go
index 702745ff3476..ecac3db738d4 100644
--- a/api/hypershift/v1beta1/zz_generated.deepcopy.go
+++ b/api/hypershift/v1beta1/zz_generated.deepcopy.go
@@ -1438,6 +1438,21 @@ func (in *ClusterVersionStatus) DeepCopy() *ClusterVersionStatus {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *ComponentLogLevelSpec) DeepCopyInto(out *ComponentLogLevelSpec) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentLogLevelSpec.
+func (in *ComponentLogLevelSpec) DeepCopy() *ComponentLogLevelSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(ComponentLogLevelSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ComponentResource) DeepCopyInto(out *ComponentResource) {
*out = *in
@@ -1743,6 +1758,22 @@ func (in *EncryptionMigrationHistory) DeepCopy() *EncryptionMigrationHistory {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *EtcdOperatorSpec) DeepCopyInto(out *EtcdOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdOperatorSpec.
+func (in *EtcdOperatorSpec) DeepCopy() *EtcdOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(EtcdOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EtcdShardResource) DeepCopyInto(out *EtcdShardResource) {
*out = *in
@@ -3118,6 +3149,54 @@ func (in *KarpenterConfig) DeepCopy() *KarpenterConfig {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *KubeAPIServerOperatorSpec) DeepCopyInto(out *KubeAPIServerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeAPIServerOperatorSpec.
+func (in *KubeAPIServerOperatorSpec) DeepCopy() *KubeAPIServerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(KubeAPIServerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *KubeControllerManagerOperatorSpec) DeepCopyInto(out *KubeControllerManagerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllerManagerOperatorSpec.
+func (in *KubeControllerManagerOperatorSpec) DeepCopy() *KubeControllerManagerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(KubeControllerManagerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *KubeSchedulerOperatorSpec) DeepCopyInto(out *KubeSchedulerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeSchedulerOperatorSpec.
+func (in *KubeSchedulerOperatorSpec) DeepCopy() *KubeSchedulerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(KubeSchedulerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeVirtNodePoolStatus) DeepCopyInto(out *KubeVirtNodePoolStatus) {
*out = *in
@@ -4096,6 +4175,22 @@ func (in *NodeVersion) DeepCopy() *NodeVersion {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *OAuthServerOperatorSpec) DeepCopyInto(out *OAuthServerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuthServerOperatorSpec.
+func (in *OAuthServerOperatorSpec) DeepCopy() *OAuthServerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(OAuthServerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *OSImageStreamReference) DeepCopyInto(out *OSImageStreamReference) {
*out = *in
@@ -4162,6 +4257,54 @@ func (in *OVNKubernetesConfig) DeepCopy() *OVNKubernetesConfig {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *OpenShiftAPIServerOperatorSpec) DeepCopyInto(out *OpenShiftAPIServerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenShiftAPIServerOperatorSpec.
+func (in *OpenShiftAPIServerOperatorSpec) DeepCopy() *OpenShiftAPIServerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(OpenShiftAPIServerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *OpenShiftControllerManagerOperatorSpec) DeepCopyInto(out *OpenShiftControllerManagerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenShiftControllerManagerOperatorSpec.
+func (in *OpenShiftControllerManagerOperatorSpec) DeepCopy() *OpenShiftControllerManagerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(OpenShiftControllerManagerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *OpenShiftOAuthAPIServerOperatorSpec) DeepCopyInto(out *OpenShiftOAuthAPIServerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenShiftOAuthAPIServerOperatorSpec.
+func (in *OpenShiftOAuthAPIServerOperatorSpec) DeepCopy() *OpenShiftOAuthAPIServerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(OpenShiftOAuthAPIServerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *OpenStackIdentityReference) DeepCopyInto(out *OpenStackIdentityReference) {
*out = *in
@@ -4277,6 +4420,14 @@ func (in *OperatorConfiguration) DeepCopyInto(out *OperatorConfiguration) {
*out = new(IngressOperatorSpec)
(*in).DeepCopyInto(*out)
}
+ out.KubeAPIServer = in.KubeAPIServer
+ out.Etcd = in.Etcd
+ out.KubeControllerManager = in.KubeControllerManager
+ out.KubeScheduler = in.KubeScheduler
+ out.OpenShiftControllerManager = in.OpenShiftControllerManager
+ out.OpenShiftAPIServer = in.OpenShiftAPIServer
+ out.OpenShiftOAuthAPIServer = in.OpenShiftOAuthAPIServer
+ out.OAuthServer = in.OAuthServer
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorConfiguration.
diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml
index 7537bc7ec496..539c03e31904 100644
--- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml
+++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests.yaml
@@ -213,6 +213,7 @@ hostedclusters.hypershift.openshift.io:
- ExternalOIDCWithUpstreamParity
- GCPPlatform
- HCPEtcdBackup
+ - HCPUserFacingOperatorLogs
- HyperShiftOnlyDynamicResourceAllocation
- ImageStreamImportMode
- IngressComponentRouteLabels
@@ -291,6 +292,7 @@ hostedcontrolplanes.hypershift.openshift.io:
- ExternalOIDCWithUpstreamParity
- GCPPlatform
- HCPEtcdBackup
+ - HCPUserFacingOperatorLogs
- HyperShiftOnlyDynamicResourceAllocation
- ImageStreamImportMode
- IngressComponentRouteLabels
diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml
index 11ce8337b3c8..7bcf137f3316 100644
--- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml
+++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml
@@ -3514,7 +3514,6 @@ spec:
Valid values are: "Normal", "Debug", "Trace", "TraceAll".
Defaults to "Normal".
enum:
- - ""
- Normal
- Debug
- Trace
diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPUserFacingOperatorLogs.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPUserFacingOperatorLogs.yaml
new file mode 100644
index 000000000000..790fb5b62c64
--- /dev/null
+++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPUserFacingOperatorLogs.yaml
@@ -0,0 +1,8377 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ feature-gate.release.openshift.io/HCPUserFacingOperatorLogs: "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: Control Plane Version
+ jsonPath: .status.controlPlaneVersion.history[?(@.state=="Completed")].version
+ name: CP 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
+ - description: Control Plane Progress
+ jsonPath: .status.controlPlaneVersion.history[0].state
+ name: CP Progress
+ priority: 1
+ type: string
+ - description: Data Plane Progress
+ jsonPath: .status.version.history[0].state
+ name: DP Progress
+ priority: 1
+ 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
+ autoNode:
+ description: |-
+ autoNode specifies the configuration for automatic node provisioning and lifecycle management.
+ When set, the provisioner(e.g. Karpenter) will be used to provision nodes for targeted workloads.
+ properties:
+ provisionerConfig:
+ description: provisionerConfig specifies the provisioner used
+ for automatic node management.
+ properties:
+ karpenter:
+ description: karpenter specifies the configuration for the
+ Karpenter provisioner.
+ properties:
+ aws:
+ description: aws specifies the AWS-specific configuration
+ for Karpenter.
+ properties:
+ roleARN:
+ description: "roleARN specifies the ARN of the IAM
+ role that Karpenter assumes to provision\nand manage
+ EC2 instances in the hosted cluster's AWS account.\n\nThe
+ referenced role must have a trust relationship that
+ allows it to be assumed\nby the karpenter service
+ account in the hosted cluster via OIDC.\nExample:\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Principal\": {\n\t\t\t\t\"Federated\":
+ \"\"\n\t\t\t},\n\t\t\t\"Action\":
+ \"sts:AssumeRoleWithWebIdentity\",\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringEquals\": {\n\t\t\t\t\t\":sub\":
+ \"system:serviceaccount:kube-system:karpenter\"\n\t\t\t\t}\n\t\t\t}\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\"Sid\": \"AllowScopedEC2InstanceAccessActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": [\n\t\t\t\t\"arn:*:ec2:*::image/*\",\n\t\t\t\t\"arn:*:ec2:*::snapshot/*\",\n\t\t\t\t\"arn:*:ec2:*:*:security-group/*\",\n\t\t\t\t\"arn:*:ec2:*:*:subnet/*\"\n\t\t\t],\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:RunInstances\",\n\t\t\t\t\"ec2:CreateFleet\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedEC2LaunchTemplateAccessActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:ec2:*:*:launch-template/*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:RunInstances\",\n\t\t\t\t\"ec2:CreateFleet\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedEC2InstanceActionsWithTags\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": [\n\t\t\t\t\"arn:*:ec2:*:*:fleet/*\",\n\t\t\t\t\"arn:*:ec2:*:*:instance/*\",\n\t\t\t\t\"arn:*:ec2:*:*:volume/*\",\n\t\t\t\t\"arn:*:ec2:*:*:network-interface/*\",\n\t\t\t\t\"arn:*:ec2:*:*:launch-template/*\",\n\t\t\t\t\"arn:*:ec2:*:*:spot-instances-request/*\"\n\t\t\t],\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:RunInstances\",\n\t\t\t\t\"ec2:CreateFleet\",\n\t\t\t\t\"ec2:CreateLaunchTemplate\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:RequestTag/karpenter.sh/nodepool\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedResourceCreationTagging\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": [\n\t\t\t\t\"arn:*:ec2:*:*:fleet/*\",\n\t\t\t\t\"arn:*:ec2:*:*:instance/*\",\n\t\t\t\t\"arn:*:ec2:*:*:volume/*\",\n\t\t\t\t\"arn:*:ec2:*:*:network-interface/*\",\n\t\t\t\t\"arn:*:ec2:*:*:launch-template/*\",\n\t\t\t\t\"arn:*:ec2:*:*:spot-instances-request/*\"\n\t\t\t],\n\t\t\t\"Action\":
+ \"ec2:CreateTags\",\n\t\t\t\"Condition\": {\n\t\t\t\t\"StringEquals\":
+ {\n\t\t\t\t\t\"ec2:CreateAction\": [\n\t\t\t\t\t\t\"RunInstances\",\n\t\t\t\t\t\t\"CreateFleet\",\n\t\t\t\t\t\t\"CreateLaunchTemplate\"\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t\"StringLike\":
+ {\n\t\t\t\t\t\"aws:RequestTag/karpenter.sh/nodepool\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedResourceTagging\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:ec2:*:*:instance/*\",\n\t\t\t\"Action\":
+ \"ec2:CreateTags\",\n\t\t\t\"Condition\": {\n\t\t\t\t\"StringLike\":
+ {\n\t\t\t\t\t\"aws:ResourceTag/karpenter.sh/nodepool\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedDeletion\",\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Resource\":
+ [\n\t\t\t\t\"arn:*:ec2:*:*:instance/*\",\n\t\t\t\t\"arn:*:ec2:*:*:launch-template/*\"\n\t\t\t],\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:TerminateInstances\",\n\t\t\t\t\"ec2:DeleteLaunchTemplate\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:ResourceTag/karpenter.sh/nodepool\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowRegionalReadActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:DescribeImages\",\n\t\t\t\t\"ec2:DescribeInstances\",\n\t\t\t\t\"ec2:DescribeInstanceTypeOfferings\",\n\t\t\t\t\"ec2:DescribeInstanceTypes\",\n\t\t\t\t\"ec2:DescribeLaunchTemplates\",\n\t\t\t\t\"ec2:DescribeSecurityGroups\",\n\t\t\t\t\"ec2:DescribeSpotPriceHistory\",\n\t\t\t\t\"ec2:DescribeSubnets\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowSSMReadActions\",\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Resource\":
+ \"arn:*:ssm:*::parameter/aws/service/*\",\n\t\t\t\"Action\":
+ \"ssm:GetParameter\"\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowPricingReadActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"*\",\n\t\t\t\"Action\":
+ \"pricing:GetProducts\"\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowInterruptionQueueActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"sqs:DeleteMessage\",\n\t\t\t\t\"sqs:GetQueueUrl\",\n\t\t\t\t\"sqs:ReceiveMessage\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowPassingInstanceRole\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:role/*\",\n\t\t\t\"Action\":
+ \"iam:PassRole\",\n\t\t\t\"Condition\": {\n\t\t\t\t\"StringEquals\":
+ {\n\t\t\t\t\t\"iam:PassedToService\": [\n\t\t\t\t\t\t\"ec2.amazonaws.com\",\n\t\t\t\t\t\t\"ec2.amazonaws.com.cn\"\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedInstanceProfileCreationActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:instance-profile/*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"iam:CreateInstanceProfile\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:RequestTag/karpenter.k8s.aws/ec2nodeclass\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedInstanceProfileTagActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:instance-profile/*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"iam:TagInstanceProfile\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:ResourceTag/karpenter.k8s.aws/ec2nodeclass\":
+ \"*\",\n\t\t\t\t\t\"aws:RequestTag/karpenter.k8s.aws/ec2nodeclass\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedInstanceProfileActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:instance-profile/*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"iam:AddRoleToInstanceProfile\",\n\t\t\t\t\"iam:RemoveRoleFromInstanceProfile\",\n\t\t\t\t\"iam:DeleteInstanceProfile\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:ResourceTag/karpenter.k8s.aws/ec2nodeclass\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowInstanceProfileReadActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:instance-profile/*\",\n\t\t\t\"Action\":
+ \"iam:GetInstanceProfile\"\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowUnscopedInstanceProfileListAction\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"*\",\n\t\t\t\"Action\":
+ \"iam:ListInstanceProfiles\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ x-kubernetes-validations:
+ - message: roleARN must be a valid AWS IAM role ARN
+ (e.g. arn:aws:iam::123456789012:role/MyRole)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role/.+$')
+ required:
+ - roleARN
+ type: object
+ platform:
+ description: platform specifies the infrastructure platform
+ that Karpenter should provision nodes on.
+ enum:
+ - AWS
+ maxLength: 100
+ type: string
+ required:
+ - platform
+ type: object
+ x-kubernetes-validations:
+ - message: aws is required when platform is AWS, and forbidden
+ otherwise
+ rule: 'self.platform == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ name:
+ description: name specifies the name of the provisioner to
+ use for automatic node management.
+ enum:
+ - Karpenter
+ type: string
+ required:
+ - name
+ type: object
+ x-kubernetes-validations:
+ - message: karpenter is required when name is Karpenter, and forbidden
+ otherwise
+ rule: 'self.name == ''Karpenter'' ? has(self.karpenter) : !has(self.karpenter)'
+ required:
+ - provisionerConfig
+ type: object
+ 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.
+
+ The supported groups list for this profile is empty by default.
+
+ 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 that their operands
+ do not support. For example, to use only ECDHE-RSA-AES128-GCM-SHA256 (yaml):
+
+ ciphers:
+ - ECDHE-RSA-AES128-GCM-SHA256
+
+ TLS 1.3 cipher suites (e.g. TLS_AES_128_GCM_SHA256) are not configurable
+ and are always enabled when TLS 1.3 is negotiated.
+ 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 supported groups list includes by default the following groups
+ in suggested preference order (ordering may not be honored by all implementations):
+ X25519MLKEM768, X25519, secp256r1, secp384r1.
+
+ 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
+ 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.
+ The supported groups list includes by default the following groups
+ in suggested preference order (ordering may not be honored by all implementations):
+ X25519MLKEM768, X25519, secp256r1, secp384r1.
+ 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 supported groups list includes by default the following groups
+ in suggested preference order (ordering may not be honored by all implementations):
+ X25519MLKEM768, X25519, secp256r1, secp384r1.
+
+ 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
+ - 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
+ - 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 cipher and groups lists in these profiles are based on version 5.8 of the
+ Mozilla Server Side TLS configuration guidelines.
+ See: https://ssl-config.mozilla.org/guidelines/5.8.json
+
+ The groups are listed in suggested preference order, with the most preferred group first.
+ Note that not all platform components honor the ordering: Go-based components use Go's
+ internal preference order and treat this list as a filter of allowed groups rather than
+ an ordered preference.
+ Note that X25519MLKEM768 is a post-quantum hybrid group that is not
+ FIPS-approved and should be ignored by components running in FIPS mode.
+
+ 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).
+ Note: the serviceAccountIssuer field within this configuration is ignored; the
+ HostedCluster's spec.issuerURL is always used as the service account issuer instead.
+ 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.
+ Each entry must be a valid registry scope in the format hostname[:port][/path],
+ optionally prefixed with "*." for wildcard subdomains (e.g., "*.example.com").
+ The hostname must consist of valid DNS labels separated by dots, where each label
+ contains only alphanumeric characters and hyphens and does not start or end with a hyphen.
+ Entries must not be empty, must not include tags (e.g., ":latest") or digests (e.g., "@sha256:..."),
+ and must be at most 256 characters in length. The list may contain at most 1024 entries.
+
+ Only one of BlockedRegistries or AllowedRegistries may be set.
+ items:
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: each registry must be a valid hostname[:port][/path]
+ or wildcard *.hostname format without tags or digests
+ rule: self.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][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?)(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?$')
+ maxItems: 1024
+ type: array
+ x-kubernetes-list-type: atomic
+ blockedRegistries:
+ description: |-
+ blockedRegistries cannot be used for image pull and push actions. All other registries are permitted.
+ Each entry must be a valid registry scope in the format hostname[:port][/path],
+ optionally prefixed with "*." for wildcard subdomains (e.g., "*.example.com").
+ The hostname must consist of valid DNS labels separated by dots, where each label
+ contains only alphanumeric characters and hyphens and does not start or end with a hyphen.
+ Entries must not be empty, must not include tags (e.g., ":latest") or digests (e.g., "@sha256:..."),
+ and must be at most 256 characters in length. The list may contain at most 1024 entries.
+
+ Only one of BlockedRegistries or AllowedRegistries may be set.
+ items:
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: each registry must be a valid hostname[:port][/path]
+ or wildcard *.hostname format without tags or digests
+ rule: self.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][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?)(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?$')
+ maxItems: 1024
+ 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.
+ Each entry must be a valid registry scope in the format hostname[:port][/path],
+ optionally prefixed with "*." for wildcard subdomains (e.g., "*.example.com").
+ The hostname must consist of valid DNS labels separated by dots, where each label
+ contains only alphanumeric characters and hyphens and does not start or end with a hyphen.
+ Entries must not be empty, must not include tags (e.g., ":latest") or digests (e.g., "@sha256:..."),
+ and must be at most 256 characters in length. The list may contain at most 1024 entries.
+ items:
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: each registry must be a valid hostname[:port][/path]
+ or wildcard *.hostname format without tags or digests
+ rule: self.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][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?)(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?$')
+ maxItems: 1024
+ 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.
+ A maximum of 250 component routes may be configured.
+ 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
+ maxItems: 250
+ 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
+ x-kubernetes-validations:
+ - message: domain is immutable once set
+ rule: self == oldSelf
+ 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
+ networkDiagnostics:
+ description: |-
+ networkDiagnostics defines network diagnostics configuration.
+
+ Takes precedence over spec.disableNetworkDiagnostics in network.operator.openshift.io.
+ If networkDiagnostics is not specified or is empty,
+ and the spec.disableNetworkDiagnostics flag in network.operator.openshift.io is set to true,
+ the network diagnostics feature will be disabled.
+ properties:
+ mode:
+ description: |-
+ mode controls the network diagnostics mode
+
+ 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.
+ The current default is All.
+ enum:
+ - ""
+ - All
+ - Disabled
+ type: string
+ sourcePlacement:
+ description: |-
+ sourcePlacement controls the scheduling of network diagnostics source deployment
+
+ See NetworkDiagnosticsSourcePlacement for more details about default values.
+ properties:
+ nodeSelector:
+ additionalProperties:
+ type: string
+ description: |-
+ nodeSelector is the node selector applied to network diagnostics components
+
+ 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.
+ The current default is `kubernetes.io/os: linux`.
+ type: object
+ tolerations:
+ description: |-
+ tolerations is a list of tolerations applied to network diagnostics components
+
+ 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.
+ The current default is an empty list.
+ 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, Equal, Lt, and Gt. Defaults to Equal.
+ Exists is equivalent to wildcard for value, so that a pod can
+ tolerate all taints of a particular category.
+ Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
+ type: string
+ tolerationSeconds:
+ description: |-
+ TolerationSeconds represents the period of time the toleration (which must be
+ of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+ it is not set, which means tolerate the taint forever (do not evict). Zero and
+ negative values will be treated as 0 (evict immediately) by the system.
+ format: int64
+ type: integer
+ value:
+ description: |-
+ Value is the taint value the toleration matches to.
+ If the operator is Exists, the value should be empty, otherwise just a regular string.
+ type: string
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ targetPlacement:
+ description: |-
+ targetPlacement controls the scheduling of network diagnostics target daemonset
+
+ See NetworkDiagnosticsTargetPlacement for more details about default values.
+ properties:
+ nodeSelector:
+ additionalProperties:
+ type: string
+ description: |-
+ nodeSelector is the node selector applied to network diagnostics components
+
+ 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.
+ The current default is `kubernetes.io/os: linux`.
+ type: object
+ tolerations:
+ description: |-
+ tolerations is a list of tolerations applied to network diagnostics components
+
+ 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.
+ The current default is `- operator: "Exists"` which means that all taints are tolerated.
+ 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, Equal, Lt, and Gt. Defaults to Equal.
+ Exists is equivalent to wildcard for value, so that a pod can
+ tolerate all taints of a particular category.
+ Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
+ type: string
+ tolerationSeconds:
+ description: |-
+ TolerationSeconds represents the period of time the toleration (which must be
+ of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+ it is not set, which means tolerate the taint forever (do not evict). Zero and
+ negative values will be treated as 0 (evict immediately) by the system.
+ format: int64
+ type: integer
+ value:
+ description: |-
+ Value is the taint value the toleration matches to.
+ If the operator is Exists, the value should be empty, otherwise just a regular string.
+ type: string
+ type: object
+ type: array
+ 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
+ x-kubernetes-validations:
+ - message: cannot set networkDiagnostics.sourcePlacement and networkDiagnostics.targetPlacement
+ when networkDiagnostics.mode is Disabled
+ rule: '!has(self.networkDiagnostics) || !has(self.networkDiagnostics.mode)
+ || self.networkDiagnostics.mode!=''Disabled'' || !has(self.networkDiagnostics.sourcePlacement)
+ && !has(self.networkDiagnostics.targetPlacement)'
+ 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.
+
+ On Azure, this is a full Azure resource ID for a Private DNS Zone in the format:
+ /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Network/privateDnsZones/{zoneName}
+ The maximum length of 265 is derived from Azure resource naming limits
+ (see https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules):
+ /subscriptions/ (15) + UUID (36) + /resourceGroups/ (16) + resource group name (90)
+ maxLength: 265
+ 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.
+
+ On Azure, this is a full Azure resource ID for a DNS Zone in the format:
+ /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Network/dnsZones/{zoneName}
+ The maximum length of 258 is derived from Azure resource naming limits
+ (see https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules):
+ /subscriptions/ (15) + UUID (36) + /resourceGroups/ (16) + resource group name (90)
+ maxLength: 258
+ 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:
+ 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
+ - message: restoreSnapshotURL is immutable
+ rule: self == oldSelf
+ - message: restoreSnapshotURL must be a valid URL with
+ scheme https or s3
+ rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
+ 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
+ x-kubernetes-validations:
+ - message: restoreSnapshotURL cannot be added or removed after
+ creation
+ rule: has(self.restoreSnapshotURL) == has(oldSelf.restoreSnapshotURL)
+ 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.
+ Once set, this value is immutable.
+ 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
+ monitoring:
+ description: |-
+ monitoring configures monitoring for the hosted cluster, including
+ forwarding of control plane metrics to the hosted cluster's monitoring stack.
+ When omitted, metrics forwarding behavior is determined by the
+ hypershift.openshift.io/enable-metrics-forwarding annotation for backward compatibility.
+ If neither is set, metrics forwarding is disabled.
+ minProperties: 1
+ properties:
+ metricsForwarding:
+ description: |-
+ metricsForwarding configures forwarding of control plane metrics into
+ the hosted cluster's monitoring stack.
+ When omitted, metrics forwarding behavior is determined by the
+ hypershift.openshift.io/enable-metrics-forwarding annotation for backward compatibility.
+ If neither is set, metrics forwarding is disabled.
+ properties:
+ metricsSet:
+ description: |-
+ metricsSet specifies which set of metrics to forward to the hosted
+ cluster's monitoring stack. This controls only the metrics-proxy forwarding
+ path and does not affect management-cluster-side ServiceMonitor/PodMonitor
+ relabel configurations.
+ When not specified, the value from monitoring.metricsSet is used, which itself
+ falls back to the global METRICS_SET environment variable (default "Telemetry").
+
+ "Telemetry" forwards only the minimal set of metrics required for OpenShift Telemetry.
+ "SRE" forwards the Telemetry set plus additional metrics defined in the sre-metric-set
+ ConfigMap, needed for SRE dashboards and alerts.
+ "All" forwards all metrics from control plane components without filtering,
+ which produces significantly higher metrics volume.
+ enum:
+ - Telemetry
+ - SRE
+ - All
+ type: string
+ mode:
+ description: |-
+ mode controls whether metrics forwarding is active for this hosted cluster.
+ When set to "Forward", metrics-proxy and endpoint-resolver are deployed in the
+ control plane, and a metrics-forwarder is deployed in the hosted cluster.
+ When set to "None", metrics forwarding is inactive.
+ enum:
+ - Forward
+ - None
+ type: string
+ required:
+ - mode
+ type: object
+ metricsSet:
+ description: |-
+ metricsSet specifies which set of metrics to collect and forward.
+ This overrides the global METRICS_SET environment variable configured on the HyperShift Operator.
+ When not specified, the global METRICS_SET value is used, which defaults to "Telemetry".
+
+ "Telemetry" collects only the minimal set of metrics required for OpenShift Telemetry.
+ "SRE" collects the Telemetry set plus additional metrics defined in the sre-metric-set ConfigMap,
+ needed for SRE dashboards and alerts.
+ "All" collects all metrics from control plane components without filtering,
+ which produces significantly higher metrics volume.
+ enum:
+ - Telemetry
+ - SRE
+ - All
+ type: string
+ 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
+ ipv6:
+ description: |-
+ ipv6 allows users to configure IP settings for IPv6 connections. When omitted,
+ this means no opinions and the default configuration is used. Check individual
+ fields within ipv6 for details of default values.
+ For KubeVirt hosted clusters using dual-stack networking, it is recommended to
+ set ipv6.internalJoinSubnet to a value different from the management cluster's
+ join subnet (default fd98::/64) to avoid IPv6 routing conflicts.
+ minProperties: 1
+ properties:
+ internalJoinSubnet:
+ description: |-
+ internalJoinSubnet is a v6 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 fd98::/64.
+ For KubeVirt hosted clusters, if this field is not set, HyperShift will
+ automatically use fd99::/64 to avoid collisions with the management cluster's
+ default join subnet (fd98::/64).
+ The subnet must be large enough to accommodate one IP per node in your cluster.
+ The value must be a valid IPv6 CIDR (e.g. fd98::/64). IPv4 addresses,
+ IPv4-mapped IPv6 addresses, and dual-stack addresses are not permitted.
+ The prefix length must be in the range /0 to /125 inclusive.
+ This field is immutable once set.
+ maxLength: 48
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: Subnet must be in valid IPv6 CIDR format
+ (e.g., fd98::/64)
+ rule: isCIDR(self) && cidr(self).ip().family() ==
+ 6
+ - message: subnet must be in the range /0 to /125
+ inclusive
+ rule: isCIDR(self) && cidr(self).prefixLength()
+ <= 125
+ - message: internalJoinSubnet is immutable
+ rule: self == oldSelf
+ internalTransitSwitchSubnet:
+ description: |-
+ internalTransitSwitchSubnet is a v6 subnet in IPv6 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 fd97::/64.
+ The subnet must be large enough to accommodate one IP per node in your cluster.
+ The value must be a valid IPv6 CIDR (e.g. fd97::/64). IPv4 addresses,
+ IPv4-mapped IPv6 addresses, and dual-stack addresses are not permitted.
+ The prefix length must be in the range /0 to /125 inclusive.
+ This field is immutable once set.
+ maxLength: 48
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: Subnet must be in valid IPv6 CIDR format
+ (e.g., fd97::/64)
+ rule: isCIDR(self) && cidr(self).ip().family() ==
+ 6
+ - message: subnet must be in the range /0 to /125
+ inclusive
+ rule: isCIDR(self) && cidr(self).prefixLength()
+ <= 125
+ - message: internalTransitSwitchSubnet is immutable
+ rule: self == oldSelf
+ type: object
+ mtu:
+ description: |-
+ mtu is the MTU to use for the tunnel interface on hosted cluster nodes.
+ This must be 100 bytes smaller than the uplink MTU.
+ When unset, the cluster-network-operator will determine the MTU automatically
+ based on the infrastructure (e.g., for commercial AWS regions, it defaults
+ to 8901 based on the 9001 uplink MTU minus 100 bytes overhead).
+ Some non-commercial AWS regions do not support 9001 uplink MTU,
+ requiring this field to be explicitly set to a lower value.
+ The maximum is 9216, which is the standard jumbo frame upper limit
+ supported by datacenter and cloud network interfaces.
+ The minimum is 576, which is the minimum IPv4 MTU per RFC 791.
+ This field is immutable once set.
+ format: int32
+ maximum: 9216
+ minimum: 576
+ type: integer
+ x-kubernetes-validations:
+ - message: mtu is immutable once set
+ rule: self == oldSelf
+ v4InternalSubnet:
+ description: |-
+ v4InternalSubnet configures the IPv4 subnet used by OVN-Kubernetes for gateway
+ router logical router port (LRP) addresses and masquerade/SNAT traffic within
+ the OVN logical topology. 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.
+ This field is distinct from ipv4.internalJoinSubnet, which configures the subnet
+ for the join switch that interconnects per-node gateway routers with the cluster
+ router. Both default to 100.64.0.0/16 but control different OVN-Kubernetes
+ internal networks and can be configured independently to avoid overlaps with
+ existing network infrastructure.
+ Once set, the value is immutable and cannot be modified in subsequent updates.
+ The default is 100.64.0.0/16.
+ The value must be in IPv4 CIDR notation (e.g., 192.168.0.0/16), consisting of
+ four decimal octets (0-255) separated by dots, followed by a slash and a prefix
+ length. The prefix length must be between 0 and 30 inclusive, and the first
+ octet must not be 0.
+ The value must be between 9 and 18 characters in length.
+ This field is immutable once set.
+ maxLength: 18
+ minLength: 9
+ type: string
+ x-kubernetes-validations:
+ - message: v4InternalSubnet is immutable once set
+ rule: self == oldSelf
+ - message: Subnet must be in a valid IPv4 CIDR format
+ rule: isCIDR(self) && cidr(self).ip().family() == 4
+ - message: subnet must be in the range /0 to /30 inclusive
+ rule: isCIDR(self) && cidr(self).prefixLength() <= 30
+ - message: first IP address octet must not be 0
+ rule: isCIDR(self) && cidr(self).ip().family() == 4
+ && int(self.split('.')[0]) > 0
+ v6InternalSubnet:
+ description: |-
+ v6InternalSubnet configures the IPv6 subnet used by OVN-Kubernetes for gateway
+ router logical router port (LRP) addresses and masquerade/SNAT traffic within
+ the OVN logical topology. 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.
+ This field is distinct from ipv6.internalJoinSubnet, which configures the subnet
+ for the join switch that interconnects per-node gateway routers with the cluster
+ router. Both default to fd98::/64 but control different OVN-Kubernetes internal
+ networks and can be configured independently to avoid overlaps with existing
+ network infrastructure.
+ Once set, the value is immutable and cannot be modified in subsequent updates.
+ The default is fd98::/64.
+ The value must be in IPv6 CIDR notation (e.g., fd98::/64), consisting of an
+ IPv6 address followed by a slash and a prefix length. The prefix length must
+ be between 0 and 125 inclusive.
+ The value must be between 4 and 48 characters in length.
+ This field is immutable once set.
+ maxLength: 48
+ minLength: 4
+ type: string
+ x-kubernetes-validations:
+ - message: v6InternalSubnet is immutable once set
+ rule: self == oldSelf
+ - message: Subnet must be in valid IPv6 CIDR format
+ rule: isCIDR(self) && cidr(self).ip().family() == 6
+ - message: subnet must be in the range /0 to /125 inclusive
+ rule: isCIDR(self) && cidr(self).prefixLength() <= 125
+ 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'
+ - message: ipv6 internalJoinSubnet and internalTransitSwitchSubnet
+ must not be the same
+ rule: '!has(self.ipv6) || !has(self.ipv6.internalJoinSubnet)
+ || !has(self.ipv6.internalTransitSwitchSubnet) || self.ipv6.internalJoinSubnet
+ != self.ipv6.internalTransitSwitchSubnet'
+ - message: mtu is immutable once set and cannot be removed
+ rule: '!has(oldSelf.mtu) || has(self.mtu)'
+ - message: ipv6 is immutable once set and cannot be removed
+ rule: '!has(oldSelf.ipv6) || has(self.ipv6)'
+ - message: ipv6.internalJoinSubnet cannot be removed once
+ set
+ rule: '!has(oldSelf.ipv6) || !has(oldSelf.ipv6.internalJoinSubnet)
+ || (has(self.ipv6) && has(self.ipv6.internalJoinSubnet))'
+ - message: ipv6.internalTransitSwitchSubnet cannot be removed
+ once set
+ rule: '!has(oldSelf.ipv6) || !has(oldSelf.ipv6.internalTransitSwitchSubnet)
+ || (has(self.ipv6) && has(self.ipv6.internalTransitSwitchSubnet))'
+ - message: v4InternalSubnet is immutable once set and cannot
+ be removed
+ rule: '!has(oldSelf.v4InternalSubnet) || has(self.v4InternalSubnet)'
+ - message: v6InternalSubnet is immutable once set and cannot
+ be removed
+ rule: '!has(oldSelf.v6InternalSubnet) || has(self.v6InternalSubnet)'
+ type: object
+ x-kubernetes-validations:
+ - message: ovnKubernetesConfig is immutable once set and cannot
+ be removed
+ rule: '!has(oldSelf.ovnKubernetesConfig) || has(self.ovnKubernetesConfig)'
+ etcd:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ etcd configures the etcd component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ Note: etcd supports fewer log levels than klog-based components,
+ etcd supports only Normal and Debug log levels.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ x-kubernetes-validations:
+ - message: etcd only supports Normal and Debug log levels; Trace
+ and TraceAll are not valid for etcd
+ rule: '!has(self.logLevel) || self.logLevel in [''Normal'',
+ ''Debug'']'
+ 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))
+ protocol:
+ description: |-
+ protocol specifies whether the Network Load Balancer uses PROXY
+ protocol to forward connections to the IngressController.
+
+ When set to "TCP", the NLB uses AWS's native client IP preservation.
+ This may cause hairpin connection failures for internal load
+ balancers when connections are made from pods to router pods on
+ the same node.
+
+ When set to "PROXY", the NLB disables native client IP preservation
+ and uses PROXY protocol v2. The IngressController enables PROXY
+ protocol on HAProxy so that it can parse PROXY protocol headers to
+ obtain the original client IP. This avoids hairpin connection
+ failures.
+
+ The following values are valid for this field:
+
+ * "TCP".
+ * "PROXY".
+
+ When omitted, this means the user has no opinion and the value is
+ left to the platform to choose a reasonable default, which is subject to
+ change over time. The current default is "PROXY".
+
+ Note that changing this field may cause brief connection failures
+ during the transition as the NLB attribute change and router rollout
+ occur independently.
+ enum:
+ - TCP
+ - PROXY
+ 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
+ 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
+ kubeAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeAPIServer configures the kube-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeControllerManager configures the kube-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeScheduler:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeScheduler configures the kube-scheduler component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ oauthServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ oauthServer configures the oauth-server component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftAPIServer configures the openshift-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftControllerManager configures the openshift-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftOAuthAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ 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.
+ For NodePool-created resources (EC2 instances and their initial EBS volumes), these will be merged with NodePool-scoped tags.
+ By default, HostedCluster tags take precedence over NodePool tags when both specify the same key.
+ To allow a NodePool tag to override a specific HostedCluster tag, set overridePolicy to "Allow" on that tag.
+ Cluster-scoped resources (VPC endpoints, security groups) only receive HostedCluster tags.
+ 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: |-
+ AWSClusterResourceTag is a tag to apply to AWS resources created for a
+ HostedCluster. It extends the base tag with an overridePolicy field that
+ controls whether NodePool-level tags can override this tag.
+ properties:
+ key:
+ description: |-
+ key is the key of the tag.
+ Must be between 1 and 128 characters and may only contain letters, digits,
+ and the characters _ . : / = + - @
+ maxLength: 128
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: 'key must only contain letters, digits, and
+ the characters _ . : / = + - @'
+ rule: self.matches('^[0-9A-Za-z_.:/=+@-]+$')
+ overridePolicy:
+ description: |-
+ overridePolicy controls whether a NodePool-level tag with the same key can
+ override this HostedCluster-level tag.
+
+ When set to "Allow", a NodePool tag with the same key will take precedence
+ over this HostedCluster tag. When set to "Deny" or omitted, the
+ HostedCluster value is preserved and the NodePool tag is ignored for that
+ key.
+ enum:
+ - Allow
+ - Deny
+ type: string
+ value:
+ description: |-
+ value is the value of the tag.
+ Must be between 1 and 256 characters and may only contain letters, digits,
+ and the characters _ . : / = + - @
+
+ 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
+ type: string
+ x-kubernetes-validations:
+ - message: 'value must only contain letters, digits,
+ and the characters _ . : / = + - @'
+ rule: self.matches('^[0-9A-Za-z_.:/=+@-]+$')
+ 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
+ controlPlaneOperator:
+ description: |-
+ controlPlaneOperator is the client ID of a federated managed identity, associated with control-plane-operator,
+ used in workload identity authentication for Azure Private Link Service operations.
+ 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 Azure cloud environment identifier.
+ enum:
+ - AzurePublicCloud
+ - AzureUSGovernmentCloud
+ - AzureChinaCloud
+ - AzureGermanCloud
+ - AzureBleuCloud
+ - AzureStackCloud
+ type: string
+ containerRegistry:
+ description: |-
+ containerRegistry configures how worker nodes authenticate to Azure Container Registry (ACR).
+ When set, the managed identity is attached to worker virtual machines and its resource ID is
+ written into the worker cloud provider config so kubelet's ACR credential provider can
+ authenticate without image pull secrets.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ properties:
+ credentials:
+ description: |-
+ credentials configures authentication for worker nodes pulling images from ACR
+ using a user-assigned managed identity.
+ The identity does not need to be in the same subscription or resource group as the
+ HostedCluster, but it must be in the same Azure AD tenant. The management cluster's
+ CAPZ identity must have Microsoft.ManagedIdentity/userAssignedIdentities/*/assign/action
+ on the identity's scope to attach it to worker virtual machines at creation time.
+ properties:
+ managedIdentity:
+ description: managedIdentity identifies the user-assigned
+ managed identity used for ACR image pulls.
+ properties:
+ resourceID:
+ description: |-
+ resourceID is the ARM resource ID of the user-assigned managed identity
+ in the format /subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ The identity must have the AcrPull role on the target Azure Container Registry.
+ It does not need to be in the same subscription or resource group as the HostedCluster,
+ but it must be in the same Azure AD tenant.
+ maxLength: 345
+ minLength: 131
+ type: string
+ x-kubernetes-validations:
+ - message: must be a user-assigned managed identity
+ ARM resource ID in the format /subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
+ rule: self.lowerAscii().matches('^/subscriptions/[^/]+/resourcegroups/[^/]+/providers/microsoft\\.managedidentity/userassignedidentities/[^/]+$')
+ required:
+ - resourceID
+ type: object
+ type:
+ description: type specifies the credential type used
+ for ACR image pulls.
+ enum:
+ - ManagedIdentity
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-validations:
+ - message: managedIdentity is required when type is ManagedIdentity,
+ and forbidden otherwise
+ rule: 'self.type == ''ManagedIdentity'' ? has(self.managedIdentity)
+ : !has(self.managedIdentity)'
+ required:
+ - credentials
+ type: object
+ 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
+ private:
+ description: |-
+ private configures private connectivity to the hosted cluster's API server.
+ This field is required when topology is Private or PublicAndPrivate, and must
+ not be set when topology is Public.
+ Once set at cluster creation, this field cannot be removed, and it cannot be
+ added to an existing cluster that was created without it.
+ properties:
+ privateLink:
+ description: |-
+ privateLink configures Azure Private Link Service for private API server access.
+ This field is required when type is "PrivateLink" and must not be set otherwise.
+ minProperties: 1
+ properties:
+ additionalAllowedSubscriptions:
+ description: |-
+ additionalAllowedSubscriptions is an optional list of additional Azure subscription IDs
+ permitted to create Private Endpoints to the Private Link Service. The guest cluster's
+ own subscription is always automatically allowed, so it does not need to be listed here.
+ Each item must be a valid UUID consisting of lowercase hexadecimal characters and hyphens,
+ in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ (e.g., "550e8400-e29b-41d4-a716-446655440000"). A maximum of 50 subscriptions may be specified.
+ items:
+ description: |-
+ AzureSubscriptionID is an Azure subscription ID in UUID format.
+ Must be exactly 36 characters consisting of hexadecimal digits [0-9a-fA-F] and hyphens
+ in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (e.g., "550e8400-e29b-41d4-a716-446655440000").
+ maxLength: 36
+ minLength: 36
+ type: string
+ x-kubernetes-validations:
+ - message: must be a valid UUID (e.g., 550e8400-e29b-41d4-a716-446655440000)
+ rule: self.matches('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$')
+ maxItems: 50
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: set
+ natSubnetID:
+ description: |-
+ natSubnetID is the Azure resource ID of the subnet used for Private Link Service NAT IP allocation.
+ This subnet must have privateLinkServiceNetworkPolicies disabled.
+ If not provided, the controller will auto-create a NAT subnet in the HC's VNet.
+ The expected format is:
+ /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
+ The maximum length is 355 characters.
+ maxLength: 355
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: natSubnetID is immutable once set
+ rule: self == oldSelf
+ - message: must be a valid Azure subnet resource ID
+ (e.g., /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Network/virtualNetworks/{vnet}/subnets/{subnet})
+ rule: self.matches('^/subscriptions/[^/]+/resourceGroups/[^/]+/providers/Microsoft\\.Network/virtualNetworks/[^/]+/subnets/[^/]+$')
+ type: object
+ swift:
+ description: |-
+ swift configures Azure Swift pod networking for private API server access.
+ Swift networking requires the management cluster to be pre-configured with
+ Azure Swift support; this is not provisioned by HyperShift automatically.
+ This field is required when type is "Swift" and must not be set otherwise.
+ properties:
+ podNetworkInstance:
+ description: |-
+ podNetworkInstance is the name of a PodNetworkInstance custom resource in the
+ hosted control plane namespace. This resource configures Azure Swift pod networking
+ for private connectivity to the hosted cluster's router pods.
+ The value must be a valid Kubernetes object name (RFC 1123 DNS label): lowercase
+ alphanumeric characters or hyphens, must start and end with an alphanumeric character.
+ This field is immutable once set.
+ maxLength: 63
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: 'podNetworkInstance must be a valid DNS
+ label: lowercase alphanumeric characters or hyphens,
+ must start and end with an alphanumeric character'
+ rule: self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')
+ required:
+ - podNetworkInstance
+ type: object
+ x-kubernetes-validations:
+ - message: podNetworkInstance is immutable
+ rule: self.podNetworkInstance == oldSelf.podNetworkInstance
+ type:
+ description: |-
+ type specifies the private connectivity mechanism used for the hosted cluster's API server.
+ "PrivateLink" selects Azure Private Link Service for private API server access.
+ "Swift" selects Azure Swift pod networking for private API server access, used by ARO HCP.
+ This field is immutable once set.
+ enum:
+ - PrivateLink
+ - Swift
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-validations:
+ - message: type is immutable
+ rule: '!has(oldSelf.type) || self.type == oldSelf.type'
+ - message: privateLink is required when type is PrivateLink,
+ and forbidden otherwise
+ rule: 'self.type == ''PrivateLink'' ? has(self.privateLink)
+ : !has(self.privateLink)'
+ - message: swift is required when type is Swift, and forbidden
+ otherwise
+ rule: 'self.type == ''Swift'' ? has(self.swift) : !has(self.swift)'
+ 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
+ topology:
+ description: |-
+ topology specifies the network topology of the API server endpoint for the hosted cluster.
+ - Public: The API server is accessible only via a public endpoint.
+ - PublicAndPrivate: The API server is accessible via both public and private endpoints.
+ - Private: The API server is accessible only via a private endpoint.
+ 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 Public.
+ This field must be set explicitly for self-hosted environments (WorkloadIdentities).
+ Transitions between PublicAndPrivate and Private are allowed after creation.
+ Transitions from Public to non-Public (or vice versa) are not allowed.
+ When set to Private or PublicAndPrivate, the private field must be provided.
+ enum:
+ - Public
+ - PublicAndPrivate
+ - Private
+ 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
+ x-kubernetes-validations:
+ - message: private cannot be added or removed after cluster creation
+ rule: has(self.private) == has(oldSelf.private)
+ - message: topology cannot be removed once set
+ rule: '!has(oldSelf.topology) || has(self.topology)'
+ - message: transitions between Public and non-Public topology
+ are not supported
+ rule: '!has(self.topology) || !has(oldSelf.topology) || (self.topology
+ == ''Public'') == (oldSelf.topology == ''Public'')'
+ - message: private is required when topology is Private or PublicAndPrivate,
+ and forbidden otherwise
+ rule: 'has(self.topology) && (self.topology == ''Private'' ||
+ self.topology == ''PublicAndPrivate'') ? has(self.private)
+ : !has(self.private)'
+ - message: workloadIdentities.controlPlaneOperator is required
+ when Private Link is configured with WorkloadIdentities authentication
+ rule: '!has(self.private) || self.private.type != ''PrivateLink''
+ || self.azureAuthenticationConfig.azureAuthenticationConfigType
+ != ''WorkloadIdentities'' || has(self.azureAuthenticationConfig.workloadIdentities.controlPlaneOperator)'
+ 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 is included in NodePool ignition/bootstrap payloads and applied to the container runtime when nodes provision.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster (for both replace and inplace upgrade types).
+ Updating the referenced Secret's data in place (without changing this reference) does not trigger that rollout.
+ In AWS and Azure NodePools using the Replace upgrade strategy, the Secret's data in place changes
+ will still propagate the updated credentials down to the guest cluster and kubelet config.
+ 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.
+
+ Deprecated: This field will be ignored when status.secretEncryption.activeKey is set.
+ The system automatically manages the previous key via the status field.
+ 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
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: arn must start with 'arn:'
+ rule: self.startsWith('arn:')
+ 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.
+
+ Deprecated: This field will be ignored when status.secretEncryption.activeKey is set.
+ The system automatically manages the previous key via the status field.
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the
+ encryption key
+ maxLength: 2048
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: arn must start with 'arn:'
+ rule: self.startsWith('arn:')
+ 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 key used for
+ encrypt/decrypt.
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the Key Vault or Managed HSM. 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 resource, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the
+ key to use
+ maxLength: 255
+ minLength: 1
+ 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.
+
+ Deprecated: This field will be ignored when status.secretEncryption.activeKey is set.
+ The system automatically manages the previous key via the status field.
+ properties:
+ keyName:
+ description: keyName is the name of the key used for
+ encrypt/decrypt.
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the Key Vault or Managed HSM. 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 resource, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the
+ key to use
+ maxLength: 255
+ minLength: 1
+ 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
+ keyVaultType:
+ description: |-
+ keyVaultType specifies whether activeKey and backupKey are hosted by Azure Key Vault or Azure Managed HSM.
+ Valid values are "KeyVault" and "ManagedHSM".
+ When set to "KeyVault", both keys are hosted by Azure Key Vault.
+ When set to "ManagedHSM", both keys are hosted by Azure Managed HSM.
+ The type is immutable; key rotation must remain within the same service.
+ When omitted, the keys are treated as Key Vault keys.
+ enum:
+ - KeyVault
+ - ManagedHSM
+ type: string
+ kms:
+ description: |-
+ kms is a pre-existing managed identity used to authenticate with Azure KMS.
+ This is used for managed Azure (ARO HCP) clusters.
+ kms and workloadIdentity are mutually exclusive.
+ 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
+ workloadIdentity:
+ description: |-
+ workloadIdentity contains the workload identity used to authenticate
+ with Azure Key Vault for KMS encryption via a token-minter sidecar.
+ This identity must have "Key Vault Crypto User" role on the Key Vault.
+ kms and workloadIdentity are mutually exclusive.
+ 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:
+ - activeKey
+ 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'
+ - message: keyVaultType is immutable
+ rule: '(has(self.keyVaultType) ? self.keyVaultType : ''KeyVault'')
+ == (has(oldSelf.keyVaultType) ? oldSelf.keyVaultType :
+ ''KeyVault'')'
+ - message: kms and workloadIdentity are mutually exclusive
+ rule: '!(has(self.kms) && has(self.workloadIdentity))'
+ - message: one of kms or workloadIdentity must be set
+ rule: has(self.kms) || has(self.workloadIdentity)
+ - message: the KMS authentication mode is immutable once set
+ rule: has(self.kms) == has(oldSelf.kms)
+ 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
+ minLength: 1
+ type: string
+ crkID:
+ description: crkID is the customer rook key id
+ maxLength: 255
+ minLength: 1
+ type: string
+ instanceID:
+ description: instanceID is the id for the key protect
+ instance
+ maxLength: 255
+ minLength: 1
+ 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
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: url must start with 'https://'
+ rule: self.startsWith('https://')
+ 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, Equal, Lt, and Gt. Defaults to Equal.
+ Exists is equivalent to wildcard for value, so that a pod can
+ tolerate all taints of a particular category.
+ Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
+ 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 managed platform (ARO HCP) requires OAuthServer to use
+ Route
+ rule: self.platform.type != "Azure" || self.platform.?azure.azureAuthenticationConfig.azureAuthenticationConfigType.orValue("")
+ == "WorkloadIdentities" || self.services.exists(s, s.service == "OAuthServer"
+ && s.servicePublishingStrategy.type == "Route")
+ - message: Self-managed Azure requires OAuthServer to use Route or LoadBalancer
+ rule: self.platform.type != "Azure" || self.platform.?azure.azureAuthenticationConfig.azureAuthenticationConfigType.orValue("")
+ != "WorkloadIdentities" || self.services.exists(s, s.service == "OAuthServer"
+ && (s.servicePublishingStrategy.type == "Route" || s.servicePublishingStrategy.type
+ == "LoadBalancer"))
+ - 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) && has(self.configuration.apiServer.servingCerts)
+ && has(self.configuration.apiServer.servingCerts.namedCertificates)
+ && self.configuration.apiServer.servingCerts.namedCertificates.exists(cert,
+ has(cert.names) && 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)
+ - message: secretEncryption cannot be removed once configured
+ rule: '!has(oldSelf.secretEncryption) || has(self.secretEncryption)'
+ status:
+ description: status is the latest observed status of the HostedCluster.
+ properties:
+ autoNode:
+ description: autoNode contains the observed state of the autoNode
+ (Karpenter) provisioner.
+ minProperties: 1
+ properties:
+ nodeClaimCount:
+ description: |-
+ nodeClaimCount is the total number of NodeClaims managed by Karpenter.
+ This represents what Karpenter intends to provision, whether or not the node object exists yet.
+ format: int32
+ minimum: 0
+ type: integer
+ nodeCount:
+ description: |-
+ nodeCount is the number of nodes fully provisioned by Karpenter.
+ These are node objects that exist in the cluster and carry the karpenter.sh/nodepool label.
+ format: int32
+ minimum: 0
+ type: integer
+ vcpus:
+ description: |-
+ vcpus is the total number of virtual CPUs across all Karpenter-managed nodes
+ that have registered and reported capacity. This is the sum of CPU capacity
+ from each NodeClaim whose corresponding node exists (status.nodeName is set).
+ This value is 0 when no Karpenter nodes are provisioned.
+ Used by the metrics collector for billing aggregation.
+ format: int32
+ maximum: 1000000
+ minimum: 0
+ type: integer
+ type: object
+ 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
+ controlPlaneVersion:
+ description: |-
+ controlPlaneVersion tracks the rollout status of the control plane
+ components running on the management cluster, independently from
+ the data-plane version reported in the version field.
+ properties:
+ desired:
+ description: |-
+ desired is the release version that the control plane is reconciling towards.
+ It is derived from the HostedControlPlane release image fields.
+ 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 versions applied to management-side control plane components. The newest entry is
+ first in the list. Entries have state Completed when all ControlPlaneComponent resources report the target
+ version with RolloutComplete=True. Entries have state Partial when the rollout is in progress or has failed.
+ items:
+ description: |-
+ ControlPlaneUpdateHistory is a record of a single version transition for management-side
+ control plane components. Each entry captures the target version, its release image, when
+ the rollout started, and when (or whether) it completed.
+ properties:
+ completionTime:
+ description: |-
+ completionTime is the time at which the update completed. It is set
+ when all management-side components have reached the target version.
+ It is not set while the update is in progress.
+ format: date-time
+ type: string
+ image:
+ description: image is the release image pullspec used for
+ this update.
+ maxLength: 447
+ minLength: 1
+ 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.
+ enum:
+ - Completed
+ - Partial
+ type: string
+ version:
+ description: |-
+ version is a semantic version string identifying the update version
+ (e.g. "4.20.1").
+ maxLength: 64
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: version must start with semantic version prefix
+ x.y.z
+ rule: self.matches('^\\d+\\.\\d+\\.\\d+.*')
+ required:
+ - image
+ - startedTime
+ - state
+ - version
+ type: object
+ maxItems: 100
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: atomic
+ observedGeneration:
+ description: observedGeneration reports which generation of the
+ HostedControlPlane spec is being synced.
+ format: int64
+ maximum: 9007199254740992
+ minimum: 1
+ type: integer
+ required:
+ - desired
+ 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
+ secretEncryption:
+ description: secretEncryption tracks the state of secret encryption
+ key rotation and re-encryption.
+ minProperties: 1
+ properties:
+ activeKey:
+ description: |-
+ activeKey is the encryption key specification that all etcd data is confirmed encrypted with.
+ Updated after successful re-encryption.
+ properties:
+ aescbc:
+ description: aescbc holds a reference to the AESCBC key secret.
+ properties:
+ dataHash:
+ description: |-
+ dataHash is the hex-encoded SHA-256 hash of the secret's "key" data field
+ at the time re-encryption completed.
+ maxLength: 64
+ minLength: 1
+ type: string
+ secret:
+ description: secret is a reference to the secret containing
+ the AESCBC key.
+ 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
+ required:
+ - dataHash
+ - secret
+ type: object
+ aws:
+ description: aws holds the AWS KMS key identity fields.
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the encryption
+ key
+ maxLength: 2048
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: arn must start with 'arn:'
+ rule: self.startsWith('arn:')
+ required:
+ - arn
+ type: object
+ azure:
+ description: azure holds the Azure KMS key identity fields.
+ properties:
+ keyName:
+ description: keyName is the name of the key used for encrypt/decrypt.
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the Key Vault or Managed HSM. 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 resource, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the key
+ to use
+ maxLength: 255
+ minLength: 1
+ type: string
+ required:
+ - keyName
+ - keyVaultName
+ - keyVersion
+ type: object
+ ibmCloud:
+ description: ibmCloud holds the IBM Cloud KMS key identity
+ fields.
+ properties:
+ correlationID:
+ description: correlationID is an identifier used to track
+ all api call usage from hypershift
+ maxLength: 255
+ minLength: 1
+ type: string
+ crkID:
+ description: crkID is the customer rook key id
+ maxLength: 255
+ minLength: 1
+ type: string
+ instanceID:
+ description: instanceID is the id for the key protect
+ instance
+ maxLength: 255
+ minLength: 1
+ 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
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: url must start with 'https://'
+ rule: self.startsWith('https://')
+ required:
+ - correlationID
+ - crkID
+ - instanceID
+ - keyVersion
+ - url
+ type: object
+ provider:
+ description: provider identifies the encryption provider.
+ enum:
+ - Azure
+ - AWS
+ - IBMCloud
+ - AESCBC
+ type: string
+ required:
+ - provider
+ type: object
+ x-kubernetes-validations:
+ - message: azure is required when provider is Azure, and forbidden
+ otherwise
+ rule: 'self.provider == ''Azure'' ? has(self.azure) : !has(self.azure)'
+ - message: aws is required when provider is AWS, and forbidden
+ otherwise
+ rule: 'self.provider == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: ibmCloud is required when provider is IBMCloud, and
+ forbidden otherwise
+ rule: 'self.provider == ''IBMCloud'' ? has(self.ibmCloud) :
+ !has(self.ibmCloud)'
+ - message: aescbc is required when provider is AESCBC, and forbidden
+ otherwise
+ rule: 'self.provider == ''AESCBC'' ? has(self.aescbc) : !has(self.aescbc)'
+ history:
+ description: |-
+ history contains a list of key rotations applied to this cluster. The newest
+ entry is first in the list. Entries have state Completed when re-encryption
+ has finished. The current rotation phase is always history[0].state when
+ history[0] is not Completed or Interrupted.
+ items:
+ description: EncryptionMigrationHistory records a key rotation,
+ including in-progress rotations.
+ properties:
+ completionTime:
+ description: completionTime is when the rotation finished.
+ Not set while the rotation is in progress.
+ format: date-time
+ type: string
+ from:
+ description: from is the key that data was migrated from
+ (the previous active key).
+ properties:
+ fingerprint:
+ description: fingerprint is the hex-encoded SHA-256
+ hash of the key's identity fields.
+ maxLength: 64
+ minLength: 1
+ type: string
+ provider:
+ description: provider identifies the encryption provider.
+ enum:
+ - Azure
+ - AWS
+ - IBMCloud
+ - AESCBC
+ type: string
+ required:
+ - fingerprint
+ - provider
+ type: object
+ startedTime:
+ description: startedTime is when the rotation was initiated.
+ format: date-time
+ type: string
+ state:
+ description: state tracks the current phase of this rotation.
+ enum:
+ - ReadOnlyDeploy
+ - WritePromote
+ - Migrating
+ - Completed
+ - Interrupted
+ type: string
+ to:
+ description: to is the key that data was migrated to (the
+ target key).
+ properties:
+ fingerprint:
+ description: fingerprint is the hex-encoded SHA-256
+ hash of the key's identity fields.
+ maxLength: 64
+ minLength: 1
+ type: string
+ provider:
+ description: provider identifies the encryption provider.
+ enum:
+ - Azure
+ - AWS
+ - IBMCloud
+ - AESCBC
+ type: string
+ required:
+ - fingerprint
+ - provider
+ type: object
+ required:
+ - from
+ - startedTime
+ - state
+ - to
+ type: object
+ maxItems: 5
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: atomic
+ targetKey:
+ description: |-
+ targetKey is the key being rolled out during an active rotation. Snapshot from
+ spec.secretEncryption's active key when the rotation starts. The CPO uses this
+ (not the current spec) during the rotation, so mid-rotation spec changes are
+ safely queued until the current rotation completes. Cleared when rotation completes.
+ properties:
+ aescbc:
+ description: aescbc holds a reference to the AESCBC key secret.
+ properties:
+ dataHash:
+ description: |-
+ dataHash is the hex-encoded SHA-256 hash of the secret's "key" data field
+ at the time re-encryption completed.
+ maxLength: 64
+ minLength: 1
+ type: string
+ secret:
+ description: secret is a reference to the secret containing
+ the AESCBC key.
+ 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
+ required:
+ - dataHash
+ - secret
+ type: object
+ aws:
+ description: aws holds the AWS KMS key identity fields.
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the encryption
+ key
+ maxLength: 2048
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: arn must start with 'arn:'
+ rule: self.startsWith('arn:')
+ required:
+ - arn
+ type: object
+ azure:
+ description: azure holds the Azure KMS key identity fields.
+ properties:
+ keyName:
+ description: keyName is the name of the key used for encrypt/decrypt.
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the Key Vault or Managed HSM. 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 resource, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the key
+ to use
+ maxLength: 255
+ minLength: 1
+ type: string
+ required:
+ - keyName
+ - keyVaultName
+ - keyVersion
+ type: object
+ ibmCloud:
+ description: ibmCloud holds the IBM Cloud KMS key identity
+ fields.
+ properties:
+ correlationID:
+ description: correlationID is an identifier used to track
+ all api call usage from hypershift
+ maxLength: 255
+ minLength: 1
+ type: string
+ crkID:
+ description: crkID is the customer rook key id
+ maxLength: 255
+ minLength: 1
+ type: string
+ instanceID:
+ description: instanceID is the id for the key protect
+ instance
+ maxLength: 255
+ minLength: 1
+ 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
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: url must start with 'https://'
+ rule: self.startsWith('https://')
+ required:
+ - correlationID
+ - crkID
+ - instanceID
+ - keyVersion
+ - url
+ type: object
+ provider:
+ description: provider identifies the encryption provider.
+ enum:
+ - Azure
+ - AWS
+ - IBMCloud
+ - AESCBC
+ type: string
+ required:
+ - provider
+ type: object
+ x-kubernetes-validations:
+ - message: azure is required when provider is Azure, and forbidden
+ otherwise
+ rule: 'self.provider == ''Azure'' ? has(self.azure) : !has(self.azure)'
+ - message: aws is required when provider is AWS, and forbidden
+ otherwise
+ rule: 'self.provider == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: ibmCloud is required when provider is IBMCloud, and
+ forbidden otherwise
+ rule: 'self.provider == ''IBMCloud'' ? has(self.ibmCloud) :
+ !has(self.ibmCloud)'
+ - message: aescbc is required when provider is AESCBC, and forbidden
+ otherwise
+ rule: 'self.provider == ''AESCBC'' ? has(self.aescbc) : !has(self.aescbc)'
+ 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
+ x-kubernetes-validations:
+ - message: infraID cannot be removed once set
+ rule: '!has(oldSelf.spec) || !has(oldSelf.spec.infraID) || (has(self.spec)
+ && has(self.spec.infraID))'
+ - message: clusterID cannot be removed once set
+ rule: '!has(oldSelf.spec) || !has(oldSelf.spec.clusterID) || (has(self.spec)
+ && has(self.spec.clusterID))'
+ served: true
+ storage: true
+ subresources:
+ status: {}
diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml
index e6188f8fef2d..a6dbf05b67e4 100644
--- a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml
+++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml
@@ -3399,7 +3399,6 @@ spec:
Valid values are: "Normal", "Debug", "Trace", "TraceAll".
Defaults to "Normal".
enum:
- - ""
- Normal
- Debug
- Trace
diff --git a/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPUserFacingOperatorLogs.yaml b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPUserFacingOperatorLogs.yaml
new file mode 100644
index 000000000000..b5404ec1e724
--- /dev/null
+++ b/api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedcontrolplanes.hypershift.openshift.io/HCPUserFacingOperatorLogs.yaml
@@ -0,0 +1,8210 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ feature-gate.release.openshift.io/HCPUserFacingOperatorLogs: "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
+ autoNode:
+ description: |-
+ autoNode specifies the configuration for automatic node provisioning
+ and lifecycle management. When set, nodes are automatically provisioned
+ using the specified provisioner (e.g. Karpenter) instead of requiring
+ manual NodePool management.
+ properties:
+ provisionerConfig:
+ description: provisionerConfig specifies the provisioner used
+ for automatic node management.
+ properties:
+ karpenter:
+ description: karpenter specifies the configuration for the
+ Karpenter provisioner.
+ properties:
+ aws:
+ description: aws specifies the AWS-specific configuration
+ for Karpenter.
+ properties:
+ roleARN:
+ description: "roleARN specifies the ARN of the IAM
+ role that Karpenter assumes to provision\nand manage
+ EC2 instances in the hosted cluster's AWS account.\n\nThe
+ referenced role must have a trust relationship that
+ allows it to be assumed\nby the karpenter service
+ account in the hosted cluster via OIDC.\nExample:\n{\n\t\"Version\":
+ \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Principal\": {\n\t\t\t\t\"Federated\":
+ \"\"\n\t\t\t},\n\t\t\t\"Action\":
+ \"sts:AssumeRoleWithWebIdentity\",\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringEquals\": {\n\t\t\t\t\t\":sub\":
+ \"system:serviceaccount:kube-system:karpenter\"\n\t\t\t\t}\n\t\t\t}\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\"Sid\": \"AllowScopedEC2InstanceAccessActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": [\n\t\t\t\t\"arn:*:ec2:*::image/*\",\n\t\t\t\t\"arn:*:ec2:*::snapshot/*\",\n\t\t\t\t\"arn:*:ec2:*:*:security-group/*\",\n\t\t\t\t\"arn:*:ec2:*:*:subnet/*\"\n\t\t\t],\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:RunInstances\",\n\t\t\t\t\"ec2:CreateFleet\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedEC2LaunchTemplateAccessActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:ec2:*:*:launch-template/*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:RunInstances\",\n\t\t\t\t\"ec2:CreateFleet\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedEC2InstanceActionsWithTags\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": [\n\t\t\t\t\"arn:*:ec2:*:*:fleet/*\",\n\t\t\t\t\"arn:*:ec2:*:*:instance/*\",\n\t\t\t\t\"arn:*:ec2:*:*:volume/*\",\n\t\t\t\t\"arn:*:ec2:*:*:network-interface/*\",\n\t\t\t\t\"arn:*:ec2:*:*:launch-template/*\",\n\t\t\t\t\"arn:*:ec2:*:*:spot-instances-request/*\"\n\t\t\t],\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:RunInstances\",\n\t\t\t\t\"ec2:CreateFleet\",\n\t\t\t\t\"ec2:CreateLaunchTemplate\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:RequestTag/karpenter.sh/nodepool\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedResourceCreationTagging\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": [\n\t\t\t\t\"arn:*:ec2:*:*:fleet/*\",\n\t\t\t\t\"arn:*:ec2:*:*:instance/*\",\n\t\t\t\t\"arn:*:ec2:*:*:volume/*\",\n\t\t\t\t\"arn:*:ec2:*:*:network-interface/*\",\n\t\t\t\t\"arn:*:ec2:*:*:launch-template/*\",\n\t\t\t\t\"arn:*:ec2:*:*:spot-instances-request/*\"\n\t\t\t],\n\t\t\t\"Action\":
+ \"ec2:CreateTags\",\n\t\t\t\"Condition\": {\n\t\t\t\t\"StringEquals\":
+ {\n\t\t\t\t\t\"ec2:CreateAction\": [\n\t\t\t\t\t\t\"RunInstances\",\n\t\t\t\t\t\t\"CreateFleet\",\n\t\t\t\t\t\t\"CreateLaunchTemplate\"\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t\"StringLike\":
+ {\n\t\t\t\t\t\"aws:RequestTag/karpenter.sh/nodepool\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedResourceTagging\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:ec2:*:*:instance/*\",\n\t\t\t\"Action\":
+ \"ec2:CreateTags\",\n\t\t\t\"Condition\": {\n\t\t\t\t\"StringLike\":
+ {\n\t\t\t\t\t\"aws:ResourceTag/karpenter.sh/nodepool\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedDeletion\",\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Resource\":
+ [\n\t\t\t\t\"arn:*:ec2:*:*:instance/*\",\n\t\t\t\t\"arn:*:ec2:*:*:launch-template/*\"\n\t\t\t],\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:TerminateInstances\",\n\t\t\t\t\"ec2:DeleteLaunchTemplate\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:ResourceTag/karpenter.sh/nodepool\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowRegionalReadActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"ec2:DescribeImages\",\n\t\t\t\t\"ec2:DescribeInstances\",\n\t\t\t\t\"ec2:DescribeInstanceTypeOfferings\",\n\t\t\t\t\"ec2:DescribeInstanceTypes\",\n\t\t\t\t\"ec2:DescribeLaunchTemplates\",\n\t\t\t\t\"ec2:DescribeSecurityGroups\",\n\t\t\t\t\"ec2:DescribeSpotPriceHistory\",\n\t\t\t\t\"ec2:DescribeSubnets\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowSSMReadActions\",\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Resource\":
+ \"arn:*:ssm:*::parameter/aws/service/*\",\n\t\t\t\"Action\":
+ \"ssm:GetParameter\"\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowPricingReadActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"*\",\n\t\t\t\"Action\":
+ \"pricing:GetProducts\"\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowInterruptionQueueActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"sqs:DeleteMessage\",\n\t\t\t\t\"sqs:GetQueueUrl\",\n\t\t\t\t\"sqs:ReceiveMessage\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowPassingInstanceRole\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:role/*\",\n\t\t\t\"Action\":
+ \"iam:PassRole\",\n\t\t\t\"Condition\": {\n\t\t\t\t\"StringEquals\":
+ {\n\t\t\t\t\t\"iam:PassedToService\": [\n\t\t\t\t\t\t\"ec2.amazonaws.com\",\n\t\t\t\t\t\t\"ec2.amazonaws.com.cn\"\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedInstanceProfileCreationActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:instance-profile/*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"iam:CreateInstanceProfile\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:RequestTag/karpenter.k8s.aws/ec2nodeclass\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedInstanceProfileTagActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:instance-profile/*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"iam:TagInstanceProfile\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:ResourceTag/karpenter.k8s.aws/ec2nodeclass\":
+ \"*\",\n\t\t\t\t\t\"aws:RequestTag/karpenter.k8s.aws/ec2nodeclass\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowScopedInstanceProfileActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:instance-profile/*\",\n\t\t\t\"Action\":
+ [\n\t\t\t\t\"iam:AddRoleToInstanceProfile\",\n\t\t\t\t\"iam:RemoveRoleFromInstanceProfile\",\n\t\t\t\t\"iam:DeleteInstanceProfile\"\n\t\t\t],\n\t\t\t\"Condition\":
+ {\n\t\t\t\t\"StringLike\": {\n\t\t\t\t\t\"aws:ResourceTag/karpenter.k8s.aws/ec2nodeclass\":
+ \"*\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowInstanceProfileReadActions\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"arn:*:iam::*:instance-profile/*\",\n\t\t\t\"Action\":
+ \"iam:GetInstanceProfile\"\n\t\t},\n\t\t{\n\t\t\t\"Sid\":
+ \"AllowUnscopedInstanceProfileListAction\",\n\t\t\t\"Effect\":
+ \"Allow\",\n\t\t\t\"Resource\": \"*\",\n\t\t\t\"Action\":
+ \"iam:ListInstanceProfiles\"\n\t\t}\n\t]\n}"
+ maxLength: 2048
+ type: string
+ x-kubernetes-validations:
+ - message: roleARN must be a valid AWS IAM role ARN
+ (e.g. arn:aws:iam::123456789012:role/MyRole)
+ rule: self.matches('^arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role/.+$')
+ required:
+ - roleARN
+ type: object
+ platform:
+ description: platform specifies the infrastructure platform
+ that Karpenter should provision nodes on.
+ enum:
+ - AWS
+ maxLength: 100
+ type: string
+ required:
+ - platform
+ type: object
+ x-kubernetes-validations:
+ - message: aws is required when platform is AWS, and forbidden
+ otherwise
+ rule: 'self.platform == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ name:
+ description: name specifies the name of the provisioner to
+ use for automatic node management.
+ enum:
+ - Karpenter
+ type: string
+ required:
+ - name
+ type: object
+ x-kubernetes-validations:
+ - message: karpenter is required when name is Karpenter, and forbidden
+ otherwise
+ rule: 'self.name == ''Karpenter'' ? has(self.karpenter) : !has(self.karpenter)'
+ required:
+ - provisionerConfig
+ type: object
+ 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.
+
+ The supported groups list for this profile is empty by default.
+
+ 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 that their operands
+ do not support. For example, to use only ECDHE-RSA-AES128-GCM-SHA256 (yaml):
+
+ ciphers:
+ - ECDHE-RSA-AES128-GCM-SHA256
+
+ TLS 1.3 cipher suites (e.g. TLS_AES_128_GCM_SHA256) are not configurable
+ and are always enabled when TLS 1.3 is negotiated.
+ 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 supported groups list includes by default the following groups
+ in suggested preference order (ordering may not be honored by all implementations):
+ X25519MLKEM768, X25519, secp256r1, secp384r1.
+
+ 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
+ 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.
+ The supported groups list includes by default the following groups
+ in suggested preference order (ordering may not be honored by all implementations):
+ X25519MLKEM768, X25519, secp256r1, secp384r1.
+ 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 supported groups list includes by default the following groups
+ in suggested preference order (ordering may not be honored by all implementations):
+ X25519MLKEM768, X25519, secp256r1, secp384r1.
+
+ 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
+ - 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
+ - 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 cipher and groups lists in these profiles are based on version 5.8 of the
+ Mozilla Server Side TLS configuration guidelines.
+ See: https://ssl-config.mozilla.org/guidelines/5.8.json
+
+ The groups are listed in suggested preference order, with the most preferred group first.
+ Note that not all platform components honor the ordering: Go-based components use Go's
+ internal preference order and treat this list as a filter of allowed groups rather than
+ an ordered preference.
+ Note that X25519MLKEM768 is a post-quantum hybrid group that is not
+ FIPS-approved and should be ignored by components running in FIPS mode.
+
+ 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).
+ Note: the serviceAccountIssuer field within this configuration is ignored; the
+ HostedCluster's spec.issuerURL is always used as the service account issuer instead.
+ 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.
+ Each entry must be a valid registry scope in the format hostname[:port][/path],
+ optionally prefixed with "*." for wildcard subdomains (e.g., "*.example.com").
+ The hostname must consist of valid DNS labels separated by dots, where each label
+ contains only alphanumeric characters and hyphens and does not start or end with a hyphen.
+ Entries must not be empty, must not include tags (e.g., ":latest") or digests (e.g., "@sha256:..."),
+ and must be at most 256 characters in length. The list may contain at most 1024 entries.
+
+ Only one of BlockedRegistries or AllowedRegistries may be set.
+ items:
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: each registry must be a valid hostname[:port][/path]
+ or wildcard *.hostname format without tags or digests
+ rule: self.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][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?)(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?$')
+ maxItems: 1024
+ type: array
+ x-kubernetes-list-type: atomic
+ blockedRegistries:
+ description: |-
+ blockedRegistries cannot be used for image pull and push actions. All other registries are permitted.
+ Each entry must be a valid registry scope in the format hostname[:port][/path],
+ optionally prefixed with "*." for wildcard subdomains (e.g., "*.example.com").
+ The hostname must consist of valid DNS labels separated by dots, where each label
+ contains only alphanumeric characters and hyphens and does not start or end with a hyphen.
+ Entries must not be empty, must not include tags (e.g., ":latest") or digests (e.g., "@sha256:..."),
+ and must be at most 256 characters in length. The list may contain at most 1024 entries.
+
+ Only one of BlockedRegistries or AllowedRegistries may be set.
+ items:
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: each registry must be a valid hostname[:port][/path]
+ or wildcard *.hostname format without tags or digests
+ rule: self.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][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?)(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?$')
+ maxItems: 1024
+ 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.
+ Each entry must be a valid registry scope in the format hostname[:port][/path],
+ optionally prefixed with "*." for wildcard subdomains (e.g., "*.example.com").
+ The hostname must consist of valid DNS labels separated by dots, where each label
+ contains only alphanumeric characters and hyphens and does not start or end with a hyphen.
+ Entries must not be empty, must not include tags (e.g., ":latest") or digests (e.g., "@sha256:..."),
+ and must be at most 256 characters in length. The list may contain at most 1024 entries.
+ items:
+ maxLength: 256
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: each registry must be a valid hostname[:port][/path]
+ or wildcard *.hostname format without tags or digests
+ rule: self.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][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?)(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?$')
+ maxItems: 1024
+ 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.
+ A maximum of 250 component routes may be configured.
+ 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
+ maxItems: 250
+ 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
+ x-kubernetes-validations:
+ - message: domain is immutable once set
+ rule: self == oldSelf
+ 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
+ networkDiagnostics:
+ description: |-
+ networkDiagnostics defines network diagnostics configuration.
+
+ Takes precedence over spec.disableNetworkDiagnostics in network.operator.openshift.io.
+ If networkDiagnostics is not specified or is empty,
+ and the spec.disableNetworkDiagnostics flag in network.operator.openshift.io is set to true,
+ the network diagnostics feature will be disabled.
+ properties:
+ mode:
+ description: |-
+ mode controls the network diagnostics mode
+
+ 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.
+ The current default is All.
+ enum:
+ - ""
+ - All
+ - Disabled
+ type: string
+ sourcePlacement:
+ description: |-
+ sourcePlacement controls the scheduling of network diagnostics source deployment
+
+ See NetworkDiagnosticsSourcePlacement for more details about default values.
+ properties:
+ nodeSelector:
+ additionalProperties:
+ type: string
+ description: |-
+ nodeSelector is the node selector applied to network diagnostics components
+
+ 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.
+ The current default is `kubernetes.io/os: linux`.
+ type: object
+ tolerations:
+ description: |-
+ tolerations is a list of tolerations applied to network diagnostics components
+
+ 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.
+ The current default is an empty list.
+ 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, Equal, Lt, and Gt. Defaults to Equal.
+ Exists is equivalent to wildcard for value, so that a pod can
+ tolerate all taints of a particular category.
+ Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
+ type: string
+ tolerationSeconds:
+ description: |-
+ TolerationSeconds represents the period of time the toleration (which must be
+ of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+ it is not set, which means tolerate the taint forever (do not evict). Zero and
+ negative values will be treated as 0 (evict immediately) by the system.
+ format: int64
+ type: integer
+ value:
+ description: |-
+ Value is the taint value the toleration matches to.
+ If the operator is Exists, the value should be empty, otherwise just a regular string.
+ type: string
+ type: object
+ type: array
+ x-kubernetes-list-type: atomic
+ type: object
+ targetPlacement:
+ description: |-
+ targetPlacement controls the scheduling of network diagnostics target daemonset
+
+ See NetworkDiagnosticsTargetPlacement for more details about default values.
+ properties:
+ nodeSelector:
+ additionalProperties:
+ type: string
+ description: |-
+ nodeSelector is the node selector applied to network diagnostics components
+
+ 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.
+ The current default is `kubernetes.io/os: linux`.
+ type: object
+ tolerations:
+ description: |-
+ tolerations is a list of tolerations applied to network diagnostics components
+
+ 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.
+ The current default is `- operator: "Exists"` which means that all taints are tolerated.
+ 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, Equal, Lt, and Gt. Defaults to Equal.
+ Exists is equivalent to wildcard for value, so that a pod can
+ tolerate all taints of a particular category.
+ Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
+ type: string
+ tolerationSeconds:
+ description: |-
+ TolerationSeconds represents the period of time the toleration (which must be
+ of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+ it is not set, which means tolerate the taint forever (do not evict). Zero and
+ negative values will be treated as 0 (evict immediately) by the system.
+ format: int64
+ type: integer
+ value:
+ description: |-
+ Value is the taint value the toleration matches to.
+ If the operator is Exists, the value should be empty, otherwise just a regular string.
+ type: string
+ type: object
+ type: array
+ 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
+ x-kubernetes-validations:
+ - message: cannot set networkDiagnostics.sourcePlacement and networkDiagnostics.targetPlacement
+ when networkDiagnostics.mode is Disabled
+ rule: '!has(self.networkDiagnostics) || !has(self.networkDiagnostics.mode)
+ || self.networkDiagnostics.mode!=''Disabled'' || !has(self.networkDiagnostics.sourcePlacement)
+ && !has(self.networkDiagnostics.targetPlacement)'
+ 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.
+
+ On Azure, this is a full Azure resource ID for a Private DNS Zone in the format:
+ /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Network/privateDnsZones/{zoneName}
+ The maximum length of 265 is derived from Azure resource naming limits
+ (see https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules):
+ /subscriptions/ (15) + UUID (36) + /resourceGroups/ (16) + resource group name (90)
+ maxLength: 265
+ 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.
+
+ On Azure, this is a full Azure resource ID for a DNS Zone in the format:
+ /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Network/dnsZones/{zoneName}
+ The maximum length of 258 is derived from Azure resource naming limits
+ (see https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules):
+ /subscriptions/ (15) + UUID (36) + /resourceGroups/ (16) + resource group name (90)
+ maxLength: 258
+ 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:
+ 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
+ - message: restoreSnapshotURL is immutable
+ rule: self == oldSelf
+ - message: restoreSnapshotURL must be a valid URL with
+ scheme https or s3
+ rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
+ 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
+ x-kubernetes-validations:
+ - message: restoreSnapshotURL cannot be added or removed after
+ creation
+ rule: has(self.restoreSnapshotURL) == has(oldSelf.restoreSnapshotURL)
+ 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
+ monitoring:
+ description: |-
+ monitoring configures monitoring for the hosted cluster, including
+ forwarding of control plane metrics to the hosted cluster's monitoring stack.
+ When omitted, metrics forwarding is not configured and will be inactive.
+ minProperties: 1
+ properties:
+ metricsForwarding:
+ description: |-
+ metricsForwarding configures forwarding of control plane metrics into
+ the hosted cluster's monitoring stack.
+ When omitted, metrics forwarding behavior is determined by the
+ hypershift.openshift.io/enable-metrics-forwarding annotation for backward compatibility.
+ If neither is set, metrics forwarding is disabled.
+ properties:
+ metricsSet:
+ description: |-
+ metricsSet specifies which set of metrics to forward to the hosted
+ cluster's monitoring stack. This controls only the metrics-proxy forwarding
+ path and does not affect management-cluster-side ServiceMonitor/PodMonitor
+ relabel configurations.
+ When not specified, the value from monitoring.metricsSet is used, which itself
+ falls back to the global METRICS_SET environment variable (default "Telemetry").
+
+ "Telemetry" forwards only the minimal set of metrics required for OpenShift Telemetry.
+ "SRE" forwards the Telemetry set plus additional metrics defined in the sre-metric-set
+ ConfigMap, needed for SRE dashboards and alerts.
+ "All" forwards all metrics from control plane components without filtering,
+ which produces significantly higher metrics volume.
+ enum:
+ - Telemetry
+ - SRE
+ - All
+ type: string
+ mode:
+ description: |-
+ mode controls whether metrics forwarding is active for this hosted cluster.
+ When set to "Forward", metrics-proxy and endpoint-resolver are deployed in the
+ control plane, and a metrics-forwarder is deployed in the hosted cluster.
+ When set to "None", metrics forwarding is inactive.
+ enum:
+ - Forward
+ - None
+ type: string
+ required:
+ - mode
+ type: object
+ metricsSet:
+ description: |-
+ metricsSet specifies which set of metrics to collect and forward.
+ This overrides the global METRICS_SET environment variable configured on the HyperShift Operator.
+ When not specified, the global METRICS_SET value is used, which defaults to "Telemetry".
+
+ "Telemetry" collects only the minimal set of metrics required for OpenShift Telemetry.
+ "SRE" collects the Telemetry set plus additional metrics defined in the sre-metric-set ConfigMap,
+ needed for SRE dashboards and alerts.
+ "All" collects all metrics from control plane components without filtering,
+ which produces significantly higher metrics volume.
+ enum:
+ - Telemetry
+ - SRE
+ - All
+ type: string
+ 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
+ ipv6:
+ description: |-
+ ipv6 allows users to configure IP settings for IPv6 connections. When omitted,
+ this means no opinions and the default configuration is used. Check individual
+ fields within ipv6 for details of default values.
+ For KubeVirt hosted clusters using dual-stack networking, it is recommended to
+ set ipv6.internalJoinSubnet to a value different from the management cluster's
+ join subnet (default fd98::/64) to avoid IPv6 routing conflicts.
+ minProperties: 1
+ properties:
+ internalJoinSubnet:
+ description: |-
+ internalJoinSubnet is a v6 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 fd98::/64.
+ For KubeVirt hosted clusters, if this field is not set, HyperShift will
+ automatically use fd99::/64 to avoid collisions with the management cluster's
+ default join subnet (fd98::/64).
+ The subnet must be large enough to accommodate one IP per node in your cluster.
+ The value must be a valid IPv6 CIDR (e.g. fd98::/64). IPv4 addresses,
+ IPv4-mapped IPv6 addresses, and dual-stack addresses are not permitted.
+ The prefix length must be in the range /0 to /125 inclusive.
+ This field is immutable once set.
+ maxLength: 48
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: Subnet must be in valid IPv6 CIDR format
+ (e.g., fd98::/64)
+ rule: isCIDR(self) && cidr(self).ip().family() ==
+ 6
+ - message: subnet must be in the range /0 to /125
+ inclusive
+ rule: isCIDR(self) && cidr(self).prefixLength()
+ <= 125
+ - message: internalJoinSubnet is immutable
+ rule: self == oldSelf
+ internalTransitSwitchSubnet:
+ description: |-
+ internalTransitSwitchSubnet is a v6 subnet in IPv6 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 fd97::/64.
+ The subnet must be large enough to accommodate one IP per node in your cluster.
+ The value must be a valid IPv6 CIDR (e.g. fd97::/64). IPv4 addresses,
+ IPv4-mapped IPv6 addresses, and dual-stack addresses are not permitted.
+ The prefix length must be in the range /0 to /125 inclusive.
+ This field is immutable once set.
+ maxLength: 48
+ minLength: 3
+ type: string
+ x-kubernetes-validations:
+ - message: Subnet must be in valid IPv6 CIDR format
+ (e.g., fd97::/64)
+ rule: isCIDR(self) && cidr(self).ip().family() ==
+ 6
+ - message: subnet must be in the range /0 to /125
+ inclusive
+ rule: isCIDR(self) && cidr(self).prefixLength()
+ <= 125
+ - message: internalTransitSwitchSubnet is immutable
+ rule: self == oldSelf
+ type: object
+ mtu:
+ description: |-
+ mtu is the MTU to use for the tunnel interface on hosted cluster nodes.
+ This must be 100 bytes smaller than the uplink MTU.
+ When unset, the cluster-network-operator will determine the MTU automatically
+ based on the infrastructure (e.g., for commercial AWS regions, it defaults
+ to 8901 based on the 9001 uplink MTU minus 100 bytes overhead).
+ Some non-commercial AWS regions do not support 9001 uplink MTU,
+ requiring this field to be explicitly set to a lower value.
+ The maximum is 9216, which is the standard jumbo frame upper limit
+ supported by datacenter and cloud network interfaces.
+ The minimum is 576, which is the minimum IPv4 MTU per RFC 791.
+ This field is immutable once set.
+ format: int32
+ maximum: 9216
+ minimum: 576
+ type: integer
+ x-kubernetes-validations:
+ - message: mtu is immutable once set
+ rule: self == oldSelf
+ v4InternalSubnet:
+ description: |-
+ v4InternalSubnet configures the IPv4 subnet used by OVN-Kubernetes for gateway
+ router logical router port (LRP) addresses and masquerade/SNAT traffic within
+ the OVN logical topology. 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.
+ This field is distinct from ipv4.internalJoinSubnet, which configures the subnet
+ for the join switch that interconnects per-node gateway routers with the cluster
+ router. Both default to 100.64.0.0/16 but control different OVN-Kubernetes
+ internal networks and can be configured independently to avoid overlaps with
+ existing network infrastructure.
+ Once set, the value is immutable and cannot be modified in subsequent updates.
+ The default is 100.64.0.0/16.
+ The value must be in IPv4 CIDR notation (e.g., 192.168.0.0/16), consisting of
+ four decimal octets (0-255) separated by dots, followed by a slash and a prefix
+ length. The prefix length must be between 0 and 30 inclusive, and the first
+ octet must not be 0.
+ The value must be between 9 and 18 characters in length.
+ This field is immutable once set.
+ maxLength: 18
+ minLength: 9
+ type: string
+ x-kubernetes-validations:
+ - message: v4InternalSubnet is immutable once set
+ rule: self == oldSelf
+ - message: Subnet must be in a valid IPv4 CIDR format
+ rule: isCIDR(self) && cidr(self).ip().family() == 4
+ - message: subnet must be in the range /0 to /30 inclusive
+ rule: isCIDR(self) && cidr(self).prefixLength() <= 30
+ - message: first IP address octet must not be 0
+ rule: isCIDR(self) && cidr(self).ip().family() == 4
+ && int(self.split('.')[0]) > 0
+ v6InternalSubnet:
+ description: |-
+ v6InternalSubnet configures the IPv6 subnet used by OVN-Kubernetes for gateway
+ router logical router port (LRP) addresses and masquerade/SNAT traffic within
+ the OVN logical topology. 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.
+ This field is distinct from ipv6.internalJoinSubnet, which configures the subnet
+ for the join switch that interconnects per-node gateway routers with the cluster
+ router. Both default to fd98::/64 but control different OVN-Kubernetes internal
+ networks and can be configured independently to avoid overlaps with existing
+ network infrastructure.
+ Once set, the value is immutable and cannot be modified in subsequent updates.
+ The default is fd98::/64.
+ The value must be in IPv6 CIDR notation (e.g., fd98::/64), consisting of an
+ IPv6 address followed by a slash and a prefix length. The prefix length must
+ be between 0 and 125 inclusive.
+ The value must be between 4 and 48 characters in length.
+ This field is immutable once set.
+ maxLength: 48
+ minLength: 4
+ type: string
+ x-kubernetes-validations:
+ - message: v6InternalSubnet is immutable once set
+ rule: self == oldSelf
+ - message: Subnet must be in valid IPv6 CIDR format
+ rule: isCIDR(self) && cidr(self).ip().family() == 6
+ - message: subnet must be in the range /0 to /125 inclusive
+ rule: isCIDR(self) && cidr(self).prefixLength() <= 125
+ 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'
+ - message: ipv6 internalJoinSubnet and internalTransitSwitchSubnet
+ must not be the same
+ rule: '!has(self.ipv6) || !has(self.ipv6.internalJoinSubnet)
+ || !has(self.ipv6.internalTransitSwitchSubnet) || self.ipv6.internalJoinSubnet
+ != self.ipv6.internalTransitSwitchSubnet'
+ - message: mtu is immutable once set and cannot be removed
+ rule: '!has(oldSelf.mtu) || has(self.mtu)'
+ - message: ipv6 is immutable once set and cannot be removed
+ rule: '!has(oldSelf.ipv6) || has(self.ipv6)'
+ - message: ipv6.internalJoinSubnet cannot be removed once
+ set
+ rule: '!has(oldSelf.ipv6) || !has(oldSelf.ipv6.internalJoinSubnet)
+ || (has(self.ipv6) && has(self.ipv6.internalJoinSubnet))'
+ - message: ipv6.internalTransitSwitchSubnet cannot be removed
+ once set
+ rule: '!has(oldSelf.ipv6) || !has(oldSelf.ipv6.internalTransitSwitchSubnet)
+ || (has(self.ipv6) && has(self.ipv6.internalTransitSwitchSubnet))'
+ - message: v4InternalSubnet is immutable once set and cannot
+ be removed
+ rule: '!has(oldSelf.v4InternalSubnet) || has(self.v4InternalSubnet)'
+ - message: v6InternalSubnet is immutable once set and cannot
+ be removed
+ rule: '!has(oldSelf.v6InternalSubnet) || has(self.v6InternalSubnet)'
+ type: object
+ x-kubernetes-validations:
+ - message: ovnKubernetesConfig is immutable once set and cannot
+ be removed
+ rule: '!has(oldSelf.ovnKubernetesConfig) || has(self.ovnKubernetesConfig)'
+ etcd:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ etcd configures the etcd component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ Note: etcd supports fewer log levels than klog-based components,
+ etcd supports only Normal and Debug log levels.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ x-kubernetes-validations:
+ - message: etcd only supports Normal and Debug log levels; Trace
+ and TraceAll are not valid for etcd
+ rule: '!has(self.logLevel) || self.logLevel in [''Normal'',
+ ''Debug'']'
+ 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))
+ protocol:
+ description: |-
+ protocol specifies whether the Network Load Balancer uses PROXY
+ protocol to forward connections to the IngressController.
+
+ When set to "TCP", the NLB uses AWS's native client IP preservation.
+ This may cause hairpin connection failures for internal load
+ balancers when connections are made from pods to router pods on
+ the same node.
+
+ When set to "PROXY", the NLB disables native client IP preservation
+ and uses PROXY protocol v2. The IngressController enables PROXY
+ protocol on HAProxy so that it can parse PROXY protocol headers to
+ obtain the original client IP. This avoids hairpin connection
+ failures.
+
+ The following values are valid for this field:
+
+ * "TCP".
+ * "PROXY".
+
+ When omitted, this means the user has no opinion and the value is
+ left to the platform to choose a reasonable default, which is subject to
+ change over time. The current default is "PROXY".
+
+ Note that changing this field may cause brief connection failures
+ during the transition as the NLB attribute change and router rollout
+ occur independently.
+ enum:
+ - TCP
+ - PROXY
+ 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
+ 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
+ kubeAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeAPIServer configures the kube-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeControllerManager configures the kube-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeScheduler:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeScheduler configures the kube-scheduler component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ oauthServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ oauthServer configures the oauth-server component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftAPIServer configures the openshift-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftControllerManager configures the openshift-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftOAuthAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ 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.
+ For NodePool-created resources (EC2 instances and their initial EBS volumes), these will be merged with NodePool-scoped tags.
+ By default, HostedCluster tags take precedence over NodePool tags when both specify the same key.
+ To allow a NodePool tag to override a specific HostedCluster tag, set overridePolicy to "Allow" on that tag.
+ Cluster-scoped resources (VPC endpoints, security groups) only receive HostedCluster tags.
+ 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: |-
+ AWSClusterResourceTag is a tag to apply to AWS resources created for a
+ HostedCluster. It extends the base tag with an overridePolicy field that
+ controls whether NodePool-level tags can override this tag.
+ properties:
+ key:
+ description: |-
+ key is the key of the tag.
+ Must be between 1 and 128 characters and may only contain letters, digits,
+ and the characters _ . : / = + - @
+ maxLength: 128
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: 'key must only contain letters, digits, and
+ the characters _ . : / = + - @'
+ rule: self.matches('^[0-9A-Za-z_.:/=+@-]+$')
+ overridePolicy:
+ description: |-
+ overridePolicy controls whether a NodePool-level tag with the same key can
+ override this HostedCluster-level tag.
+
+ When set to "Allow", a NodePool tag with the same key will take precedence
+ over this HostedCluster tag. When set to "Deny" or omitted, the
+ HostedCluster value is preserved and the NodePool tag is ignored for that
+ key.
+ enum:
+ - Allow
+ - Deny
+ type: string
+ value:
+ description: |-
+ value is the value of the tag.
+ Must be between 1 and 256 characters and may only contain letters, digits,
+ and the characters _ . : / = + - @
+
+ 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
+ type: string
+ x-kubernetes-validations:
+ - message: 'value must only contain letters, digits,
+ and the characters _ . : / = + - @'
+ rule: self.matches('^[0-9A-Za-z_.:/=+@-]+$')
+ 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
+ controlPlaneOperator:
+ description: |-
+ controlPlaneOperator is the client ID of a federated managed identity, associated with control-plane-operator,
+ used in workload identity authentication for Azure Private Link Service operations.
+ 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 Azure cloud environment identifier.
+ enum:
+ - AzurePublicCloud
+ - AzureUSGovernmentCloud
+ - AzureChinaCloud
+ - AzureGermanCloud
+ - AzureBleuCloud
+ - AzureStackCloud
+ type: string
+ containerRegistry:
+ description: |-
+ containerRegistry configures how worker nodes authenticate to Azure Container Registry (ACR).
+ When set, the managed identity is attached to worker virtual machines and its resource ID is
+ written into the worker cloud provider config so kubelet's ACR credential provider can
+ authenticate without image pull secrets.
+ Changing this value will trigger a rollout for all existing NodePools in the cluster.
+ properties:
+ credentials:
+ description: |-
+ credentials configures authentication for worker nodes pulling images from ACR
+ using a user-assigned managed identity.
+ The identity does not need to be in the same subscription or resource group as the
+ HostedCluster, but it must be in the same Azure AD tenant. The management cluster's
+ CAPZ identity must have Microsoft.ManagedIdentity/userAssignedIdentities/*/assign/action
+ on the identity's scope to attach it to worker virtual machines at creation time.
+ properties:
+ managedIdentity:
+ description: managedIdentity identifies the user-assigned
+ managed identity used for ACR image pulls.
+ properties:
+ resourceID:
+ description: |-
+ resourceID is the ARM resource ID of the user-assigned managed identity
+ in the format /subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ The identity must have the AcrPull role on the target Azure Container Registry.
+ It does not need to be in the same subscription or resource group as the HostedCluster,
+ but it must be in the same Azure AD tenant.
+ maxLength: 345
+ minLength: 131
+ type: string
+ x-kubernetes-validations:
+ - message: must be a user-assigned managed identity
+ ARM resource ID in the format /subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
+ rule: self.lowerAscii().matches('^/subscriptions/[^/]+/resourcegroups/[^/]+/providers/microsoft\\.managedidentity/userassignedidentities/[^/]+$')
+ required:
+ - resourceID
+ type: object
+ type:
+ description: type specifies the credential type used
+ for ACR image pulls.
+ enum:
+ - ManagedIdentity
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-validations:
+ - message: managedIdentity is required when type is ManagedIdentity,
+ and forbidden otherwise
+ rule: 'self.type == ''ManagedIdentity'' ? has(self.managedIdentity)
+ : !has(self.managedIdentity)'
+ required:
+ - credentials
+ type: object
+ 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
+ private:
+ description: |-
+ private configures private connectivity to the hosted cluster's API server.
+ This field is required when topology is Private or PublicAndPrivate, and must
+ not be set when topology is Public.
+ Once set at cluster creation, this field cannot be removed, and it cannot be
+ added to an existing cluster that was created without it.
+ properties:
+ privateLink:
+ description: |-
+ privateLink configures Azure Private Link Service for private API server access.
+ This field is required when type is "PrivateLink" and must not be set otherwise.
+ minProperties: 1
+ properties:
+ additionalAllowedSubscriptions:
+ description: |-
+ additionalAllowedSubscriptions is an optional list of additional Azure subscription IDs
+ permitted to create Private Endpoints to the Private Link Service. The guest cluster's
+ own subscription is always automatically allowed, so it does not need to be listed here.
+ Each item must be a valid UUID consisting of lowercase hexadecimal characters and hyphens,
+ in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ (e.g., "550e8400-e29b-41d4-a716-446655440000"). A maximum of 50 subscriptions may be specified.
+ items:
+ description: |-
+ AzureSubscriptionID is an Azure subscription ID in UUID format.
+ Must be exactly 36 characters consisting of hexadecimal digits [0-9a-fA-F] and hyphens
+ in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (e.g., "550e8400-e29b-41d4-a716-446655440000").
+ maxLength: 36
+ minLength: 36
+ type: string
+ x-kubernetes-validations:
+ - message: must be a valid UUID (e.g., 550e8400-e29b-41d4-a716-446655440000)
+ rule: self.matches('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$')
+ maxItems: 50
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: set
+ natSubnetID:
+ description: |-
+ natSubnetID is the Azure resource ID of the subnet used for Private Link Service NAT IP allocation.
+ This subnet must have privateLinkServiceNetworkPolicies disabled.
+ If not provided, the controller will auto-create a NAT subnet in the HC's VNet.
+ The expected format is:
+ /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
+ The maximum length is 355 characters.
+ maxLength: 355
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: natSubnetID is immutable once set
+ rule: self == oldSelf
+ - message: must be a valid Azure subnet resource ID
+ (e.g., /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Network/virtualNetworks/{vnet}/subnets/{subnet})
+ rule: self.matches('^/subscriptions/[^/]+/resourceGroups/[^/]+/providers/Microsoft\\.Network/virtualNetworks/[^/]+/subnets/[^/]+$')
+ type: object
+ swift:
+ description: |-
+ swift configures Azure Swift pod networking for private API server access.
+ Swift networking requires the management cluster to be pre-configured with
+ Azure Swift support; this is not provisioned by HyperShift automatically.
+ This field is required when type is "Swift" and must not be set otherwise.
+ properties:
+ podNetworkInstance:
+ description: |-
+ podNetworkInstance is the name of a PodNetworkInstance custom resource in the
+ hosted control plane namespace. This resource configures Azure Swift pod networking
+ for private connectivity to the hosted cluster's router pods.
+ The value must be a valid Kubernetes object name (RFC 1123 DNS label): lowercase
+ alphanumeric characters or hyphens, must start and end with an alphanumeric character.
+ This field is immutable once set.
+ maxLength: 63
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: 'podNetworkInstance must be a valid DNS
+ label: lowercase alphanumeric characters or hyphens,
+ must start and end with an alphanumeric character'
+ rule: self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')
+ required:
+ - podNetworkInstance
+ type: object
+ x-kubernetes-validations:
+ - message: podNetworkInstance is immutable
+ rule: self.podNetworkInstance == oldSelf.podNetworkInstance
+ type:
+ description: |-
+ type specifies the private connectivity mechanism used for the hosted cluster's API server.
+ "PrivateLink" selects Azure Private Link Service for private API server access.
+ "Swift" selects Azure Swift pod networking for private API server access, used by ARO HCP.
+ This field is immutable once set.
+ enum:
+ - PrivateLink
+ - Swift
+ type: string
+ required:
+ - type
+ type: object
+ x-kubernetes-validations:
+ - message: type is immutable
+ rule: '!has(oldSelf.type) || self.type == oldSelf.type'
+ - message: privateLink is required when type is PrivateLink,
+ and forbidden otherwise
+ rule: 'self.type == ''PrivateLink'' ? has(self.privateLink)
+ : !has(self.privateLink)'
+ - message: swift is required when type is Swift, and forbidden
+ otherwise
+ rule: 'self.type == ''Swift'' ? has(self.swift) : !has(self.swift)'
+ 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
+ topology:
+ description: |-
+ topology specifies the network topology of the API server endpoint for the hosted cluster.
+ - Public: The API server is accessible only via a public endpoint.
+ - PublicAndPrivate: The API server is accessible via both public and private endpoints.
+ - Private: The API server is accessible only via a private endpoint.
+ 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 Public.
+ This field must be set explicitly for self-hosted environments (WorkloadIdentities).
+ Transitions between PublicAndPrivate and Private are allowed after creation.
+ Transitions from Public to non-Public (or vice versa) are not allowed.
+ When set to Private or PublicAndPrivate, the private field must be provided.
+ enum:
+ - Public
+ - PublicAndPrivate
+ - Private
+ 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
+ x-kubernetes-validations:
+ - message: private cannot be added or removed after cluster creation
+ rule: has(self.private) == has(oldSelf.private)
+ - message: topology cannot be removed once set
+ rule: '!has(oldSelf.topology) || has(self.topology)'
+ - message: transitions between Public and non-Public topology
+ are not supported
+ rule: '!has(self.topology) || !has(oldSelf.topology) || (self.topology
+ == ''Public'') == (oldSelf.topology == ''Public'')'
+ - message: private is required when topology is Private or PublicAndPrivate,
+ and forbidden otherwise
+ rule: 'has(self.topology) && (self.topology == ''Private'' ||
+ self.topology == ''PublicAndPrivate'') ? has(self.private)
+ : !has(self.private)'
+ - message: workloadIdentities.controlPlaneOperator is required
+ when Private Link is configured with WorkloadIdentities authentication
+ rule: '!has(self.private) || self.private.type != ''PrivateLink''
+ || self.azureAuthenticationConfig.azureAuthenticationConfigType
+ != ''WorkloadIdentities'' || has(self.azureAuthenticationConfig.workloadIdentities.controlPlaneOperator)'
+ 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.
+
+ Deprecated: This field will be ignored when status.secretEncryption.activeKey is set.
+ The system automatically manages the previous key via the status field.
+ 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
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: arn must start with 'arn:'
+ rule: self.startsWith('arn:')
+ 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.
+
+ Deprecated: This field will be ignored when status.secretEncryption.activeKey is set.
+ The system automatically manages the previous key via the status field.
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the
+ encryption key
+ maxLength: 2048
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: arn must start with 'arn:'
+ rule: self.startsWith('arn:')
+ 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 key used for
+ encrypt/decrypt.
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the Key Vault or Managed HSM. 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 resource, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the
+ key to use
+ maxLength: 255
+ minLength: 1
+ 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.
+
+ Deprecated: This field will be ignored when status.secretEncryption.activeKey is set.
+ The system automatically manages the previous key via the status field.
+ properties:
+ keyName:
+ description: keyName is the name of the key used for
+ encrypt/decrypt.
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the Key Vault or Managed HSM. 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 resource, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the
+ key to use
+ maxLength: 255
+ minLength: 1
+ 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
+ keyVaultType:
+ description: |-
+ keyVaultType specifies whether activeKey and backupKey are hosted by Azure Key Vault or Azure Managed HSM.
+ Valid values are "KeyVault" and "ManagedHSM".
+ When set to "KeyVault", both keys are hosted by Azure Key Vault.
+ When set to "ManagedHSM", both keys are hosted by Azure Managed HSM.
+ The type is immutable; key rotation must remain within the same service.
+ When omitted, the keys are treated as Key Vault keys.
+ enum:
+ - KeyVault
+ - ManagedHSM
+ type: string
+ kms:
+ description: |-
+ kms is a pre-existing managed identity used to authenticate with Azure KMS.
+ This is used for managed Azure (ARO HCP) clusters.
+ kms and workloadIdentity are mutually exclusive.
+ 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
+ workloadIdentity:
+ description: |-
+ workloadIdentity contains the workload identity used to authenticate
+ with Azure Key Vault for KMS encryption via a token-minter sidecar.
+ This identity must have "Key Vault Crypto User" role on the Key Vault.
+ kms and workloadIdentity are mutually exclusive.
+ 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:
+ - activeKey
+ 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'
+ - message: keyVaultType is immutable
+ rule: '(has(self.keyVaultType) ? self.keyVaultType : ''KeyVault'')
+ == (has(oldSelf.keyVaultType) ? oldSelf.keyVaultType :
+ ''KeyVault'')'
+ - message: kms and workloadIdentity are mutually exclusive
+ rule: '!(has(self.kms) && has(self.workloadIdentity))'
+ - message: one of kms or workloadIdentity must be set
+ rule: has(self.kms) || has(self.workloadIdentity)
+ - message: the KMS authentication mode is immutable once set
+ rule: has(self.kms) == has(oldSelf.kms)
+ 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
+ minLength: 1
+ type: string
+ crkID:
+ description: crkID is the customer rook key id
+ maxLength: 255
+ minLength: 1
+ type: string
+ instanceID:
+ description: instanceID is the id for the key protect
+ instance
+ maxLength: 255
+ minLength: 1
+ 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
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: url must start with 'https://'
+ rule: self.startsWith('https://')
+ 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, Equal, Lt, and Gt. Defaults to Equal.
+ Exists is equivalent to wildcard for value, so that a pod can
+ tolerate all taints of a particular category.
+ Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
+ 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'''
+ - message: secretEncryption cannot be removed once configured
+ rule: '!has(oldSelf.secretEncryption) || has(self.secretEncryption)'
+ status:
+ description: status is the status of the HostedControlPlane.
+ properties:
+ autoNode:
+ description: autoNode contains the observed state of the autoNode
+ (Karpenter) provisioner.
+ minProperties: 1
+ properties:
+ nodeClaimCount:
+ description: |-
+ nodeClaimCount is the total number of NodeClaims managed by Karpenter.
+ This represents what Karpenter intends to provision, whether or not the node object exists yet.
+ format: int32
+ minimum: 0
+ type: integer
+ nodeCount:
+ description: |-
+ nodeCount is the number of nodes fully provisioned by Karpenter.
+ These are node objects that exist in the cluster and carry the karpenter.sh/nodepool label.
+ format: int32
+ minimum: 0
+ type: integer
+ vcpus:
+ description: |-
+ vcpus is the total number of virtual CPUs across all Karpenter-managed nodes
+ that have registered and reported capacity. This is the sum of CPU capacity
+ from each NodeClaim whose corresponding node exists (status.nodeName is set).
+ This value is 0 when no Karpenter nodes are provisioned.
+ Used by the metrics collector for billing aggregation.
+ format: int32
+ maximum: 1000000
+ minimum: 0
+ type: integer
+ type: object
+ 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
+ controlPlaneVersion:
+ description: |-
+ controlPlaneVersion tracks the rollout status of the control plane
+ components running on the management cluster, independently from
+ the data-plane version reported in the version field.
+ properties:
+ desired:
+ description: |-
+ desired is the release version that the control plane is reconciling towards.
+ It is derived from the HostedControlPlane release image fields.
+ 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 versions applied to management-side control plane components. The newest entry is
+ first in the list. Entries have state Completed when all ControlPlaneComponent resources report the target
+ version with RolloutComplete=True. Entries have state Partial when the rollout is in progress or has failed.
+ items:
+ description: |-
+ ControlPlaneUpdateHistory is a record of a single version transition for management-side
+ control plane components. Each entry captures the target version, its release image, when
+ the rollout started, and when (or whether) it completed.
+ properties:
+ completionTime:
+ description: |-
+ completionTime is the time at which the update completed. It is set
+ when all management-side components have reached the target version.
+ It is not set while the update is in progress.
+ format: date-time
+ type: string
+ image:
+ description: image is the release image pullspec used for
+ this update.
+ maxLength: 447
+ minLength: 1
+ 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.
+ enum:
+ - Completed
+ - Partial
+ type: string
+ version:
+ description: |-
+ version is a semantic version string identifying the update version
+ (e.g. "4.20.1").
+ maxLength: 64
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: version must start with semantic version prefix
+ x.y.z
+ rule: self.matches('^\\d+\\.\\d+\\.\\d+.*')
+ required:
+ - image
+ - startedTime
+ - state
+ - version
+ type: object
+ maxItems: 100
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: atomic
+ observedGeneration:
+ description: observedGeneration reports which generation of the
+ HostedControlPlane spec is being synced.
+ format: int64
+ maximum: 9007199254740992
+ minimum: 1
+ type: integer
+ required:
+ - desired
+ 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
+ secretEncryption:
+ description: secretEncryption tracks the state of secret encryption
+ key rotation and re-encryption.
+ minProperties: 1
+ properties:
+ activeKey:
+ description: |-
+ activeKey is the encryption key specification that all etcd data is confirmed encrypted with.
+ Updated after successful re-encryption.
+ properties:
+ aescbc:
+ description: aescbc holds a reference to the AESCBC key secret.
+ properties:
+ dataHash:
+ description: |-
+ dataHash is the hex-encoded SHA-256 hash of the secret's "key" data field
+ at the time re-encryption completed.
+ maxLength: 64
+ minLength: 1
+ type: string
+ secret:
+ description: secret is a reference to the secret containing
+ the AESCBC key.
+ 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
+ required:
+ - dataHash
+ - secret
+ type: object
+ aws:
+ description: aws holds the AWS KMS key identity fields.
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the encryption
+ key
+ maxLength: 2048
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: arn must start with 'arn:'
+ rule: self.startsWith('arn:')
+ required:
+ - arn
+ type: object
+ azure:
+ description: azure holds the Azure KMS key identity fields.
+ properties:
+ keyName:
+ description: keyName is the name of the key used for encrypt/decrypt.
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the Key Vault or Managed HSM. 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 resource, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the key
+ to use
+ maxLength: 255
+ minLength: 1
+ type: string
+ required:
+ - keyName
+ - keyVaultName
+ - keyVersion
+ type: object
+ ibmCloud:
+ description: ibmCloud holds the IBM Cloud KMS key identity
+ fields.
+ properties:
+ correlationID:
+ description: correlationID is an identifier used to track
+ all api call usage from hypershift
+ maxLength: 255
+ minLength: 1
+ type: string
+ crkID:
+ description: crkID is the customer rook key id
+ maxLength: 255
+ minLength: 1
+ type: string
+ instanceID:
+ description: instanceID is the id for the key protect
+ instance
+ maxLength: 255
+ minLength: 1
+ 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
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: url must start with 'https://'
+ rule: self.startsWith('https://')
+ required:
+ - correlationID
+ - crkID
+ - instanceID
+ - keyVersion
+ - url
+ type: object
+ provider:
+ description: provider identifies the encryption provider.
+ enum:
+ - Azure
+ - AWS
+ - IBMCloud
+ - AESCBC
+ type: string
+ required:
+ - provider
+ type: object
+ x-kubernetes-validations:
+ - message: azure is required when provider is Azure, and forbidden
+ otherwise
+ rule: 'self.provider == ''Azure'' ? has(self.azure) : !has(self.azure)'
+ - message: aws is required when provider is AWS, and forbidden
+ otherwise
+ rule: 'self.provider == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: ibmCloud is required when provider is IBMCloud, and
+ forbidden otherwise
+ rule: 'self.provider == ''IBMCloud'' ? has(self.ibmCloud) :
+ !has(self.ibmCloud)'
+ - message: aescbc is required when provider is AESCBC, and forbidden
+ otherwise
+ rule: 'self.provider == ''AESCBC'' ? has(self.aescbc) : !has(self.aescbc)'
+ history:
+ description: |-
+ history contains a list of key rotations applied to this cluster. The newest
+ entry is first in the list. Entries have state Completed when re-encryption
+ has finished. The current rotation phase is always history[0].state when
+ history[0] is not Completed or Interrupted.
+ items:
+ description: EncryptionMigrationHistory records a key rotation,
+ including in-progress rotations.
+ properties:
+ completionTime:
+ description: completionTime is when the rotation finished.
+ Not set while the rotation is in progress.
+ format: date-time
+ type: string
+ from:
+ description: from is the key that data was migrated from
+ (the previous active key).
+ properties:
+ fingerprint:
+ description: fingerprint is the hex-encoded SHA-256
+ hash of the key's identity fields.
+ maxLength: 64
+ minLength: 1
+ type: string
+ provider:
+ description: provider identifies the encryption provider.
+ enum:
+ - Azure
+ - AWS
+ - IBMCloud
+ - AESCBC
+ type: string
+ required:
+ - fingerprint
+ - provider
+ type: object
+ startedTime:
+ description: startedTime is when the rotation was initiated.
+ format: date-time
+ type: string
+ state:
+ description: state tracks the current phase of this rotation.
+ enum:
+ - ReadOnlyDeploy
+ - WritePromote
+ - Migrating
+ - Completed
+ - Interrupted
+ type: string
+ to:
+ description: to is the key that data was migrated to (the
+ target key).
+ properties:
+ fingerprint:
+ description: fingerprint is the hex-encoded SHA-256
+ hash of the key's identity fields.
+ maxLength: 64
+ minLength: 1
+ type: string
+ provider:
+ description: provider identifies the encryption provider.
+ enum:
+ - Azure
+ - AWS
+ - IBMCloud
+ - AESCBC
+ type: string
+ required:
+ - fingerprint
+ - provider
+ type: object
+ required:
+ - from
+ - startedTime
+ - state
+ - to
+ type: object
+ maxItems: 5
+ minItems: 1
+ type: array
+ x-kubernetes-list-type: atomic
+ targetKey:
+ description: |-
+ targetKey is the key being rolled out during an active rotation. Snapshot from
+ spec.secretEncryption's active key when the rotation starts. The CPO uses this
+ (not the current spec) during the rotation, so mid-rotation spec changes are
+ safely queued until the current rotation completes. Cleared when rotation completes.
+ properties:
+ aescbc:
+ description: aescbc holds a reference to the AESCBC key secret.
+ properties:
+ dataHash:
+ description: |-
+ dataHash is the hex-encoded SHA-256 hash of the secret's "key" data field
+ at the time re-encryption completed.
+ maxLength: 64
+ minLength: 1
+ type: string
+ secret:
+ description: secret is a reference to the secret containing
+ the AESCBC key.
+ 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
+ required:
+ - dataHash
+ - secret
+ type: object
+ aws:
+ description: aws holds the AWS KMS key identity fields.
+ properties:
+ arn:
+ description: arn is the Amazon Resource Name for the encryption
+ key
+ maxLength: 2048
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: arn must start with 'arn:'
+ rule: self.startsWith('arn:')
+ required:
+ - arn
+ type: object
+ azure:
+ description: azure holds the Azure KMS key identity fields.
+ properties:
+ keyName:
+ description: keyName is the name of the key used for encrypt/decrypt.
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVaultName:
+ description: |-
+ keyVaultName is the name of the Key Vault or Managed HSM. 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 resource, e.g using the AzureCLI:
+ `az keyvault set-policy -n $KEYVAULT_NAME --key-permissions decrypt encrypt --spn `
+ maxLength: 255
+ minLength: 1
+ type: string
+ keyVersion:
+ description: keyVersion contains the version of the key
+ to use
+ maxLength: 255
+ minLength: 1
+ type: string
+ required:
+ - keyName
+ - keyVaultName
+ - keyVersion
+ type: object
+ ibmCloud:
+ description: ibmCloud holds the IBM Cloud KMS key identity
+ fields.
+ properties:
+ correlationID:
+ description: correlationID is an identifier used to track
+ all api call usage from hypershift
+ maxLength: 255
+ minLength: 1
+ type: string
+ crkID:
+ description: crkID is the customer rook key id
+ maxLength: 255
+ minLength: 1
+ type: string
+ instanceID:
+ description: instanceID is the id for the key protect
+ instance
+ maxLength: 255
+ minLength: 1
+ 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
+ minLength: 1
+ type: string
+ x-kubernetes-validations:
+ - message: url must start with 'https://'
+ rule: self.startsWith('https://')
+ required:
+ - correlationID
+ - crkID
+ - instanceID
+ - keyVersion
+ - url
+ type: object
+ provider:
+ description: provider identifies the encryption provider.
+ enum:
+ - Azure
+ - AWS
+ - IBMCloud
+ - AESCBC
+ type: string
+ required:
+ - provider
+ type: object
+ x-kubernetes-validations:
+ - message: azure is required when provider is Azure, and forbidden
+ otherwise
+ rule: 'self.provider == ''Azure'' ? has(self.azure) : !has(self.azure)'
+ - message: aws is required when provider is AWS, and forbidden
+ otherwise
+ rule: 'self.provider == ''AWS'' ? has(self.aws) : !has(self.aws)'
+ - message: ibmCloud is required when provider is IBMCloud, and
+ forbidden otherwise
+ rule: 'self.provider == ''IBMCloud'' ? has(self.ibmCloud) :
+ !has(self.ibmCloud)'
+ - message: aescbc is required when provider is AESCBC, and forbidden
+ otherwise
+ rule: 'self.provider == ''AESCBC'' ? has(self.aescbc) : !has(self.aescbc)'
+ type: object
+ 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/componentloglevelspec.go b/client/applyconfiguration/hypershift/v1beta1/componentloglevelspec.go
new file mode 100644
index 000000000000..829a338ec28d
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/componentloglevelspec.go
@@ -0,0 +1,42 @@
+/*
+
+
+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"
+)
+
+// ComponentLogLevelSpecApplyConfiguration represents a declarative configuration of the ComponentLogLevelSpec type for use
+// with apply.
+type ComponentLogLevelSpecApplyConfiguration struct {
+ LogLevel *hypershiftv1beta1.LogLevel `json:"logLevel,omitempty"`
+}
+
+// ComponentLogLevelSpecApplyConfiguration constructs a declarative configuration of the ComponentLogLevelSpec type for use with
+// apply.
+func ComponentLogLevelSpec() *ComponentLogLevelSpecApplyConfiguration {
+ return &ComponentLogLevelSpecApplyConfiguration{}
+}
+
+// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
+func (b *ComponentLogLevelSpecApplyConfiguration) WithLogLevel(value hypershiftv1beta1.LogLevel) *ComponentLogLevelSpecApplyConfiguration {
+ b.LogLevel = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/etcdoperatorspec.go b/client/applyconfiguration/hypershift/v1beta1/etcdoperatorspec.go
new file mode 100644
index 000000000000..25b6f07091e8
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/etcdoperatorspec.go
@@ -0,0 +1,42 @@
+/*
+
+
+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"
+)
+
+// EtcdOperatorSpecApplyConfiguration represents a declarative configuration of the EtcdOperatorSpec type for use
+// with apply.
+type EtcdOperatorSpecApplyConfiguration struct {
+ ComponentLogLevelSpecApplyConfiguration `json:",inline"`
+}
+
+// EtcdOperatorSpecApplyConfiguration constructs a declarative configuration of the EtcdOperatorSpec type for use with
+// apply.
+func EtcdOperatorSpec() *EtcdOperatorSpecApplyConfiguration {
+ return &EtcdOperatorSpecApplyConfiguration{}
+}
+
+// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
+func (b *EtcdOperatorSpecApplyConfiguration) WithLogLevel(value hypershiftv1beta1.LogLevel) *EtcdOperatorSpecApplyConfiguration {
+ b.ComponentLogLevelSpecApplyConfiguration.LogLevel = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/kubeapiserveroperatorspec.go b/client/applyconfiguration/hypershift/v1beta1/kubeapiserveroperatorspec.go
new file mode 100644
index 000000000000..f50550b9ed43
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/kubeapiserveroperatorspec.go
@@ -0,0 +1,42 @@
+/*
+
+
+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"
+)
+
+// KubeAPIServerOperatorSpecApplyConfiguration represents a declarative configuration of the KubeAPIServerOperatorSpec type for use
+// with apply.
+type KubeAPIServerOperatorSpecApplyConfiguration struct {
+ ComponentLogLevelSpecApplyConfiguration `json:",inline"`
+}
+
+// KubeAPIServerOperatorSpecApplyConfiguration constructs a declarative configuration of the KubeAPIServerOperatorSpec type for use with
+// apply.
+func KubeAPIServerOperatorSpec() *KubeAPIServerOperatorSpecApplyConfiguration {
+ return &KubeAPIServerOperatorSpecApplyConfiguration{}
+}
+
+// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
+func (b *KubeAPIServerOperatorSpecApplyConfiguration) WithLogLevel(value hypershiftv1beta1.LogLevel) *KubeAPIServerOperatorSpecApplyConfiguration {
+ b.ComponentLogLevelSpecApplyConfiguration.LogLevel = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/kubecontrollermanageroperatorspec.go b/client/applyconfiguration/hypershift/v1beta1/kubecontrollermanageroperatorspec.go
new file mode 100644
index 000000000000..072e945e7b7e
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/kubecontrollermanageroperatorspec.go
@@ -0,0 +1,42 @@
+/*
+
+
+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"
+)
+
+// KubeControllerManagerOperatorSpecApplyConfiguration represents a declarative configuration of the KubeControllerManagerOperatorSpec type for use
+// with apply.
+type KubeControllerManagerOperatorSpecApplyConfiguration struct {
+ ComponentLogLevelSpecApplyConfiguration `json:",inline"`
+}
+
+// KubeControllerManagerOperatorSpecApplyConfiguration constructs a declarative configuration of the KubeControllerManagerOperatorSpec type for use with
+// apply.
+func KubeControllerManagerOperatorSpec() *KubeControllerManagerOperatorSpecApplyConfiguration {
+ return &KubeControllerManagerOperatorSpecApplyConfiguration{}
+}
+
+// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
+func (b *KubeControllerManagerOperatorSpecApplyConfiguration) WithLogLevel(value hypershiftv1beta1.LogLevel) *KubeControllerManagerOperatorSpecApplyConfiguration {
+ b.ComponentLogLevelSpecApplyConfiguration.LogLevel = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/kubescheduleroperatorspec.go b/client/applyconfiguration/hypershift/v1beta1/kubescheduleroperatorspec.go
new file mode 100644
index 000000000000..3d4f93fa9125
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/kubescheduleroperatorspec.go
@@ -0,0 +1,42 @@
+/*
+
+
+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"
+)
+
+// KubeSchedulerOperatorSpecApplyConfiguration represents a declarative configuration of the KubeSchedulerOperatorSpec type for use
+// with apply.
+type KubeSchedulerOperatorSpecApplyConfiguration struct {
+ ComponentLogLevelSpecApplyConfiguration `json:",inline"`
+}
+
+// KubeSchedulerOperatorSpecApplyConfiguration constructs a declarative configuration of the KubeSchedulerOperatorSpec type for use with
+// apply.
+func KubeSchedulerOperatorSpec() *KubeSchedulerOperatorSpecApplyConfiguration {
+ return &KubeSchedulerOperatorSpecApplyConfiguration{}
+}
+
+// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
+func (b *KubeSchedulerOperatorSpecApplyConfiguration) WithLogLevel(value hypershiftv1beta1.LogLevel) *KubeSchedulerOperatorSpecApplyConfiguration {
+ b.ComponentLogLevelSpecApplyConfiguration.LogLevel = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/oauthserveroperatorspec.go b/client/applyconfiguration/hypershift/v1beta1/oauthserveroperatorspec.go
new file mode 100644
index 000000000000..90e03524c05c
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/oauthserveroperatorspec.go
@@ -0,0 +1,42 @@
+/*
+
+
+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"
+)
+
+// OAuthServerOperatorSpecApplyConfiguration represents a declarative configuration of the OAuthServerOperatorSpec type for use
+// with apply.
+type OAuthServerOperatorSpecApplyConfiguration struct {
+ ComponentLogLevelSpecApplyConfiguration `json:",inline"`
+}
+
+// OAuthServerOperatorSpecApplyConfiguration constructs a declarative configuration of the OAuthServerOperatorSpec type for use with
+// apply.
+func OAuthServerOperatorSpec() *OAuthServerOperatorSpecApplyConfiguration {
+ return &OAuthServerOperatorSpecApplyConfiguration{}
+}
+
+// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
+func (b *OAuthServerOperatorSpecApplyConfiguration) WithLogLevel(value hypershiftv1beta1.LogLevel) *OAuthServerOperatorSpecApplyConfiguration {
+ b.ComponentLogLevelSpecApplyConfiguration.LogLevel = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/openshiftapiserveroperatorspec.go b/client/applyconfiguration/hypershift/v1beta1/openshiftapiserveroperatorspec.go
new file mode 100644
index 000000000000..014437804cd8
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/openshiftapiserveroperatorspec.go
@@ -0,0 +1,42 @@
+/*
+
+
+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"
+)
+
+// OpenShiftAPIServerOperatorSpecApplyConfiguration represents a declarative configuration of the OpenShiftAPIServerOperatorSpec type for use
+// with apply.
+type OpenShiftAPIServerOperatorSpecApplyConfiguration struct {
+ ComponentLogLevelSpecApplyConfiguration `json:",inline"`
+}
+
+// OpenShiftAPIServerOperatorSpecApplyConfiguration constructs a declarative configuration of the OpenShiftAPIServerOperatorSpec type for use with
+// apply.
+func OpenShiftAPIServerOperatorSpec() *OpenShiftAPIServerOperatorSpecApplyConfiguration {
+ return &OpenShiftAPIServerOperatorSpecApplyConfiguration{}
+}
+
+// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
+func (b *OpenShiftAPIServerOperatorSpecApplyConfiguration) WithLogLevel(value hypershiftv1beta1.LogLevel) *OpenShiftAPIServerOperatorSpecApplyConfiguration {
+ b.ComponentLogLevelSpecApplyConfiguration.LogLevel = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/openshiftcontrollermanageroperatorspec.go b/client/applyconfiguration/hypershift/v1beta1/openshiftcontrollermanageroperatorspec.go
new file mode 100644
index 000000000000..66b89b89e7f5
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/openshiftcontrollermanageroperatorspec.go
@@ -0,0 +1,42 @@
+/*
+
+
+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"
+)
+
+// OpenShiftControllerManagerOperatorSpecApplyConfiguration represents a declarative configuration of the OpenShiftControllerManagerOperatorSpec type for use
+// with apply.
+type OpenShiftControllerManagerOperatorSpecApplyConfiguration struct {
+ ComponentLogLevelSpecApplyConfiguration `json:",inline"`
+}
+
+// OpenShiftControllerManagerOperatorSpecApplyConfiguration constructs a declarative configuration of the OpenShiftControllerManagerOperatorSpec type for use with
+// apply.
+func OpenShiftControllerManagerOperatorSpec() *OpenShiftControllerManagerOperatorSpecApplyConfiguration {
+ return &OpenShiftControllerManagerOperatorSpecApplyConfiguration{}
+}
+
+// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
+func (b *OpenShiftControllerManagerOperatorSpecApplyConfiguration) WithLogLevel(value hypershiftv1beta1.LogLevel) *OpenShiftControllerManagerOperatorSpecApplyConfiguration {
+ b.ComponentLogLevelSpecApplyConfiguration.LogLevel = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/openshiftoauthapiserveroperatorspec.go b/client/applyconfiguration/hypershift/v1beta1/openshiftoauthapiserveroperatorspec.go
new file mode 100644
index 000000000000..9481892e4369
--- /dev/null
+++ b/client/applyconfiguration/hypershift/v1beta1/openshiftoauthapiserveroperatorspec.go
@@ -0,0 +1,42 @@
+/*
+
+
+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"
+)
+
+// OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration represents a declarative configuration of the OpenShiftOAuthAPIServerOperatorSpec type for use
+// with apply.
+type OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration struct {
+ ComponentLogLevelSpecApplyConfiguration `json:",inline"`
+}
+
+// OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration constructs a declarative configuration of the OpenShiftOAuthAPIServerOperatorSpec type for use with
+// apply.
+func OpenShiftOAuthAPIServerOperatorSpec() *OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration {
+ return &OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration{}
+}
+
+// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
+func (b *OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration) WithLogLevel(value hypershiftv1beta1.LogLevel) *OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration {
+ b.ComponentLogLevelSpecApplyConfiguration.LogLevel = &value
+ return b
+}
diff --git a/client/applyconfiguration/hypershift/v1beta1/operatorconfiguration.go b/client/applyconfiguration/hypershift/v1beta1/operatorconfiguration.go
index 4c157d49f4b6..7c6f04966e2b 100644
--- a/client/applyconfiguration/hypershift/v1beta1/operatorconfiguration.go
+++ b/client/applyconfiguration/hypershift/v1beta1/operatorconfiguration.go
@@ -20,9 +20,17 @@ package v1beta1
// OperatorConfigurationApplyConfiguration represents a declarative configuration of the OperatorConfiguration type for use
// with apply.
type OperatorConfigurationApplyConfiguration struct {
- ClusterVersionOperator *ClusterVersionOperatorSpecApplyConfiguration `json:"clusterVersionOperator,omitempty"`
- ClusterNetworkOperator *ClusterNetworkOperatorSpecApplyConfiguration `json:"clusterNetworkOperator,omitempty"`
- IngressOperator *IngressOperatorSpecApplyConfiguration `json:"ingressOperator,omitempty"`
+ ClusterVersionOperator *ClusterVersionOperatorSpecApplyConfiguration `json:"clusterVersionOperator,omitempty"`
+ ClusterNetworkOperator *ClusterNetworkOperatorSpecApplyConfiguration `json:"clusterNetworkOperator,omitempty"`
+ IngressOperator *IngressOperatorSpecApplyConfiguration `json:"ingressOperator,omitempty"`
+ KubeAPIServer *KubeAPIServerOperatorSpecApplyConfiguration `json:"kubeAPIServer,omitempty"`
+ Etcd *EtcdOperatorSpecApplyConfiguration `json:"etcd,omitempty"`
+ KubeControllerManager *KubeControllerManagerOperatorSpecApplyConfiguration `json:"kubeControllerManager,omitempty"`
+ KubeScheduler *KubeSchedulerOperatorSpecApplyConfiguration `json:"kubeScheduler,omitempty"`
+ OpenShiftControllerManager *OpenShiftControllerManagerOperatorSpecApplyConfiguration `json:"openShiftControllerManager,omitempty"`
+ OpenShiftAPIServer *OpenShiftAPIServerOperatorSpecApplyConfiguration `json:"openShiftAPIServer,omitempty"`
+ OpenShiftOAuthAPIServer *OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration `json:"openShiftOAuthAPIServer,omitempty"`
+ OAuthServer *OAuthServerOperatorSpecApplyConfiguration `json:"oauthServer,omitempty"`
}
// OperatorConfigurationApplyConfiguration constructs a declarative configuration of the OperatorConfiguration type for use with
@@ -54,3 +62,67 @@ func (b *OperatorConfigurationApplyConfiguration) WithIngressOperator(value *Ing
b.IngressOperator = value
return b
}
+
+// WithKubeAPIServer sets the KubeAPIServer 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 KubeAPIServer field is set to the value of the last call.
+func (b *OperatorConfigurationApplyConfiguration) WithKubeAPIServer(value *KubeAPIServerOperatorSpecApplyConfiguration) *OperatorConfigurationApplyConfiguration {
+ b.KubeAPIServer = value
+ return b
+}
+
+// WithEtcd sets the Etcd 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 Etcd field is set to the value of the last call.
+func (b *OperatorConfigurationApplyConfiguration) WithEtcd(value *EtcdOperatorSpecApplyConfiguration) *OperatorConfigurationApplyConfiguration {
+ b.Etcd = value
+ return b
+}
+
+// WithKubeControllerManager sets the KubeControllerManager 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 KubeControllerManager field is set to the value of the last call.
+func (b *OperatorConfigurationApplyConfiguration) WithKubeControllerManager(value *KubeControllerManagerOperatorSpecApplyConfiguration) *OperatorConfigurationApplyConfiguration {
+ b.KubeControllerManager = value
+ return b
+}
+
+// WithKubeScheduler sets the KubeScheduler 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 KubeScheduler field is set to the value of the last call.
+func (b *OperatorConfigurationApplyConfiguration) WithKubeScheduler(value *KubeSchedulerOperatorSpecApplyConfiguration) *OperatorConfigurationApplyConfiguration {
+ b.KubeScheduler = value
+ return b
+}
+
+// WithOpenShiftControllerManager sets the OpenShiftControllerManager 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 OpenShiftControllerManager field is set to the value of the last call.
+func (b *OperatorConfigurationApplyConfiguration) WithOpenShiftControllerManager(value *OpenShiftControllerManagerOperatorSpecApplyConfiguration) *OperatorConfigurationApplyConfiguration {
+ b.OpenShiftControllerManager = value
+ return b
+}
+
+// WithOpenShiftAPIServer sets the OpenShiftAPIServer 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 OpenShiftAPIServer field is set to the value of the last call.
+func (b *OperatorConfigurationApplyConfiguration) WithOpenShiftAPIServer(value *OpenShiftAPIServerOperatorSpecApplyConfiguration) *OperatorConfigurationApplyConfiguration {
+ b.OpenShiftAPIServer = value
+ return b
+}
+
+// WithOpenShiftOAuthAPIServer sets the OpenShiftOAuthAPIServer 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 OpenShiftOAuthAPIServer field is set to the value of the last call.
+func (b *OperatorConfigurationApplyConfiguration) WithOpenShiftOAuthAPIServer(value *OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration) *OperatorConfigurationApplyConfiguration {
+ b.OpenShiftOAuthAPIServer = value
+ return b
+}
+
+// WithOAuthServer sets the OAuthServer 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 OAuthServer field is set to the value of the last call.
+func (b *OperatorConfigurationApplyConfiguration) WithOAuthServer(value *OAuthServerOperatorSpecApplyConfiguration) *OperatorConfigurationApplyConfiguration {
+ b.OAuthServer = value
+ return b
+}
diff --git a/client/applyconfiguration/utils.go b/client/applyconfiguration/utils.go
index 60aa551483d5..72ab95407211 100644
--- a/client/applyconfiguration/utils.go
+++ b/client/applyconfiguration/utils.go
@@ -167,6 +167,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &hypershiftv1beta1.ClusterVersionOperatorSpecApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("ClusterVersionStatus"):
return &hypershiftv1beta1.ClusterVersionStatusApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("ComponentLogLevelSpec"):
+ return &hypershiftv1beta1.ComponentLogLevelSpecApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("ConfigurationStatus"):
return &hypershiftv1beta1.ConfigurationStatusApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("ControlPlaneManagedIdentities"):
@@ -187,6 +189,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &hypershiftv1beta1.EncryptionKeyReferenceApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("EncryptionMigrationHistory"):
return &hypershiftv1beta1.EncryptionMigrationHistoryApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("EtcdOperatorSpec"):
+ return &hypershiftv1beta1.EtcdOperatorSpecApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("EtcdShardResource"):
return &hypershiftv1beta1.EtcdShardResourceApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("EtcdShardSchedulingSpec"):
@@ -283,8 +287,14 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &hypershiftv1beta1.KarpenterConfigApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("KMSSpec"):
return &hypershiftv1beta1.KMSSpecApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("KubeAPIServerOperatorSpec"):
+ return &hypershiftv1beta1.KubeAPIServerOperatorSpecApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("KubeconfigSecretRef"):
return &hypershiftv1beta1.KubeconfigSecretRefApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("KubeControllerManagerOperatorSpec"):
+ return &hypershiftv1beta1.KubeControllerManagerOperatorSpecApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("KubeSchedulerOperatorSpec"):
+ return &hypershiftv1beta1.KubeSchedulerOperatorSpecApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("KubevirtCachingStrategy"):
return &hypershiftv1beta1.KubevirtCachingStrategyApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("KubevirtCompute"):
@@ -365,6 +375,14 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &hypershiftv1beta1.NodePortPublishingStrategyApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("NodeVersion"):
return &hypershiftv1beta1.NodeVersionApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("OAuthServerOperatorSpec"):
+ return &hypershiftv1beta1.OAuthServerOperatorSpecApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("OpenShiftAPIServerOperatorSpec"):
+ return &hypershiftv1beta1.OpenShiftAPIServerOperatorSpecApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("OpenShiftControllerManagerOperatorSpec"):
+ return &hypershiftv1beta1.OpenShiftControllerManagerOperatorSpecApplyConfiguration{}
+ case v1beta1.SchemeGroupVersion.WithKind("OpenShiftOAuthAPIServerOperatorSpec"):
+ return &hypershiftv1beta1.OpenShiftOAuthAPIServerOperatorSpecApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("OpenStackIdentityReference"):
return &hypershiftv1beta1.OpenStackIdentityReferenceApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("OpenStackNodePoolPlatform"):
diff --git a/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-Hypershift-Default.yaml b/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-Hypershift-Default.yaml
index ed6fe5dc246d..235b43b3b360 100644
--- a/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-Hypershift-Default.yaml
+++ b/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-Hypershift-Default.yaml
@@ -35,6 +35,9 @@
},
{
"name": "EtcdSharding"
+ },
+ {
+ "name": "HCPUserFacingOperatorLogs"
}
],
"enabled": [
diff --git a/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml b/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml
index 087183961cdf..562d145d958f 100644
--- a/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml
+++ b/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml
@@ -54,6 +54,9 @@
},
{
"name": "TLSAdherence"
+ },
+ {
+ "name": "HCPUserFacingOperatorLogs"
}
],
"version": ""
diff --git a/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-SelfManagedHA-Default.yaml b/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-SelfManagedHA-Default.yaml
index 9970329f3b4e..32e42f00a53a 100644
--- a/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-SelfManagedHA-Default.yaml
+++ b/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-SelfManagedHA-Default.yaml
@@ -35,6 +35,9 @@
},
{
"name": "EtcdSharding"
+ },
+ {
+ "name": "HCPUserFacingOperatorLogs"
}
],
"enabled": [
diff --git a/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml b/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml
index 8bd932a41aa2..390c4f924acf 100644
--- a/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml
+++ b/cmd/install/assets/crds/hypershift-operator/payload-manifests/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml
@@ -51,6 +51,9 @@
},
{
"name": "EtcdSharding"
+ },
+ {
+ "name": "HCPUserFacingOperatorLogs"
}
],
"version": ""
diff --git a/cmd/install/assets/crds/hypershift-operator/tests/hostedclusters.hypershift.openshift.io/featuregated.hostedclusters.operatorconfiguration.testsuite.yaml b/cmd/install/assets/crds/hypershift-operator/tests/hostedclusters.hypershift.openshift.io/featuregated.hostedclusters.operatorconfiguration.testsuite.yaml
new file mode 100644
index 000000000000..0488f9976aab
--- /dev/null
+++ b/cmd/install/assets/crds/hypershift-operator/tests/hostedclusters.hypershift.openshift.io/featuregated.hostedclusters.operatorconfiguration.testsuite.yaml
@@ -0,0 +1,4031 @@
+apiVersion: apiextensions.k8s.io/v1
+name: "HostedCluster operatorConfiguration log levels"
+crdName: hostedclusters.hypershift.openshift.io
+featureGates:
+ - HCPUserFacingOperatorLogs
+version: v1beta1
+tests:
+ onCreate:
+ - name: When kubeAPIServer logLevel is Normal it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeAPIServer:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeAPIServer logLevel is Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeAPIServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeAPIServer logLevel is Trace it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeAPIServer:
+ logLevel: Trace
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeAPIServer logLevel is TraceAll it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeAPIServer:
+ logLevel: TraceAll
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeAPIServer logLevel is an invalid value it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeAPIServer:
+ logLevel: InvalidValue
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'Unsupported value: "InvalidValue"'
+
+ - name: When kubeAPIServer is set with no properties it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeAPIServer: {}
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: "should have at least 1 properties"
+
+ - name: When etcd logLevel is Normal it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When etcd logLevel is Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When etcd logLevel is Trace it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: Trace
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'etcd only supports Normal and Debug log levels'
+
+ - name: When etcd logLevel is TraceAll it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: TraceAll
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'etcd only supports Normal and Debug log levels'
+
+ - name: When etcd logLevel is an invalid value it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: InvalidValue
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'Unsupported value: "InvalidValue"'
+
+ - name: When etcd is set with no properties it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd: {}
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: "should have at least 1 properties"
+
+ - name: When kubeControllerManager logLevel is Normal it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeControllerManager:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeControllerManager logLevel is Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeControllerManager:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeControllerManager logLevel is Trace it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeControllerManager:
+ logLevel: Trace
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeControllerManager logLevel is TraceAll it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeControllerManager:
+ logLevel: TraceAll
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeControllerManager logLevel is an invalid value it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeControllerManager:
+ logLevel: InvalidValue
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'Unsupported value: "InvalidValue"'
+
+ - name: When kubeControllerManager is set with no properties it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeControllerManager: {}
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: "should have at least 1 properties"
+
+ - name: When kubeScheduler logLevel is Normal it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeScheduler:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeScheduler logLevel is Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeScheduler:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeScheduler logLevel is Trace it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeScheduler:
+ logLevel: Trace
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeScheduler logLevel is TraceAll it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeScheduler:
+ logLevel: TraceAll
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When kubeScheduler logLevel is an invalid value it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeScheduler:
+ logLevel: InvalidValue
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'Unsupported value: "InvalidValue"'
+
+ - name: When kubeScheduler is set with no properties it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeScheduler: {}
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: "should have at least 1 properties"
+
+ - name: When openShiftControllerManager logLevel is Normal it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftControllerManager:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftControllerManager logLevel is Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftControllerManager:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftControllerManager logLevel is Trace it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftControllerManager:
+ logLevel: Trace
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftControllerManager logLevel is TraceAll it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftControllerManager:
+ logLevel: TraceAll
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftControllerManager logLevel is an invalid value it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftControllerManager:
+ logLevel: InvalidValue
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'Unsupported value: "InvalidValue"'
+
+ - name: When openShiftControllerManager is set with no properties it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftControllerManager: {}
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: "should have at least 1 properties"
+
+ - name: When openShiftAPIServer logLevel is Normal it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftAPIServer:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftAPIServer logLevel is Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftAPIServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftAPIServer logLevel is Trace it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftAPIServer:
+ logLevel: Trace
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftAPIServer logLevel is TraceAll it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftAPIServer:
+ logLevel: TraceAll
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftAPIServer logLevel is an invalid value it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftAPIServer:
+ logLevel: InvalidValue
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'Unsupported value: "InvalidValue"'
+
+ - name: When openShiftAPIServer is set with no properties it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftAPIServer: {}
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: "should have at least 1 properties"
+
+ - name: When openShiftOAuthAPIServer logLevel is Normal it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftOAuthAPIServer:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftOAuthAPIServer logLevel is Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftOAuthAPIServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftOAuthAPIServer logLevel is Trace it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftOAuthAPIServer:
+ logLevel: Trace
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftOAuthAPIServer logLevel is TraceAll it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftOAuthAPIServer:
+ logLevel: TraceAll
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When openShiftOAuthAPIServer logLevel is an invalid value it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftOAuthAPIServer:
+ logLevel: InvalidValue
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'Unsupported value: "InvalidValue"'
+
+ - name: When openShiftOAuthAPIServer is set with no properties it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftOAuthAPIServer: {}
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: "should have at least 1 properties"
+
+ - name: When oauthServer logLevel is Normal it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ oauthServer:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When oauthServer logLevel is Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ oauthServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When oauthServer logLevel is Trace it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ oauthServer:
+ logLevel: Trace
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When oauthServer logLevel is TraceAll it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ oauthServer:
+ logLevel: TraceAll
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ - name: When oauthServer logLevel is an invalid value it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ oauthServer:
+ logLevel: InvalidValue
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'Unsupported value: "InvalidValue"'
+
+ - name: When oauthServer is set with no properties it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ oauthServer: {}
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: "should have at least 1 properties"
+
+ onUpdate:
+ - name: When kubeAPIServer logLevel is changed from Normal to Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeAPIServer:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeAPIServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ operatorConfiguration:
+ kubeAPIServer:
+ logLevel: Debug
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When kubeAPIServer logLevel is removed it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeAPIServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When etcd logLevel is changed from Normal to Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ operatorConfiguration:
+ etcd:
+ logLevel: Debug
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When etcd logLevel is changed from Debug to Trace it should fail
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: Trace
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ expectedError: 'etcd only supports Normal and Debug log levels'
+
+ - name: When etcd logLevel is removed it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ etcd:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When kubeControllerManager logLevel is changed from Normal to Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeControllerManager:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeControllerManager:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ operatorConfiguration:
+ kubeControllerManager:
+ logLevel: Debug
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When kubeControllerManager logLevel is removed it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeControllerManager:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When kubeScheduler logLevel is changed from Normal to Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeScheduler:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeScheduler:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ operatorConfiguration:
+ kubeScheduler:
+ logLevel: Debug
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When kubeScheduler logLevel is removed it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ kubeScheduler:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When openShiftControllerManager logLevel is changed from Normal to Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftControllerManager:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftControllerManager:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ operatorConfiguration:
+ openShiftControllerManager:
+ logLevel: Debug
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When openShiftControllerManager logLevel is removed it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftControllerManager:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When openShiftAPIServer logLevel is changed from Normal to Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftAPIServer:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftAPIServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ operatorConfiguration:
+ openShiftAPIServer:
+ logLevel: Debug
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When openShiftAPIServer logLevel is removed it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftAPIServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When openShiftOAuthAPIServer logLevel is changed from Normal to Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftOAuthAPIServer:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftOAuthAPIServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ operatorConfiguration:
+ openShiftOAuthAPIServer:
+ logLevel: Debug
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When openShiftOAuthAPIServer logLevel is removed it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ openShiftOAuthAPIServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When oauthServer logLevel is changed from Normal to Debug it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ oauthServer:
+ logLevel: Normal
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ oauthServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ operatorConfiguration:
+ oauthServer:
+ logLevel: Debug
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+
+ - name: When oauthServer logLevel is removed it should pass
+ initial: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ operatorConfiguration:
+ oauthServer:
+ logLevel: Debug
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ updated: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ dns:
+ baseDomain: example.com
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: OAuthServer
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Konnectivity
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+ - service: Ignition
+ servicePublishingStrategy:
+ type: Route
+ route: {}
+
+ expected: |
+ apiVersion: hypershift.openshift.io/v1beta1
+ kind: HostedCluster
+ spec:
+ capabilities: {}
+ controllerAvailabilityPolicy: HighlyAvailable
+ dns:
+ baseDomain: example.com
+ etcd:
+ managed:
+ storage:
+ persistentVolume:
+ size: 8Gi
+ type: PersistentVolume
+ managementType: Managed
+ infrastructureAvailabilityPolicy: SingleReplica
+ issuerURL: https://kubernetes.default.svc
+ networking:
+ clusterNetwork:
+ - cidr: 10.132.0.0/14
+ networkType: OVNKubernetes
+ serviceNetwork:
+ - cidr: 172.31.0.0/16
+ olmCatalogPlacement: management
+ platform:
+ type: AWS
+ pullSecret:
+ name: secret
+ release:
+ image: quay.io/openshift-release-dev/ocp-release:4.15.11-x86_64
+ secretEncryption:
+ aescbc:
+ activeKey:
+ name: key
+ type: aescbc
+ services:
+ - service: APIServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: OAuthServer
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Konnectivity
+ servicePublishingStrategy:
+ route: {}
+ type: Route
+ - service: Ignition
+ servicePublishingStrategy:
+ route: {}
+ type: Route
diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml
index 3ce3cc171b1a..6f58843b4c37 100644
--- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml
+++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-CustomNoUpgrade.crd.yaml
@@ -5606,13 +5606,49 @@ spec:
Valid values are: "Normal", "Debug", "Trace", "TraceAll".
Defaults to "Normal".
enum:
- - ""
- Normal
- Debug
- Trace
- TraceAll
type: string
type: object
+ etcd:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ etcd configures the etcd component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ Note: etcd supports fewer log levels than klog-based components,
+ etcd supports only Normal and Debug log levels.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ x-kubernetes-validations:
+ - message: etcd only supports Normal and Debug log levels; Trace
+ and TraceAll are not valid for etcd
+ rule: '!has(self.logLevel) || self.logLevel in [''Normal'',
+ ''Debug'']'
ingressOperator:
description: |-
ingressOperator specifies the configuration for the Ingress Operator in the hosted cluster.
@@ -6339,6 +6375,216 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
+ kubeAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeAPIServer configures the kube-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeControllerManager configures the kube-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeScheduler:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeScheduler configures the kube-scheduler component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ oauthServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ oauthServer configures the oauth-server component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftAPIServer configures the openshift-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftControllerManager configures the openshift-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftOAuthAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
type: object
pausedUntil:
description: |-
diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml
index 76da29251cc4..262af2bb314f 100644
--- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml
+++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedclusters-Hypershift-TechPreviewNoUpgrade.crd.yaml
@@ -4728,13 +4728,49 @@ spec:
Valid values are: "Normal", "Debug", "Trace", "TraceAll".
Defaults to "Normal".
enum:
- - ""
- Normal
- Debug
- Trace
- TraceAll
type: string
type: object
+ etcd:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ etcd configures the etcd component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ Note: etcd supports fewer log levels than klog-based components,
+ etcd supports only Normal and Debug log levels.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ x-kubernetes-validations:
+ - message: etcd only supports Normal and Debug log levels; Trace
+ and TraceAll are not valid for etcd
+ rule: '!has(self.logLevel) || self.logLevel in [''Normal'',
+ ''Debug'']'
ingressOperator:
description: |-
ingressOperator specifies the configuration for the Ingress Operator in the hosted cluster.
@@ -5461,6 +5497,216 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
+ kubeAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeAPIServer configures the kube-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeControllerManager configures the kube-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeScheduler:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeScheduler configures the kube-scheduler component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ oauthServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ oauthServer configures the oauth-server component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftAPIServer configures the openshift-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftControllerManager configures the openshift-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftOAuthAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
type: object
pausedUntil:
description: |-
diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml
index d77580f94285..882569728ec1 100644
--- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml
+++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-CustomNoUpgrade.crd.yaml
@@ -5491,13 +5491,49 @@ spec:
Valid values are: "Normal", "Debug", "Trace", "TraceAll".
Defaults to "Normal".
enum:
- - ""
- Normal
- Debug
- Trace
- TraceAll
type: string
type: object
+ etcd:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ etcd configures the etcd component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ Note: etcd supports fewer log levels than klog-based components,
+ etcd supports only Normal and Debug log levels.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ x-kubernetes-validations:
+ - message: etcd only supports Normal and Debug log levels; Trace
+ and TraceAll are not valid for etcd
+ rule: '!has(self.logLevel) || self.logLevel in [''Normal'',
+ ''Debug'']'
ingressOperator:
description: |-
ingressOperator specifies the configuration for the Ingress Operator in the hosted cluster.
@@ -6224,6 +6260,216 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
+ kubeAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeAPIServer configures the kube-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeControllerManager configures the kube-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeScheduler:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeScheduler configures the kube-scheduler component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ oauthServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ oauthServer configures the oauth-server component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftAPIServer configures the openshift-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftControllerManager configures the openshift-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftOAuthAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
type: object
pausedUntil:
description: |-
diff --git a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml
index fd936a4f3367..b919d5c145e9 100644
--- a/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml
+++ b/cmd/install/assets/crds/hypershift-operator/zz_generated.crd-manifests/hostedcontrolplanes-Hypershift-TechPreviewNoUpgrade.crd.yaml
@@ -4613,13 +4613,49 @@ spec:
Valid values are: "Normal", "Debug", "Trace", "TraceAll".
Defaults to "Normal".
enum:
- - ""
- Normal
- Debug
- Trace
- TraceAll
type: string
type: object
+ etcd:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ etcd configures the etcd component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ Note: etcd supports fewer log levels than klog-based components,
+ etcd supports only Normal and Debug log levels.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ x-kubernetes-validations:
+ - message: etcd only supports Normal and Debug log levels; Trace
+ and TraceAll are not valid for etcd
+ rule: '!has(self.logLevel) || self.logLevel in [''Normal'',
+ ''Debug'']'
ingressOperator:
description: |-
ingressOperator specifies the configuration for the Ingress Operator in the hosted cluster.
@@ -5346,6 +5382,216 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
+ kubeAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeAPIServer configures the kube-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeControllerManager configures the kube-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ kubeScheduler:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ kubeScheduler configures the kube-scheduler component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ oauthServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ oauthServer configures the oauth-server component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftAPIServer configures the openshift-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftControllerManager:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftControllerManager configures the openshift-controller-manager component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
+ openShiftOAuthAPIServer:
+ allOf:
+ - minProperties: 1
+ - minProperties: 1
+ description: |-
+ openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+ Setting the logLevel field triggers a rolling restart of the component.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ properties:
+ logLevel:
+ description: |-
+ logLevel sets the log verbosity for the component.
+ Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ When set to Normal, standard operational log messages are produced for auditing and common operations.
+ When set to Debug, more verbose logging is enabled for diagnosing problems.
+ When set to Trace, very verbose logging is enabled including function-level tracing.
+ When set to TraceAll, the most verbose logging is used, including full API body content,
+ this can cause significant performance impact and produce large volumes of logs.
+ When omitted, this means the user has no opinion and the platform
+ chooses a reasonable default, which is subject to change over time.
+ The current default log level is Normal.
+ enum:
+ - Normal
+ - Debug
+ - Trace
+ - TraceAll
+ type: string
+ type: object
type: object
pausedUntil:
description: |-
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/AROSwift/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/AROSwift/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
index 887fd53e9257..1305297d7c3f 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/AROSwift/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/AROSwift/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 4bcd8dd5b1ada207b56fa8b52351b0280d609bc9bf99afea1bf6f7b74d2561da
+ hypershift.openshift.io/desired-state-hash: 8539d6edaeac16b94bc9f8c288adf1c05d3a9fe50df4bfe7528b9703121f763f
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: etcd
@@ -142,6 +142,8 @@ spec:
value: TLS1.2
- name: ETCD_CIPHER_SUITES
value: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - name: ETCD_LOG_LEVEL
+ value: info
image: etcd
imagePullPolicy: IfNotPresent
livenessProbe:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/GCP/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/GCP/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
index 0faa252b031c..9586f5451cf7 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/GCP/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/GCP/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 08dd594f94c6bc2b581c4ba553f1a435b60c0cdb8c373c84c7827bb4a8446fd4
+ hypershift.openshift.io/desired-state-hash: 2d905f13d75d245f3d41bb5a3b3b3f473381589a4b8ba60dfe93c50bf58d3271
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: etcd
@@ -142,6 +142,8 @@ spec:
value: TLS1.2
- name: ETCD_CIPHER_SUITES
value: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - name: ETCD_LOG_LEVEL
+ value: info
image: etcd
imagePullPolicy: IfNotPresent
livenessProbe:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/IBMCloud/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/IBMCloud/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
index 887fd53e9257..1305297d7c3f 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/IBMCloud/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/IBMCloud/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 4bcd8dd5b1ada207b56fa8b52351b0280d609bc9bf99afea1bf6f7b74d2561da
+ hypershift.openshift.io/desired-state-hash: 8539d6edaeac16b94bc9f8c288adf1c05d3a9fe50df4bfe7528b9703121f763f
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: etcd
@@ -142,6 +142,8 @@ spec:
value: TLS1.2
- name: ETCD_CIPHER_SUITES
value: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - name: ETCD_LOG_LEVEL
+ value: info
image: etcd
imagePullPolicy: IfNotPresent
livenessProbe:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/ModernTLS/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/ModernTLS/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
index 7bc9758e83b0..8cd3d162de25 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/ModernTLS/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/ModernTLS/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 7682082642290dc5a9785672850020a97150256be9af7345dcc081056acb8819
+ hypershift.openshift.io/desired-state-hash: f2a5d14d32e173f0ee04a93be06a238f343b1f36ba88304d0fd7d6d45af04b09
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: etcd
@@ -140,6 +140,8 @@ spec:
value: etcd-0=https://etcd-0.etcd-discovery.hcp-namespace.svc:2380,etcd-1=https://etcd-1.etcd-discovery.hcp-namespace.svc:2380,etcd-2=https://etcd-2.etcd-discovery.hcp-namespace.svc:2380
- name: ETCD_TLS_MIN_VERSION
value: TLS1.3
+ - name: ETCD_LOG_LEVEL
+ value: info
image: etcd
imagePullPolicy: IfNotPresent
livenessProbe:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
index 887fd53e9257..1305297d7c3f 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 4bcd8dd5b1ada207b56fa8b52351b0280d609bc9bf99afea1bf6f7b74d2561da
+ hypershift.openshift.io/desired-state-hash: 8539d6edaeac16b94bc9f8c288adf1c05d3a9fe50df4bfe7528b9703121f763f
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: etcd
@@ -142,6 +142,8 @@ spec:
value: TLS1.2
- name: ETCD_CIPHER_SUITES
value: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - name: ETCD_LOG_LEVEL
+ value: info
image: etcd
imagePullPolicy: IfNotPresent
livenessProbe:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
index 887fd53e9257..1305297d7c3f 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/etcd/zz_fixture_TestControlPlaneComponents_etcd_statefulset.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 4bcd8dd5b1ada207b56fa8b52351b0280d609bc9bf99afea1bf6f7b74d2561da
+ hypershift.openshift.io/desired-state-hash: 8539d6edaeac16b94bc9f8c288adf1c05d3a9fe50df4bfe7528b9703121f763f
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: etcd
@@ -142,6 +142,8 @@ spec:
value: TLS1.2
- name: ETCD_CIPHER_SUITES
value: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - name: ETCD_LOG_LEVEL
+ value: info
image: etcd
imagePullPolicy: IfNotPresent
livenessProbe:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/AROSwift/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/AROSwift/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
index 277c269bfdae..a5456854f8fb 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/AROSwift/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/AROSwift/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 735db50ba6ffc2b5cf7b00c8466df082a2e0046c43c5f454ab5eb4e823927748
+ hypershift.openshift.io/desired-state-hash: b4eaaff0ddadce4341e9665fb6fdc57cfee49c9f33e45f92052cc25aa502f08b
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-controller-manager
@@ -110,6 +110,7 @@ spec:
- --tls-private-key-file=/etc/kubernetes/certs/server/tls.key
- --terminated-pod-gc-threshold=1000
- --concurrent-gc-syncs=5
+ - --v=2
- --cluster-cidr=10.132.0.0/14
- --service-cluster-ip-range=
- --cloud-provider=external
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/GCP/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/GCP/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
index b622135580e2..a2a85bad6ff4 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/GCP/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/GCP/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: c52785cee0ebe0a35e632f709e11138d41d76f695b838e83cae036db451d4321
+ hypershift.openshift.io/desired-state-hash: 5ae771fbf24ece3a52e0b04667aa40f34d5250ad74011d7ce9acad5282ad7eac
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-controller-manager
@@ -110,6 +110,7 @@ spec:
- --tls-private-key-file=/etc/kubernetes/certs/server/tls.key
- --terminated-pod-gc-threshold=1000
- --concurrent-gc-syncs=5
+ - --v=2
- --cluster-cidr=10.132.0.0/14
- --service-cluster-ip-range=
- --allocate-node-cidrs=false
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/IBMCloud/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/IBMCloud/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
index 09a6379a10c7..d3b97b45bb1f 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/IBMCloud/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/IBMCloud/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 064017aa5eff4cc9448098ec061ad529c06b7951c19d342f9d3c7f005aa1346f
+ hypershift.openshift.io/desired-state-hash: b628bb02434b46d50f14f07dcc3bb9355ca150ef55995a7498e862f3e1a5e6ca
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-controller-manager
@@ -110,6 +110,7 @@ spec:
- --tls-private-key-file=/etc/kubernetes/certs/server/tls.key
- --terminated-pod-gc-threshold=1000
- --concurrent-gc-syncs=5
+ - --v=2
- --cluster-cidr=10.132.0.0/14
- --service-cluster-ip-range=
- --allocate-node-cidrs=false
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/ModernTLS/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/ModernTLS/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
index b755d8861315..a48532ee2138 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/ModernTLS/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/ModernTLS/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: e2453ad3e44e81368e051320319fc1bac0c380d3f295815a4af7455c2d8afa86
+ hypershift.openshift.io/desired-state-hash: a33d8f8397fe193005151a0898be481e62e42b578ddab540a134275ccb881a8d
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-controller-manager
@@ -110,6 +110,7 @@ spec:
- --tls-private-key-file=/etc/kubernetes/certs/server/tls.key
- --terminated-pod-gc-threshold=1000
- --concurrent-gc-syncs=5
+ - --v=2
- --cluster-cidr=10.132.0.0/14
- --service-cluster-ip-range=
- --allocate-node-cidrs=false
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
index dfa15a163c8e..70b3c88378c2 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: fa0843d061d97a8522485e0e796689a7326ae87d585d468e3203d55b11d428f9
+ hypershift.openshift.io/desired-state-hash: 37534c31eb9e222304e6b3bcfd23c3acc01d45340175ec5d155781fffc2a5f54
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-controller-manager
@@ -110,6 +110,7 @@ spec:
- --tls-private-key-file=/etc/kubernetes/certs/server/tls.key
- --terminated-pod-gc-threshold=1000
- --concurrent-gc-syncs=5
+ - --v=2
- --cluster-cidr=10.132.0.0/14
- --service-cluster-ip-range=
- --allocate-node-cidrs=false
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
index 928766f61384..e71f00755881 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-controller-manager/zz_fixture_TestControlPlaneComponents_kube_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 5dcd9cdd4612c560be76102e34018a691b3813fceb2d67264e46bd79d1d5becc
+ hypershift.openshift.io/desired-state-hash: a30d39e22a02898e02ca48b937642e50557a8c4d98464475f220a82c0b713ebe
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-controller-manager
@@ -110,6 +110,7 @@ spec:
- --tls-private-key-file=/etc/kubernetes/certs/server/tls.key
- --terminated-pod-gc-threshold=1000
- --concurrent-gc-syncs=5
+ - --v=2
- --cluster-cidr=10.132.0.0/14
- --service-cluster-ip-range=
- --allocate-node-cidrs=false
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/AROSwift/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/AROSwift/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
index bbb0a6624333..04432284c127 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/AROSwift/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/AROSwift/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 8484b582e67fa04954af2f0d6d8d12c0453664a1f4995872243d165a4a5e9dd2
+ hypershift.openshift.io/desired-state-hash: 2e6c348ff4f9c3a1852f8fe757a442f8393593dfd8abff45e90ef5773fdf86a3
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-scheduler
@@ -85,7 +85,6 @@ spec:
- --secure-port=10259
- --authentication-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- --authorization-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- - -v=2
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
- --feature-gates=AWSEFSDriverVolumeMetrics=true
@@ -186,6 +185,7 @@ spec:
- --feature-gates=VSphereMultiNetworks=false
- --feature-gates=VolumeAttributesClass=false
- --feature-gates=VolumeGroupSnapshot=false
+ - --v=2
command:
- hyperkube
- kube-scheduler
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/GCP/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/GCP/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
index 0e0367a6e245..c3b569c100f0 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/GCP/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/GCP/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 419ad99c8d2bab2dfce727b666e60961838b6d23b64eca923046a470b7a02c18
+ hypershift.openshift.io/desired-state-hash: a0f532a8254ecb8d09f1a3eb9efcccf398770fd63218fb2bdd67469d9eb06ab4
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-scheduler
@@ -85,7 +85,6 @@ spec:
- --secure-port=10259
- --authentication-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- --authorization-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- - -v=2
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
- --feature-gates=AWSEFSDriverVolumeMetrics=true
@@ -185,6 +184,7 @@ spec:
- --feature-gates=VSphereMultiNetworks=false
- --feature-gates=VolumeAttributesClass=false
- --feature-gates=VolumeGroupSnapshot=false
+ - --v=2
command:
- hyperkube
- kube-scheduler
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/IBMCloud/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/IBMCloud/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
index 1fb18196c1cc..83106512890e 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/IBMCloud/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/IBMCloud/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 141e8559d837b853f1a4203a6b68e1e1d65263612a65fc18cb017a74558f9d88
+ hypershift.openshift.io/desired-state-hash: d89e1596317150a7427de7468cc40b0f149224a55549a7cfacdd01b4bbb67635
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-scheduler
@@ -85,7 +85,6 @@ spec:
- --secure-port=10259
- --authentication-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- --authorization-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- - -v=2
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
- --feature-gates=AWSEFSDriverVolumeMetrics=true
@@ -186,6 +185,7 @@ spec:
- --feature-gates=VSphereMultiNetworks=false
- --feature-gates=VolumeAttributesClass=false
- --feature-gates=VolumeGroupSnapshot=false
+ - --v=2
command:
- hyperkube
- kube-scheduler
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/ModernTLS/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/ModernTLS/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
index c2332d8ff33a..e567cf1c663b 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/ModernTLS/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/ModernTLS/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 00a8d1ed31706e591d64aa18d4ea77c51f12dcb8c6c1adfc730a9e89d2bd644e
+ hypershift.openshift.io/desired-state-hash: 32669155afffb5c8b7a52cccf3cbcff1155809ff7b2351147015f3e5703c57a7
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-scheduler
@@ -85,7 +85,6 @@ spec:
- --secure-port=10259
- --authentication-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- --authorization-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- - -v=2
- --tls-min-version=VersionTLS13
- --feature-gates=AWSEFSDriverVolumeMetrics=true
- --feature-gates=AdditionalRoutingCapabilities=true
@@ -185,6 +184,7 @@ spec:
- --feature-gates=VSphereMultiNetworks=false
- --feature-gates=VolumeAttributesClass=false
- --feature-gates=VolumeGroupSnapshot=false
+ - --v=2
command:
- hyperkube
- kube-scheduler
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
index 82542d8ab033..b9259278b819 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: d04f06a8d922118cb22a9edcfad4502feff2a053fbd791ef031f6cc85af9a2c6
+ hypershift.openshift.io/desired-state-hash: ebcb2641b2f5a5860514ec2279491b3cff77a49f893574cb4f4fad09e3b2a059
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-scheduler
@@ -85,7 +85,6 @@ spec:
- --secure-port=10259
- --authentication-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- --authorization-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- - -v=2
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
- --feature-gates=AWSEFSDriverVolumeMetrics=true
@@ -185,6 +184,7 @@ spec:
- --feature-gates=VSphereMultiNetworks=false
- --feature-gates=VolumeAttributesClass=false
- --feature-gates=VolumeGroupSnapshot=false
+ - --v=2
command:
- hyperkube
- kube-scheduler
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
index bbb0a6624333..04432284c127 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/kube-scheduler/zz_fixture_TestControlPlaneComponents_kube_scheduler_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 8484b582e67fa04954af2f0d6d8d12c0453664a1f4995872243d165a4a5e9dd2
+ hypershift.openshift.io/desired-state-hash: 2e6c348ff4f9c3a1852f8fe757a442f8393593dfd8abff45e90ef5773fdf86a3
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: kube-scheduler
@@ -85,7 +85,6 @@ spec:
- --secure-port=10259
- --authentication-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- --authorization-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- - -v=2
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
- --feature-gates=AWSEFSDriverVolumeMetrics=true
@@ -186,6 +185,7 @@ spec:
- --feature-gates=VSphereMultiNetworks=false
- --feature-gates=VolumeAttributesClass=false
- --feature-gates=VolumeGroupSnapshot=false
+ - --v=2
command:
- hyperkube
- kube-scheduler
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/AROSwift/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/AROSwift/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
index 4b0915b916a8..3663b23576d8 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/AROSwift/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/AROSwift/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 712327b4062a1792c31620f1cd42fd90c0e214cc42e75f82b9afe6aa32f256c8
+ hypershift.openshift.io/desired-state-hash: b0701782a082096ad9650bc4abeb74782a397178aa781d5dc5a908994bb1d64f
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: oauth-openshift
@@ -89,6 +89,7 @@ spec:
- --audit-log-maxsize=10
- --audit-log-path=/var/run/kubernetes/audit.log
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8092
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/GCP/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/GCP/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
index 309c1f91df7b..529d545cab38 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/GCP/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/GCP/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 75c3b5d89dacd96470083900bf97acc49dfc9e0f20ef786343547dfe132d6c49
+ hypershift.openshift.io/desired-state-hash: d69c21759ea1a20a5ba6a617e388ba2c5857b36cd49d3220bb9dddcffc5b3090
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: oauth-openshift
@@ -89,6 +89,7 @@ spec:
- --audit-log-maxsize=10
- --audit-log-path=/var/run/kubernetes/audit.log
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8092
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/IBMCloud/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/IBMCloud/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
index 65a29f7790d1..001314034531 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/IBMCloud/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/IBMCloud/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 0d7734ceb94860de0a00c9f4ce4f93dfa4ba13222e2789f6578efa5bdaf853d8
+ hypershift.openshift.io/desired-state-hash: d12ae4f46783f621c5ab66cae963ab8833c2b8537a65d64470073f841e1ee20c
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: oauth-openshift
@@ -89,6 +89,7 @@ spec:
- --audit-log-maxsize=10
- --audit-log-path=/var/run/kubernetes/audit.log
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8092
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/ModernTLS/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/ModernTLS/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
index 6d7b2bcb7e07..37271797f75f 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/ModernTLS/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/ModernTLS/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 3db0e1e51777f6e54c81986405a87d9b8044350590933cc106efb63e45365f90
+ hypershift.openshift.io/desired-state-hash: 307da74b39266f84df22f435dde3217cf67743a9b6103c13a8c94696dc8c9acf
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: oauth-openshift
@@ -89,6 +89,7 @@ spec:
- --audit-log-maxsize=10
- --audit-log-path=/var/run/kubernetes/audit.log
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8092
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
index 4b0915b916a8..3663b23576d8 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 712327b4062a1792c31620f1cd42fd90c0e214cc42e75f82b9afe6aa32f256c8
+ hypershift.openshift.io/desired-state-hash: b0701782a082096ad9650bc4abeb74782a397178aa781d5dc5a908994bb1d64f
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: oauth-openshift
@@ -89,6 +89,7 @@ spec:
- --audit-log-maxsize=10
- --audit-log-path=/var/run/kubernetes/audit.log
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8092
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
index 4b0915b916a8..3663b23576d8 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/oauth-openshift/zz_fixture_TestControlPlaneComponents_oauth_openshift_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 712327b4062a1792c31620f1cd42fd90c0e214cc42e75f82b9afe6aa32f256c8
+ hypershift.openshift.io/desired-state-hash: b0701782a082096ad9650bc4abeb74782a397178aa781d5dc5a908994bb1d64f
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: oauth-openshift
@@ -89,6 +89,7 @@ spec:
- --audit-log-maxsize=10
- --audit-log-path=/var/run/kubernetes/audit.log
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8092
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
index e9f8c3be126d..8d92673391ae 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: f9e91c4e722c3828cedcb10e93b1a6232d7d1f91617c4a0e16fd05e70199b9bf
+ hypershift.openshift.io/desired-state-hash: 5bb2b4289933b94c0ee664f06c78103e08b4799a1a4fc4f6d36e398f6209e965
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-apiserver
@@ -89,6 +89,7 @@ spec:
- --requestheader-group-headers=X-Remote-Group
- --requestheader-extra-headers-prefix=X-Remote-Extra-
- --client-ca-file=/etc/kubernetes/certs/client-ca/ca.crt
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8090
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/GCP/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/GCP/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
index 1fc60e11511c..4bbd14ec53db 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/GCP/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/GCP/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 67a55799453d0db21bc806c6421400ce35281c13633e36605a3103db50f19ba5
+ hypershift.openshift.io/desired-state-hash: 706eb25ea887a11a643d2de15d55d833d4d2d5b48c7a19ee50edb40b36337387
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-apiserver
@@ -89,6 +89,7 @@ spec:
- --requestheader-group-headers=X-Remote-Group
- --requestheader-extra-headers-prefix=X-Remote-Extra-
- --client-ca-file=/etc/kubernetes/certs/client-ca/ca.crt
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8090
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
index 1d8621572c44..fe179fe893a0 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: b1a01666eb335fd1aaca82d5d47e2980c5300cdb7f0edc28bd1b9b1fdf8f2413
+ hypershift.openshift.io/desired-state-hash: d197e2a2f7ce10bc83df288b909872d75b6c74ac4d725f18594ebcb699fdf636
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-apiserver
@@ -89,6 +89,7 @@ spec:
- --requestheader-group-headers=X-Remote-Group
- --requestheader-extra-headers-prefix=X-Remote-Extra-
- --client-ca-file=/etc/kubernetes/certs/client-ca/ca.crt
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8090
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
index 2d6af9a03749..d7dc797695be 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: f6b8c103dbbebfed12567046813a86296e6002f1875e5ac3a00184db2073f572
+ hypershift.openshift.io/desired-state-hash: 6ed6c4d60ead405323f9a0610afe1c5e4a2f5a840f2ad726c6344f0479adc809
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-apiserver
@@ -89,6 +89,7 @@ spec:
- --requestheader-group-headers=X-Remote-Group
- --requestheader-extra-headers-prefix=X-Remote-Extra-
- --client-ca-file=/etc/kubernetes/certs/client-ca/ca.crt
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8090
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
index b8a46522978c..de620d868ef0 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: d6a0f42814688537b0e03bc99673597b6d9d3204ae452d087bd3d61f457f51f7
+ hypershift.openshift.io/desired-state-hash: 649d186c3a9233eb7c82356ff4cd250285c1ca5e86d41c4002d267c576c63d0e
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-apiserver
@@ -89,6 +89,7 @@ spec:
- --requestheader-group-headers=X-Remote-Group
- --requestheader-extra-headers-prefix=X-Remote-Extra-
- --client-ca-file=/etc/kubernetes/certs/client-ca/ca.crt
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8090
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
index e9f8c3be126d..8d92673391ae 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-apiserver/zz_fixture_TestControlPlaneComponents_openshift_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: f9e91c4e722c3828cedcb10e93b1a6232d7d1f91617c4a0e16fd05e70199b9bf
+ hypershift.openshift.io/desired-state-hash: 5bb2b4289933b94c0ee664f06c78103e08b4799a1a4fc4f6d36e398f6209e965
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-apiserver
@@ -89,6 +89,7 @@ spec:
- --requestheader-group-headers=X-Remote-Group
- --requestheader-extra-headers-prefix=X-Remote-Extra-
- --client-ca-file=/etc/kubernetes/certs/client-ca/ca.crt
+ - --v=2
env:
- name: HTTP_PROXY
value: http://127.0.0.1:8090
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
index 346144a15a23..efc4371631e5 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 34d9feddbb832d4e9c769a2e01289afcfd318e541ea88865dd9dae7e9ec5f49c
+ hypershift.openshift.io/desired-state-hash: ad91e270afe4214b8672a51b7be0c6904d40bc06c70fb3de4f7dd03875aa416a
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-controller-manager
@@ -85,6 +85,7 @@ spec:
- --kubeconfig
- /etc/kubernetes/secrets/svc-kubeconfig/kubeconfig
- --namespace=openshift-controller-manager
+ - --v=2
command:
- openshift-controller-manager
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/GCP/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/GCP/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
index b20c095e5249..f40fdbdf90b5 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/GCP/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/GCP/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 32595d34c01c7ead55cf0b0f4ee589a839e745879763f03eb461d9e140f8e20f
+ hypershift.openshift.io/desired-state-hash: 668cff5b8f88501e801a1637273e6e40243e1afd3898cf622c1c87267f1ae88a
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-controller-manager
@@ -85,6 +85,7 @@ spec:
- --kubeconfig
- /etc/kubernetes/secrets/svc-kubeconfig/kubeconfig
- --namespace=openshift-controller-manager
+ - --v=2
command:
- openshift-controller-manager
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
index 346144a15a23..efc4371631e5 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 34d9feddbb832d4e9c769a2e01289afcfd318e541ea88865dd9dae7e9ec5f49c
+ hypershift.openshift.io/desired-state-hash: ad91e270afe4214b8672a51b7be0c6904d40bc06c70fb3de4f7dd03875aa416a
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-controller-manager
@@ -85,6 +85,7 @@ spec:
- --kubeconfig
- /etc/kubernetes/secrets/svc-kubeconfig/kubeconfig
- --namespace=openshift-controller-manager
+ - --v=2
command:
- openshift-controller-manager
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
index e5ecb3dd5fd7..bc0a965ae390 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: bdfd74665782070344e13da736fc4c1005ca32da5dceafa8cd9c2988e91d36d8
+ hypershift.openshift.io/desired-state-hash: 1c75ef7982e507032a0e02cc8e057c4612c432647b31b613c00864086c05ab0f
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-controller-manager
@@ -85,6 +85,7 @@ spec:
- --kubeconfig
- /etc/kubernetes/secrets/svc-kubeconfig/kubeconfig
- --namespace=openshift-controller-manager
+ - --v=2
command:
- openshift-controller-manager
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
index d20efbb6f87b..170dcce7613d 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 74af5f34a1e80f63d2540159cb69d30e94890fbfe972e9e80a5fa30f90622d20
+ hypershift.openshift.io/desired-state-hash: 3f297ee0b9492550fe64f0cba2c41c982efe18cb28dfc4576909b2ddf00827fd
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-controller-manager
@@ -85,6 +85,7 @@ spec:
- --kubeconfig
- /etc/kubernetes/secrets/svc-kubeconfig/kubeconfig
- --namespace=openshift-controller-manager
+ - --v=2
command:
- openshift-controller-manager
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
index 346144a15a23..efc4371631e5 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-controller-manager/zz_fixture_TestControlPlaneComponents_openshift_controller_manager_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 34d9feddbb832d4e9c769a2e01289afcfd318e541ea88865dd9dae7e9ec5f49c
+ hypershift.openshift.io/desired-state-hash: ad91e270afe4214b8672a51b7be0c6904d40bc06c70fb3de4f7dd03875aa416a
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-controller-manager
@@ -85,6 +85,7 @@ spec:
- --kubeconfig
- /etc/kubernetes/secrets/svc-kubeconfig/kubeconfig
- --namespace=openshift-controller-manager
+ - --v=2
command:
- openshift-controller-manager
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
index 8ce0b67dac69..7fec379e5536 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/AROSwift/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 84f5cf3d05f378f7afa66b68bc42503dcab3148ea4908b381bfa7346ecf2721d
+ hypershift.openshift.io/desired-state-hash: b07ebfe4cda81b8df911b438a1d0528bcf7df8a72e0873c3eb1b4667bdb34415
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-oauth-apiserver
@@ -97,7 +97,6 @@ spec:
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
- --cors-allowed-origins='//127\.0\.0\.1(:|$)'
- --cors-allowed-origins='//localhost(:|$)'
- - --v=2
- --requestheader-client-ca-file=/etc/kubernetes/certs/aggregator-client-ca/ca.crt
- --requestheader-allowed-names=kube-apiserver-proxy,system:kube-apiserver-proxy,system:openshift-aggregator
- --requestheader-username-headers=X-Remote-User
@@ -108,6 +107,7 @@ spec:
- --etcd-servers=https://etcd-client:2379
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - --v=2
command:
- /usr/bin/oauth-apiserver
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/GCP/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/GCP/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
index f827da114c15..a5732ce54158 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/GCP/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/GCP/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: cfbd1dc1c356cd8e0254e016fca3f7ae8027fa05404f51d6a7140e4b4069c21d
+ hypershift.openshift.io/desired-state-hash: 14f6347300f57417dcbae29133d02d5aa413d6f9f27baf704c1c7703d3e6d423
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-oauth-apiserver
@@ -97,7 +97,6 @@ spec:
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
- --cors-allowed-origins='//127\.0\.0\.1(:|$)'
- --cors-allowed-origins='//localhost(:|$)'
- - --v=2
- --requestheader-client-ca-file=/etc/kubernetes/certs/aggregator-client-ca/ca.crt
- --requestheader-allowed-names=kube-apiserver-proxy,system:kube-apiserver-proxy,system:openshift-aggregator
- --requestheader-username-headers=X-Remote-User
@@ -108,6 +107,7 @@ spec:
- --etcd-servers=https://etcd-client:2379
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - --v=2
command:
- /usr/bin/oauth-apiserver
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
index 2a82d3ae6734..8d82f517365b 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/IBMCloud/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 1f7a869189567df1391f23c77db0d649fec1e2ca58bdc080e3a4a6a833aa7df6
+ hypershift.openshift.io/desired-state-hash: 8b18e826f0a0ae64effb6c98a634e8764aaa159a33c9a193368e022467f840ff
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-oauth-apiserver
@@ -97,7 +97,6 @@ spec:
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
- --cors-allowed-origins='//127\.0\.0\.1(:|$)'
- --cors-allowed-origins='//localhost(:|$)'
- - --v=2
- --requestheader-client-ca-file=/etc/kubernetes/certs/aggregator-client-ca/ca.crt
- --requestheader-allowed-names=kube-apiserver-proxy,system:kube-apiserver-proxy,system:openshift-aggregator
- --requestheader-username-headers=X-Remote-User
@@ -108,6 +107,7 @@ spec:
- --etcd-servers=https://etcd-client:2379
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - --v=2
command:
- /usr/bin/oauth-apiserver
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
index c4a824a5eca8..cf5ff2f21b32 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/ModernTLS/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 68e309c7c4649820fa1bd628e787aa704e39e235ce1c4521a1c3c0fd370a1789
+ hypershift.openshift.io/desired-state-hash: efe510ea0cd60be72b693b567e06b004c4484078f7f96b8a2f2d5ccb4069e4b2
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-oauth-apiserver
@@ -97,7 +97,6 @@ spec:
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
- --cors-allowed-origins='//127\.0\.0\.1(:|$)'
- --cors-allowed-origins='//localhost(:|$)'
- - --v=2
- --requestheader-client-ca-file=/etc/kubernetes/certs/aggregator-client-ca/ca.crt
- --requestheader-allowed-names=kube-apiserver-proxy,system:kube-apiserver-proxy,system:openshift-aggregator
- --requestheader-username-headers=X-Remote-User
@@ -107,6 +106,7 @@ spec:
- --api-audiences=https://test-oidc-bucket.s3.us-east-1.amazonaws.com/test-cluster
- --etcd-servers=https://etcd-client:2379
- --tls-min-version=VersionTLS13
+ - --v=2
command:
- /usr/bin/oauth-apiserver
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
index 8ce0b67dac69..7fec379e5536 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/TechPreviewNoUpgrade/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 84f5cf3d05f378f7afa66b68bc42503dcab3148ea4908b381bfa7346ecf2721d
+ hypershift.openshift.io/desired-state-hash: b07ebfe4cda81b8df911b438a1d0528bcf7df8a72e0873c3eb1b4667bdb34415
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-oauth-apiserver
@@ -97,7 +97,6 @@ spec:
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
- --cors-allowed-origins='//127\.0\.0\.1(:|$)'
- --cors-allowed-origins='//localhost(:|$)'
- - --v=2
- --requestheader-client-ca-file=/etc/kubernetes/certs/aggregator-client-ca/ca.crt
- --requestheader-allowed-names=kube-apiserver-proxy,system:kube-apiserver-proxy,system:openshift-aggregator
- --requestheader-username-headers=X-Remote-User
@@ -108,6 +107,7 @@ spec:
- --etcd-servers=https://etcd-client:2379
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - --v=2
command:
- /usr/bin/oauth-apiserver
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
index 8ce0b67dac69..7fec379e5536 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/testdata/openshift-oauth-apiserver/zz_fixture_TestControlPlaneComponents_openshift_oauth_apiserver_deployment.yaml
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
- hypershift.openshift.io/desired-state-hash: 84f5cf3d05f378f7afa66b68bc42503dcab3148ea4908b381bfa7346ecf2721d
+ hypershift.openshift.io/desired-state-hash: b07ebfe4cda81b8df911b438a1d0528bcf7df8a72e0873c3eb1b4667bdb34415
labels:
hypershift.openshift.io/managed-by: control-plane-operator
name: openshift-oauth-apiserver
@@ -97,7 +97,6 @@ spec:
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
- --cors-allowed-origins='//127\.0\.0\.1(:|$)'
- --cors-allowed-origins='//localhost(:|$)'
- - --v=2
- --requestheader-client-ca-file=/etc/kubernetes/certs/aggregator-client-ca/ca.crt
- --requestheader-allowed-names=kube-apiserver-proxy,system:kube-apiserver-proxy,system:openshift-aggregator
- --requestheader-username-headers=X-Remote-User
@@ -108,6 +107,7 @@ spec:
- --etcd-servers=https://etcd-client:2379
- --tls-min-version=VersionTLS12
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
+ - --v=2
command:
- /usr/bin/oauth-apiserver
env:
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/assets/kube-scheduler/deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/v2/assets/kube-scheduler/deployment.yaml
index 6a189ad95063..ad13568bd984 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/assets/kube-scheduler/deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/assets/kube-scheduler/deployment.yaml
@@ -25,7 +25,6 @@ spec:
- --secure-port=10259
- --authentication-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- --authorization-kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig
- - -v=2
command:
- hyperkube
- kube-scheduler
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/assets/openshift-oauth-apiserver/deployment.yaml b/control-plane-operator/controllers/hostedcontrolplane/v2/assets/openshift-oauth-apiserver/deployment.yaml
index cf2afd1d1b8a..47d8e04e662e 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/assets/openshift-oauth-apiserver/deployment.yaml
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/assets/openshift-oauth-apiserver/deployment.yaml
@@ -38,7 +38,6 @@ spec:
- --audit-policy-file=/etc/kubernetes/audit-config/policy.yaml
- --cors-allowed-origins='//127\.0\.0\.1(:|$)'
- --cors-allowed-origins='//localhost(:|$)'
- - --v=2
- --requestheader-client-ca-file=/etc/kubernetes/certs/aggregator-client-ca/ca.crt
- --requestheader-allowed-names=kube-apiserver-proxy,system:kube-apiserver-proxy,system:openshift-aggregator
- --requestheader-username-headers=X-Remote-User
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/etcd/etcd_test.go b/control-plane-operator/controllers/hostedcontrolplane/v2/etcd/etcd_test.go
index 182c2369c094..bf67df68258d 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/etcd/etcd_test.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/etcd/etcd_test.go
@@ -142,6 +142,128 @@ func TestBuildEtcdDefragControllerContainer(t *testing.T) {
}
}
+func TestAdaptStatefulSetEtcdLogLevel(t *testing.T) {
+ t.Parallel()
+
+ logLevel := func(l hyperv1.LogLevel) hyperv1.EtcdOperatorSpec {
+ return hyperv1.EtcdOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: l},
+ }
+ }
+
+ findEnvVar := func(envs []corev1.EnvVar, name string) *corev1.EnvVar {
+ for i := range envs {
+ if envs[i].Name == name {
+ return &envs[i]
+ }
+ }
+ return nil
+ }
+
+ testCases := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expectedValue string
+ }{
+ {
+ name: "When LogLevel is nil it should default ETCD_LOG_LEVEL to info",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ Etcd: hyperv1.EtcdSpec{ManagementType: hyperv1.Managed},
+ Networking: hyperv1.ClusterNetworking{
+ ClusterNetwork: []hyperv1.ClusterNetworkEntry{{CIDR: *ipnet.MustParseCIDR("10.0.0.0/8")}},
+ },
+ },
+ },
+ expectedValue: "info",
+ },
+ {
+ name: "When operatorConfiguration exists but Etcd is zero value it should default ETCD_LOG_LEVEL to info",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{},
+ Etcd: hyperv1.EtcdSpec{ManagementType: hyperv1.Managed},
+ Networking: hyperv1.ClusterNetworking{
+ ClusterNetwork: []hyperv1.ClusterNetworkEntry{{CIDR: *ipnet.MustParseCIDR("10.0.0.0/8")}},
+ },
+ },
+ },
+ expectedValue: "info",
+ },
+ {
+ name: "When LogLevel is Normal it should set ETCD_LOG_LEVEL to info",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ Etcd: logLevel(hyperv1.Normal),
+ },
+ Etcd: hyperv1.EtcdSpec{ManagementType: hyperv1.Managed},
+ Networking: hyperv1.ClusterNetworking{
+ ClusterNetwork: []hyperv1.ClusterNetworkEntry{{CIDR: *ipnet.MustParseCIDR("10.0.0.0/8")}},
+ },
+ },
+ },
+ expectedValue: "info",
+ },
+ {
+ name: "When LogLevel is Debug it should set ETCD_LOG_LEVEL to debug",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ Etcd: logLevel(hyperv1.Debug),
+ },
+ Etcd: hyperv1.EtcdSpec{ManagementType: hyperv1.Managed},
+ Networking: hyperv1.ClusterNetworking{
+ ClusterNetwork: []hyperv1.ClusterNetworkEntry{{CIDR: *ipnet.MustParseCIDR("10.0.0.0/8")}},
+ },
+ },
+ },
+ expectedValue: "debug",
+ },
+ }
+
+ for _, tc := range testCases {
+ t.Run(tc.name, func(t *testing.T) {
+ t.Parallel()
+ g := NewWithT(t)
+
+ sts := &appsv1.StatefulSet{
+ Spec: appsv1.StatefulSetSpec{
+ Template: corev1.PodTemplateSpec{
+ Spec: corev1.PodSpec{
+ Containers: []corev1.Container{
+ {Name: ComponentName},
+ },
+ },
+ },
+ VolumeClaimTemplates: []corev1.PersistentVolumeClaim{{}},
+ },
+ }
+
+ cpContext := component.WorkloadContext{
+ Context: t.Context(),
+ HCP: tc.hcp,
+ }
+
+ err := adaptStatefulSet(cpContext, sts)
+ g.Expect(err).ToNot(HaveOccurred())
+
+ var etcdContainer *corev1.Container
+ for i := range sts.Spec.Template.Spec.Containers {
+ if sts.Spec.Template.Spec.Containers[i].Name == ComponentName {
+ etcdContainer = &sts.Spec.Template.Spec.Containers[i]
+ break
+ }
+ }
+ g.Expect(etcdContainer).NotTo(BeNil())
+
+ envVar := findEnvVar(etcdContainer.Env, "ETCD_LOG_LEVEL")
+ g.Expect(envVar).NotTo(BeNil(), "expected ETCD_LOG_LEVEL env var to be set")
+ g.Expect(envVar.Value).To(Equal(tc.expectedValue))
+ })
+ }
+}
+
func TestIsManagedETCD(t *testing.T) {
t.Parallel()
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/etcd/statefulset.go b/control-plane-operator/controllers/hostedcontrolplane/v2/etcd/statefulset.go
index f3a7a5f596cc..fcac26457a01 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/etcd/statefulset.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/etcd/statefulset.go
@@ -11,6 +11,7 @@ import (
component "github.com/openshift/hypershift/support/controlplane-component"
"github.com/openshift/hypershift/support/netutil"
"github.com/openshift/hypershift/support/podspec"
+ util "github.com/openshift/hypershift/support/util"
configv1 "github.com/openshift/api/config/v1"
@@ -100,6 +101,14 @@ func adaptStatefulSet(cpContext component.WorkloadContext, sts *appsv1.StatefulS
Value: "https://[::]:2382",
})
}
+ var etcdLogLevel hyperv1.LogLevel
+ if hcp.Spec.OperatorConfiguration != nil {
+ etcdLogLevel = hcp.Spec.OperatorConfiguration.Etcd.LogLevel
+ }
+ podspec.UpsertEnvVar(c, corev1.EnvVar{
+ Name: "ETCD_LOG_LEVEL",
+ Value: util.LogLevelToEtcdLevel(etcdLogLevel),
+ })
})
podspec.UpdateContainer("etcd-metrics", sts.Spec.Template.Spec.Containers, func(c *corev1.Container) {
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/kas/deployment.go b/control-plane-operator/controllers/hostedcontrolplane/v2/kas/deployment.go
index 9e4c076265da..93ac7e148d72 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/kas/deployment.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/kas/deployment.go
@@ -201,20 +201,32 @@ func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Dep
return nil
}
+func resolveKASVerbosity(hcp *hyperv1.HostedControlPlane) int {
+ // New API field takes precedence
+ var level hyperv1.LogLevel
+ if hcp.Spec.OperatorConfiguration != nil {
+ level = hcp.Spec.OperatorConfiguration.KubeAPIServer.LogLevel
+ }
+ if level != "" {
+ return util.LogLevelToKlogVerbosity(level)
+ }
+
+ // Fallback: deprecated annotation (raw integer)
+ if v := hcp.Annotations[hyperv1.KubeAPIServerVerbosityLevelAnnotation]; v != "" {
+ if parsed, err := strconv.Atoi(v); err == nil {
+ // TODO(CNTRLPLANE-3998): Emit deprecation warning condition on HCP status
+ return parsed
+ }
+ }
+
+ return util.LogLevelToKlogVerbosity(level)
+}
+
func updateMainContainer(podSpec *corev1.PodSpec, hcp *hyperv1.HostedControlPlane) {
podspec.UpdateContainer(ComponentName, podSpec.Containers, func(c *corev1.Container) {
c.Ports[0].ContainerPort = netutil.KASPodPort(hcp)
- kasVerbosityLevel := 2
- if hcp.Annotations[hyperv1.KubeAPIServerVerbosityLevelAnnotation] != "" {
- parsedKASVerbosityValue, err := strconv.Atoi(hcp.Annotations[hyperv1.KubeAPIServerVerbosityLevelAnnotation])
- if err == nil {
- kasVerbosityLevel = parsedKASVerbosityValue
- }
- }
- c.Args = append(c.Args,
- fmt.Sprintf("--v=%d", kasVerbosityLevel),
- )
+ c.Args = append(c.Args, fmt.Sprintf("--v=%d", resolveKASVerbosity(hcp)))
// We have to exempt the pod and service CIDR, otherwise the proxy will get respected by the transport inside
// the egress transport and that breaks the egress selection/konnektivity usage.
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/kas/deployment_test.go b/control-plane-operator/controllers/hostedcontrolplane/v2/kas/deployment_test.go
index a840bdfdf569..6b9a12030c44 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/kas/deployment_test.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/kas/deployment_test.go
@@ -16,8 +16,131 @@ import (
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
+func TestResolveKASVerbosity(t *testing.T) {
+ logLevel := func(l hyperv1.LogLevel) hyperv1.KubeAPIServerOperatorSpec {
+ return hyperv1.KubeAPIServerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: l},
+ }
+ }
+
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected int
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{},
+ },
+ expected: 2,
+ },
+ {
+ name: "When operatorConfiguration exists but kubeAPIServer is nil, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{},
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When kubeAPIServer logLevel is Normal, it should return verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeAPIServer: logLevel(hyperv1.Normal),
+ },
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When kubeAPIServer logLevel is Debug, it should return verbosity 4",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeAPIServer: logLevel(hyperv1.Debug),
+ },
+ },
+ },
+ expected: 4,
+ },
+ {
+ name: "When kubeAPIServer logLevel is Trace, it should return verbosity 6",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeAPIServer: logLevel(hyperv1.Trace),
+ },
+ },
+ },
+ expected: 6,
+ },
+ {
+ name: "When kubeAPIServer logLevel is TraceAll, it should return verbosity 8",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeAPIServer: logLevel(hyperv1.TraceAll),
+ },
+ },
+ },
+ expected: 8,
+ },
+ {
+ name: "When only annotation is set, it should honor the annotation",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{
+ Annotations: map[string]string{
+ hyperv1.KubeAPIServerVerbosityLevelAnnotation: "5",
+ },
+ },
+ Spec: hyperv1.HostedControlPlaneSpec{},
+ },
+ expected: 5,
+ },
+ {
+ name: "When both annotation and API field are set, it should prefer API field",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{
+ Annotations: map[string]string{
+ hyperv1.KubeAPIServerVerbosityLevelAnnotation: "5",
+ },
+ },
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeAPIServer: logLevel(hyperv1.TraceAll),
+ },
+ },
+ },
+ expected: 8,
+ },
+ {
+ name: "When annotation has invalid value, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{
+ Annotations: map[string]string{
+ hyperv1.KubeAPIServerVerbosityLevelAnnotation: "not-a-number",
+ },
+ },
+ Spec: hyperv1.HostedControlPlaneSpec{},
+ },
+ expected: 2,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(resolveKASVerbosity(tt.hcp)).To(Equal(tt.expected))
+ })
+ }
+}
+
// findContainerByNameInPod finds a container by name in a PodSpec and returns a pointer to it.
// Returns nil if the container is not found.
func findContainerByNameInPod(podSpec *corev1.PodSpec, name string) *corev1.Container {
@@ -29,6 +152,62 @@ func findContainerByNameInPod(podSpec *corev1.PodSpec, name string) *corev1.Cont
return nil
}
+func TestAdaptDeploymentKASLogLevel(t *testing.T) {
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected string
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to --v=2",
+ hcp: &hyperv1.HostedControlPlane{},
+ expected: "--v=2",
+ },
+ {
+ name: "When logLevel is Debug, it should set --v=4",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeAPIServer: hyperv1.KubeAPIServerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: hyperv1.Debug},
+ },
+ },
+ },
+ },
+ expected: "--v=4",
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ deployment := &appsv1.Deployment{
+ Spec: appsv1.DeploymentSpec{
+ Template: corev1.PodTemplateSpec{
+ Spec: corev1.PodSpec{
+ Containers: []corev1.Container{
+ {
+ Name: ComponentName,
+ Ports: []corev1.ContainerPort{{ContainerPort: 6443}},
+ },
+ },
+ },
+ },
+ },
+ }
+ cpContext := component.WorkloadContext{
+ HCP: tt.hcp,
+ UserReleaseImageProvider: testutil.FakeImageProvider(),
+ }
+ err := adaptDeployment(cpContext, deployment)
+ g.Expect(err).ToNot(HaveOccurred())
+ container := findContainerByNameInPod(&deployment.Spec.Template.Spec, ComponentName)
+ g.Expect(container).NotTo(BeNil())
+ g.Expect(container.Args).To(ContainElement(tt.expected))
+ })
+ }
+}
+
func TestAddImagePrePullInitContainers(t *testing.T) {
testCases := []struct {
name string
@@ -36,7 +215,7 @@ func TestAddImagePrePullInitContainers(t *testing.T) {
expectedPrePullImages []string
}{
{
- name: "When kube-apiserver container exists it should pre-pull only the apiserver image",
+ name: "When kube-apiserver container exists, it should pre-pull only the apiserver image",
containers: []corev1.Container{
{Name: "kube-apiserver", Image: "registry.io/kube-apiserver:v1"},
{Name: "bootstrap", Image: "registry.io/controlplane-operator:v1"},
@@ -45,7 +224,7 @@ func TestAddImagePrePullInitContainers(t *testing.T) {
expectedPrePullImages: []string{"registry.io/kube-apiserver:v1"},
},
{
- name: "When kube-apiserver container does not exist it should not create pre-pull init containers",
+ name: "When kube-apiserver container does not exist, it should not create pre-pull init containers",
containers: []corev1.Container{
{Name: "konnectivity-server", Image: "registry.io/konnectivity:v1"},
{Name: "audit-logs", Image: "registry.io/cli:v1"},
@@ -53,7 +232,7 @@ func TestAddImagePrePullInitContainers(t *testing.T) {
expectedPrePullImages: []string{},
},
{
- name: "When there are no containers it should have no pre-pull init containers",
+ name: "When there are no containers, it should have no pre-pull init containers",
containers: []corev1.Container{},
expectedPrePullImages: []string{},
},
@@ -113,7 +292,7 @@ func TestApplyAWSPodIdentityWebhookContainer(t *testing.T) {
validatePod func(*GomegaWithT, *corev1.PodSpec)
}{
{
- name: "When TLS security profile is nil it should use default Intermediate profile",
+ name: "When TLS security profile is nil, it should use default Intermediate profile",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
Platform: hyperv1.PlatformSpec{
@@ -134,7 +313,7 @@ func TestApplyAWSPodIdentityWebhookContainer(t *testing.T) {
},
},
{
- name: "When TLS security profile is Old it should add TLS configuration",
+ name: "When TLS security profile is Old, it should add TLS configuration",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
Platform: hyperv1.PlatformSpec{
@@ -162,7 +341,7 @@ func TestApplyAWSPodIdentityWebhookContainer(t *testing.T) {
},
},
{
- name: "When TLS security profile is Intermediate it should add TLS configuration",
+ name: "When TLS security profile is Intermediate, it should add TLS configuration",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
Platform: hyperv1.PlatformSpec{
@@ -190,7 +369,7 @@ func TestApplyAWSPodIdentityWebhookContainer(t *testing.T) {
},
},
{
- name: "When TLS security profile is Modern it should add TLS 1.3 configuration",
+ name: "When TLS security profile is Modern, it should add TLS 1.3 configuration",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
Platform: hyperv1.PlatformSpec{
@@ -218,7 +397,7 @@ func TestApplyAWSPodIdentityWebhookContainer(t *testing.T) {
},
},
{
- name: "When TLS security profile is Custom with TLS 1.2 it should add tls-min-version flag",
+ name: "When TLS security profile is Custom with TLS 1.2, it should add tls-min-version flag",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
Platform: hyperv1.PlatformSpec{
@@ -253,7 +432,7 @@ func TestApplyAWSPodIdentityWebhookContainer(t *testing.T) {
},
},
{
- name: "When TLS security profile is Custom with TLS 1.3 it should add tls-min-version flag",
+ name: "When TLS security profile is Custom with TLS 1.3, it should add tls-min-version flag",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
Platform: hyperv1.PlatformSpec{
@@ -302,12 +481,12 @@ func TestKonnectivityServerTLSMinVersion(t *testing.T) {
expectedMinTLS string
}{
{
- name: "When TLS security profile is nil it should use default Intermediate profile for konnectivity-server",
+ name: "When TLS security profile is nil, it should use default Intermediate profile for konnectivity-server",
expectedMinTLS: "VersionTLS12",
hcp: &hyperv1.HostedControlPlane{},
},
{
- name: "When TLS security profile is Old it should set TLS 1.0 for konnectivity-server",
+ name: "When TLS security profile is Old, it should set TLS 1.0 for konnectivity-server",
expectedMinTLS: "VersionTLS10",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
@@ -322,7 +501,7 @@ func TestKonnectivityServerTLSMinVersion(t *testing.T) {
},
},
{
- name: "When TLS security profile is Intermediate it should set TLS 1.2 for konnectivity-server",
+ name: "When TLS security profile is Intermediate, it should set TLS 1.2 for konnectivity-server",
expectedMinTLS: "VersionTLS12",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
@@ -337,7 +516,7 @@ func TestKonnectivityServerTLSMinVersion(t *testing.T) {
},
},
{
- name: "When TLS security profile is Modern it should set TLS 1.3 for konnectivity-server",
+ name: "When TLS security profile is Modern, it should set TLS 1.3 for konnectivity-server",
expectedMinTLS: "VersionTLS13",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
@@ -352,7 +531,7 @@ func TestKonnectivityServerTLSMinVersion(t *testing.T) {
},
},
{
- name: "When TLS security profile is Custom with TLS 1.2 it should set TLS 1.2 for konnectivity-server",
+ name: "When TLS security profile is Custom with TLS 1.2, it should set TLS 1.2 for konnectivity-server",
expectedMinTLS: "VersionTLS12",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
@@ -372,7 +551,7 @@ func TestKonnectivityServerTLSMinVersion(t *testing.T) {
},
},
{
- name: "When TLS security profile is Custom with TLS 1.3 it should set TLS 1.3 for konnectivity-server",
+ name: "When TLS security profile is Custom with TLS 1.3, it should set TLS 1.3 for konnectivity-server",
expectedMinTLS: "VersionTLS13",
hcp: &hyperv1.HostedControlPlane{
Spec: hyperv1.HostedControlPlaneSpec{
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/kcm/deployment.go b/control-plane-operator/controllers/hostedcontrolplane/v2/kcm/deployment.go
index 7f3faafd8b0e..e2152207fb25 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/kcm/deployment.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/kcm/deployment.go
@@ -19,6 +19,14 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
)
+func resolveKCMVerbosity(hcp *hyperv1.HostedControlPlane) int {
+ var level hyperv1.LogLevel
+ if hcp.Spec.OperatorConfiguration != nil {
+ level = hcp.Spec.OperatorConfiguration.KubeControllerManager.LogLevel
+ }
+ return util.LogLevelToKlogVerbosity(level)
+}
+
func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Deployment) error {
hcp := cpContext.HCP
serviceServingCA, err := getServiceServingCA(cpContext)
@@ -37,6 +45,7 @@ func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Dep
}
podspec.UpdateContainer(ComponentName, deployment.Spec.Template.Spec.Containers, func(c *corev1.Container) {
+ c.Args = append(c.Args, fmt.Sprintf("--v=%d", resolveKCMVerbosity(hcp)))
c.Args = append(c.Args,
fmt.Sprintf("--cluster-cidr=%s", netutil.FirstClusterCIDR(hcp.Spec.Networking.ClusterNetwork)),
fmt.Sprintf("--service-cluster-ip-range=%s", netutil.FirstServiceCIDR(hcp.Spec.Networking.ServiceNetwork)),
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/kcm/deployment_test.go b/control-plane-operator/controllers/hostedcontrolplane/v2/kcm/deployment_test.go
index 9896c9b76db5..c0fc15065dd5 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/kcm/deployment_test.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/kcm/deployment_test.go
@@ -507,3 +507,159 @@ func TestAdaptDeployment(t *testing.T) {
})
}
}
+
+func TestResolveKCMVerbosity(t *testing.T) {
+ logLevel := func(l hyperv1.LogLevel) hyperv1.KubeControllerManagerOperatorSpec {
+ return hyperv1.KubeControllerManagerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: l},
+ }
+ }
+
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected int
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{},
+ },
+ expected: 2,
+ },
+ {
+ name: "When operatorConfiguration exists but kubeControllerManager logLevel is nil, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{},
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When kubeControllerManager logLevel is Normal, it should return verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeControllerManager: logLevel(hyperv1.Normal),
+ },
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When kubeControllerManager logLevel is Debug, it should return verbosity 4",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeControllerManager: logLevel(hyperv1.Debug),
+ },
+ },
+ },
+ expected: 4,
+ },
+ {
+ name: "When kubeControllerManager logLevel is Trace, it should return verbosity 6",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeControllerManager: logLevel(hyperv1.Trace),
+ },
+ },
+ },
+ expected: 6,
+ },
+ {
+ name: "When kubeControllerManager logLevel is TraceAll, it should return verbosity 8",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeControllerManager: logLevel(hyperv1.TraceAll),
+ },
+ },
+ },
+ expected: 8,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(resolveKCMVerbosity(tt.hcp)).To(Equal(tt.expected))
+ })
+ }
+}
+
+func TestAdaptDeploymentKCMLogLevel(t *testing.T) {
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected string
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to --v=2",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{Namespace: "test-namespace"},
+ },
+ expected: "--v=2",
+ },
+ {
+ name: "When logLevel is Debug, it should set --v=4",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{Namespace: "test-namespace"},
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeControllerManager: hyperv1.KubeControllerManagerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: hyperv1.Debug},
+ },
+ },
+ },
+ },
+ expected: "--v=4",
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+
+ scheme := runtime.NewScheme()
+ _ = corev1.AddToScheme(scheme)
+
+ fakeClient := fake.NewClientBuilder().WithScheme(scheme).WithObjects(
+ &corev1.ConfigMap{
+ ObjectMeta: metav1.ObjectMeta{
+ Name: "feature-gate",
+ Namespace: tt.hcp.Namespace,
+ },
+ Data: map[string]string{
+ "feature-gate.yaml": `{"apiVersion":"config.openshift.io/v1","kind":"FeatureGate","spec":{},"status":{"featureGates":[]}}`,
+ },
+ },
+ ).Build()
+
+ deployment := &appsv1.Deployment{
+ Spec: appsv1.DeploymentSpec{
+ Template: corev1.PodTemplateSpec{
+ Spec: corev1.PodSpec{
+ Containers: []corev1.Container{{Name: ComponentName}},
+ },
+ },
+ },
+ }
+
+ cpContext := component.WorkloadContext{
+ Context: t.Context(),
+ Client: fakeClient,
+ HCP: tt.hcp,
+ }
+
+ err := adaptDeployment(cpContext, deployment)
+ g.Expect(err).ToNot(HaveOccurred())
+
+ container := podspec.FindContainer(ComponentName, deployment.Spec.Template.Spec.Containers)
+ g.Expect(container).ToNot(BeNil())
+ g.Expect(container.Args).To(ContainElement(tt.expected))
+ })
+ }
+}
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/kube_scheduler/deployment.go b/control-plane-operator/controllers/hostedcontrolplane/v2/kube_scheduler/deployment.go
index 5041718b1822..c552144aa0ef 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/kube_scheduler/deployment.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/kube_scheduler/deployment.go
@@ -40,7 +40,16 @@ func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Dep
c.Args = append(c.Args, fmt.Sprintf("--policy-config-map=%s", configuration.Scheduler.Policy.Name))
c.Args = append(c.Args, fmt.Sprintf("--policy-config-namespace=%s", cpContext.HCP.Namespace))
}
+ c.Args = append(c.Args, fmt.Sprintf("--v=%d", resolveSchedulerVerbosity(cpContext.HCP)))
})
return nil
}
+
+func resolveSchedulerVerbosity(hcp *hyperv1.HostedControlPlane) int {
+ var level hyperv1.LogLevel
+ if hcp.Spec.OperatorConfiguration != nil {
+ level = hcp.Spec.OperatorConfiguration.KubeScheduler.LogLevel
+ }
+ return util.LogLevelToKlogVerbosity(level)
+}
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/kube_scheduler/deployment_test.go b/control-plane-operator/controllers/hostedcontrolplane/v2/kube_scheduler/deployment_test.go
new file mode 100644
index 000000000000..9714a7aa2bce
--- /dev/null
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/kube_scheduler/deployment_test.go
@@ -0,0 +1,174 @@
+package scheduler
+
+import (
+ "testing"
+
+ . "github.com/onsi/gomega"
+
+ hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+ component "github.com/openshift/hypershift/support/controlplane-component"
+ "github.com/openshift/hypershift/support/podspec"
+
+ appsv1 "k8s.io/api/apps/v1"
+ corev1 "k8s.io/api/core/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/apimachinery/pkg/runtime"
+
+ "sigs.k8s.io/controller-runtime/pkg/client/fake"
+)
+
+func TestResolveSchedulerVerbosity(t *testing.T) {
+ logLevel := func(l hyperv1.LogLevel) hyperv1.KubeSchedulerOperatorSpec {
+ return hyperv1.KubeSchedulerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: l},
+ }
+ }
+
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected int
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{},
+ },
+ expected: 2,
+ },
+ {
+ name: "When operatorConfiguration exists but kubeScheduler logLevel is nil, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{},
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When kubeScheduler logLevel is Normal, it should return verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeScheduler: logLevel(hyperv1.Normal),
+ },
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When kubeScheduler logLevel is Debug, it should return verbosity 4",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeScheduler: logLevel(hyperv1.Debug),
+ },
+ },
+ },
+ expected: 4,
+ },
+ {
+ name: "When kubeScheduler logLevel is Trace, it should return verbosity 6",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeScheduler: logLevel(hyperv1.Trace),
+ },
+ },
+ },
+ expected: 6,
+ },
+ {
+ name: "When kubeScheduler logLevel is TraceAll, it should return verbosity 8",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeScheduler: logLevel(hyperv1.TraceAll),
+ },
+ },
+ },
+ expected: 8,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(resolveSchedulerVerbosity(tt.hcp)).To(Equal(tt.expected))
+ })
+ }
+}
+
+func TestAdaptDeploymentSchedulerLogLevel(t *testing.T) {
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected string
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to --v=2",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{Namespace: "test-namespace"},
+ },
+ expected: "--v=2",
+ },
+ {
+ name: "When logLevel is Debug, it should set --v=4",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{Namespace: "test-namespace"},
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ KubeScheduler: hyperv1.KubeSchedulerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: hyperv1.Debug},
+ },
+ },
+ },
+ },
+ expected: "--v=4",
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+
+ scheme := runtime.NewScheme()
+ _ = corev1.AddToScheme(scheme)
+
+ fakeClient := fake.NewClientBuilder().WithScheme(scheme).WithObjects(
+ &corev1.ConfigMap{
+ ObjectMeta: metav1.ObjectMeta{
+ Name: "feature-gate",
+ Namespace: tt.hcp.Namespace,
+ },
+ Data: map[string]string{
+ "feature-gate.yaml": `{"apiVersion":"config.openshift.io/v1","kind":"FeatureGate","spec":{},"status":{"featureGates":[]}}`,
+ },
+ },
+ ).Build()
+
+ deployment := &appsv1.Deployment{
+ Spec: appsv1.DeploymentSpec{
+ Template: corev1.PodTemplateSpec{
+ Spec: corev1.PodSpec{
+ Containers: []corev1.Container{{Name: ComponentName}},
+ },
+ },
+ },
+ }
+
+ cpContext := component.WorkloadContext{
+ Context: t.Context(),
+ Client: fakeClient,
+ HCP: tt.hcp,
+ }
+
+ err := adaptDeployment(cpContext, deployment)
+ g.Expect(err).ToNot(HaveOccurred())
+
+ container := podspec.FindContainer(ComponentName, deployment.Spec.Template.Spec.Containers)
+ g.Expect(container).ToNot(BeNil())
+ g.Expect(container.Args).To(ContainElement(tt.expected))
+ })
+ }
+}
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/oapi/deployment.go b/control-plane-operator/controllers/hostedcontrolplane/v2/oapi/deployment.go
index 93d817083598..4b3867ce62ef 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/oapi/deployment.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/oapi/deployment.go
@@ -58,6 +58,7 @@ func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Dep
}
podspec.UpdateContainer(ComponentName, deployment.Spec.Template.Spec.Containers, func(c *corev1.Container) {
+ c.Args = append(c.Args, fmt.Sprintf("--v=%d", resolveOAPIVerbosity(cpContext.HCP)))
if !util.HCPOAuthEnabled(cpContext.HCP) {
c.Args = append(c.Args, "--internal-oauth-disabled=true")
}
@@ -119,6 +120,14 @@ func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Dep
return nil
}
+func resolveOAPIVerbosity(hcp *hyperv1.HostedControlPlane) int {
+ var level hyperv1.LogLevel
+ if hcp.Spec.OperatorConfiguration != nil {
+ level = hcp.Spec.OperatorConfiguration.OpenShiftAPIServer.LogLevel
+ }
+ return util.LogLevelToKlogVerbosity(level)
+}
+
func applyAuditWebhookConfigFileVolume(podSpec *corev1.PodSpec, auditWebhookRef *corev1.LocalObjectReference) {
podSpec.Volumes = append(podSpec.Volumes, corev1.Volume{
Name: auditWebhookConfigFileVolumeName,
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/oapi/deployment_test.go b/control-plane-operator/controllers/hostedcontrolplane/v2/oapi/deployment_test.go
index 00e7bde0838c..cd09591b08a5 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/oapi/deployment_test.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/oapi/deployment_test.go
@@ -9,6 +9,7 @@ import (
"github.com/openshift/hypershift/control-plane-operator/controllers/hostedcontrolplane/v2/assets"
"github.com/openshift/hypershift/support/api"
component "github.com/openshift/hypershift/support/controlplane-component"
+ "github.com/openshift/hypershift/support/podspec"
configv1 "github.com/openshift/api/config/v1"
@@ -156,3 +157,142 @@ func getFakeVolumeProjectionImageRegistryCAs() corev1.VolumeProjection {
},
}
}
+
+func TestResolveOAPIVerbosity(t *testing.T) {
+ logLevel := func(l hyperv1.LogLevel) hyperv1.OpenShiftAPIServerOperatorSpec {
+ return hyperv1.OpenShiftAPIServerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: l},
+ }
+ }
+
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected int
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{},
+ },
+ expected: 2,
+ },
+ {
+ name: "When operatorConfiguration exists but openShiftAPIServer logLevel is nil, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{},
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When openShiftAPIServer logLevel is Normal, it should return verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftAPIServer: logLevel(hyperv1.Normal),
+ },
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When openShiftAPIServer logLevel is Debug, it should return verbosity 4",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftAPIServer: logLevel(hyperv1.Debug),
+ },
+ },
+ },
+ expected: 4,
+ },
+ {
+ name: "When openShiftAPIServer logLevel is Trace, it should return verbosity 6",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftAPIServer: logLevel(hyperv1.Trace),
+ },
+ },
+ },
+ expected: 6,
+ },
+ {
+ name: "When openShiftAPIServer logLevel is TraceAll, it should return verbosity 8",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftAPIServer: logLevel(hyperv1.TraceAll),
+ },
+ },
+ },
+ expected: 8,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(resolveOAPIVerbosity(tt.hcp)).To(Equal(tt.expected))
+ })
+ }
+}
+
+func TestAdaptDeploymentOAPILogLevel(t *testing.T) {
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected string
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to --v=2",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{
+ Name: "test-hcp",
+ Namespace: "test-ns",
+ },
+ },
+ expected: "--v=2",
+ },
+ {
+ name: "When logLevel is Debug, it should set --v=4",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{
+ Name: "test-hcp",
+ Namespace: "test-ns",
+ },
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftAPIServer: hyperv1.OpenShiftAPIServerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: hyperv1.Debug},
+ },
+ },
+ },
+ },
+ expected: "--v=4",
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewGomegaWithT(t)
+
+ deployment, err := assets.LoadDeploymentManifest(ComponentName)
+ g.Expect(err).ToNot(HaveOccurred())
+
+ cpContext := component.WorkloadContext{
+ Client: fake.NewClientBuilder().WithScheme(api.Scheme).Build(),
+ HCP: tt.hcp,
+ }
+
+ err = adaptDeployment(cpContext, deployment)
+ g.Expect(err).ToNot(HaveOccurred())
+
+ container := podspec.FindContainer(ComponentName, deployment.Spec.Template.Spec.Containers)
+ g.Expect(container).ToNot(BeNil())
+ g.Expect(container.Args).To(ContainElement(tt.expected))
+ })
+ }
+}
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/oauth/deployment.go b/control-plane-operator/controllers/hostedcontrolplane/v2/oauth/deployment.go
index 8df0383b02ea..0ce3178cbc80 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/oauth/deployment.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/oauth/deployment.go
@@ -11,6 +11,7 @@ import (
"github.com/openshift/hypershift/support/config"
component "github.com/openshift/hypershift/support/controlplane-component"
"github.com/openshift/hypershift/support/podspec"
+ "github.com/openshift/hypershift/support/util"
configv1 "github.com/openshift/api/config/v1"
@@ -35,6 +36,7 @@ const (
func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Deployment) error {
podspec.UpdateContainer(ComponentName, deployment.Spec.Template.Spec.Containers, func(c *corev1.Container) {
+ c.Args = append(c.Args, fmt.Sprintf("--v=%d", resolveOAuthVerbosity(cpContext.HCP)))
if cpContext.HCP.Spec.AuditWebhook != nil && len(cpContext.HCP.Spec.AuditWebhook.Name) > 0 {
c.Args = append(c.Args, fmt.Sprintf("--audit-webhook-config-file=%s", path.Join("/etc/kubernetes/auditwebhook", hyperv1.AuditWebhookKubeconfigKey)))
c.Args = append(c.Args, "--audit-webhook-mode=batch")
@@ -120,6 +122,14 @@ func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Dep
return nil
}
+func resolveOAuthVerbosity(hcp *hyperv1.HostedControlPlane) int {
+ var level hyperv1.LogLevel
+ if hcp.Spec.OperatorConfiguration != nil {
+ level = hcp.Spec.OperatorConfiguration.OAuthServer.LogLevel
+ }
+ return util.LogLevelToKlogVerbosity(level)
+}
+
func applyNamedCertificateMounts(certs []configv1.APIServerNamedServingCert, spec *corev1.PodSpec) {
podspec.UpdateContainer(ComponentName, spec.Containers, func(c *corev1.Container) {
for i, namedCert := range certs {
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/oauth/deployment_test.go b/control-plane-operator/controllers/hostedcontrolplane/v2/oauth/deployment_test.go
index 5d6cc6e31e05..effbbd625a52 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/oauth/deployment_test.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/oauth/deployment_test.go
@@ -116,3 +116,142 @@ func TestAdaptDeployment(t *testing.T) {
})
}
}
+
+func TestResolveOAuthVerbosity(t *testing.T) {
+ logLevel := func(l hyperv1.LogLevel) hyperv1.OAuthServerOperatorSpec {
+ return hyperv1.OAuthServerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: l},
+ }
+ }
+
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected int
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{},
+ },
+ expected: 2,
+ },
+ {
+ name: "When operatorConfiguration exists but oauthServer logLevel is nil, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{},
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When oauthServer logLevel is Normal, it should return verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OAuthServer: logLevel(hyperv1.Normal),
+ },
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When oauthServer logLevel is Debug, it should return verbosity 4",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OAuthServer: logLevel(hyperv1.Debug),
+ },
+ },
+ },
+ expected: 4,
+ },
+ {
+ name: "When oauthServer logLevel is Trace, it should return verbosity 6",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OAuthServer: logLevel(hyperv1.Trace),
+ },
+ },
+ },
+ expected: 6,
+ },
+ {
+ name: "When oauthServer logLevel is TraceAll, it should return verbosity 8",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OAuthServer: logLevel(hyperv1.TraceAll),
+ },
+ },
+ },
+ expected: 8,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(resolveOAuthVerbosity(tt.hcp)).To(Equal(tt.expected))
+ })
+ }
+}
+
+func TestAdaptDeploymentOAuthLogLevel(t *testing.T) {
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected string
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to --v=2",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{
+ Name: "test-hcp",
+ Namespace: "test-namespace",
+ },
+ },
+ expected: "--v=2",
+ },
+ {
+ name: "When logLevel is Debug, it should set --v=4",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{
+ Name: "test-hcp",
+ Namespace: "test-namespace",
+ },
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OAuthServer: hyperv1.OAuthServerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: hyperv1.Debug},
+ },
+ },
+ },
+ },
+ expected: "--v=4",
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+
+ deployment, err := assets.LoadDeploymentManifest(ComponentName)
+ g.Expect(err).ToNot(HaveOccurred())
+
+ cpContext := component.WorkloadContext{
+ Client: fake.NewClientBuilder().WithScheme(api.Scheme).Build(),
+ HCP: tt.hcp,
+ }
+
+ err = adaptDeployment(cpContext, deployment)
+ g.Expect(err).ToNot(HaveOccurred())
+
+ container := podspec.FindContainer(ComponentName, deployment.Spec.Template.Spec.Containers)
+ g.Expect(container).ToNot(BeNil())
+ g.Expect(container.Args).To(ContainElement(tt.expected))
+ })
+ }
+}
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/oauth_apiserver/deployment.go b/control-plane-operator/controllers/hostedcontrolplane/v2/oauth_apiserver/deployment.go
index 2f683ae5626e..cf19b84cf6f2 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/oauth_apiserver/deployment.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/oauth_apiserver/deployment.go
@@ -12,6 +12,7 @@ import (
component "github.com/openshift/hypershift/support/controlplane-component"
"github.com/openshift/hypershift/support/netutil"
"github.com/openshift/hypershift/support/podspec"
+ "github.com/openshift/hypershift/support/util"
configv1 "github.com/openshift/api/config/v1"
@@ -74,6 +75,8 @@ func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Dep
c.Args = append(c.Args, fmt.Sprintf("--accesstoken-inactivity-timeout=%s", tokenInactivityTimeout))
}
+ c.Args = append(c.Args, fmt.Sprintf("--v=%d", resolveOAuthAPIServerVerbosity(cpContext.HCP)))
+
podspec.UpsertEnvVar(c, corev1.EnvVar{
Name: "NO_PROXY",
Value: strings.Join(noProxy, ","),
@@ -97,6 +100,14 @@ func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Dep
return nil
}
+func resolveOAuthAPIServerVerbosity(hcp *hyperv1.HostedControlPlane) int {
+ var level hyperv1.LogLevel
+ if hcp.Spec.OperatorConfiguration != nil {
+ level = hcp.Spec.OperatorConfiguration.OpenShiftOAuthAPIServer.LogLevel
+ }
+ return util.LogLevelToKlogVerbosity(level)
+}
+
func applyAuditWebhookConfigFileVolume(podSpec *corev1.PodSpec, auditWebhookRef *corev1.LocalObjectReference) {
podSpec.Volumes = append(podSpec.Volumes, corev1.Volume{
Name: auditWebhookConfigFileVolumeName,
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/oauth_apiserver/deployment_test.go b/control-plane-operator/controllers/hostedcontrolplane/v2/oauth_apiserver/deployment_test.go
index 9b565a3cef43..5f0e1395ad9d 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/oauth_apiserver/deployment_test.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/oauth_apiserver/deployment_test.go
@@ -716,3 +716,139 @@ func TestAdaptDeploymentMultipleConfigurations(t *testing.T) {
g.Expect(noProxyEnv.Value).To(ContainSubstring("custom-etcd.example.com"))
})
}
+
+func TestResolveOAuthAPIServerVerbosity(t *testing.T) {
+ logLevel := func(l hyperv1.LogLevel) hyperv1.OpenShiftOAuthAPIServerOperatorSpec {
+ return hyperv1.OpenShiftOAuthAPIServerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: l},
+ }
+ }
+
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected int
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{},
+ },
+ expected: 2,
+ },
+ {
+ name: "When operatorConfiguration exists but openShiftOAuthAPIServer logLevel is nil, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{},
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When openShiftOAuthAPIServer logLevel is Normal, it should return verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftOAuthAPIServer: logLevel(hyperv1.Normal),
+ },
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When openShiftOAuthAPIServer logLevel is Debug, it should return verbosity 4",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftOAuthAPIServer: logLevel(hyperv1.Debug),
+ },
+ },
+ },
+ expected: 4,
+ },
+ {
+ name: "When openShiftOAuthAPIServer logLevel is Trace, it should return verbosity 6",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftOAuthAPIServer: logLevel(hyperv1.Trace),
+ },
+ },
+ },
+ expected: 6,
+ },
+ {
+ name: "When openShiftOAuthAPIServer logLevel is TraceAll, it should return verbosity 8",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftOAuthAPIServer: logLevel(hyperv1.TraceAll),
+ },
+ },
+ },
+ expected: 8,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(resolveOAuthAPIServerVerbosity(tt.hcp)).To(Equal(tt.expected))
+ })
+ }
+}
+
+func TestAdaptDeploymentOAuthAPIServerLogLevel(t *testing.T) {
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected string
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to --v=2",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{
+ Name: "test-hcp",
+ Namespace: "test-ns",
+ },
+ },
+ expected: "--v=2",
+ },
+ {
+ name: "When logLevel is Debug, it should set --v=4",
+ hcp: &hyperv1.HostedControlPlane{
+ ObjectMeta: metav1.ObjectMeta{
+ Name: "test-hcp",
+ Namespace: "test-ns",
+ },
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftOAuthAPIServer: hyperv1.OpenShiftOAuthAPIServerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: hyperv1.Debug},
+ },
+ },
+ },
+ },
+ expected: "--v=4",
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+
+ deployment, err := assets.LoadDeploymentManifest(ComponentName)
+ g.Expect(err).ToNot(HaveOccurred())
+
+ cpContext := component.WorkloadContext{HCP: tt.hcp}
+
+ err = adaptDeployment(cpContext, deployment)
+ g.Expect(err).ToNot(HaveOccurred())
+
+ container := podspec.FindContainer(ComponentName, deployment.Spec.Template.Spec.Containers)
+ g.Expect(container).ToNot(BeNil())
+ g.Expect(container.Args).To(ContainElement(tt.expected))
+ })
+ }
+}
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/component.go b/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/component.go
index 8c54fcfbc47a..c2f37d5446bd 100644
--- a/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/component.go
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/component.go
@@ -32,6 +32,7 @@ func (c *openshiftControllerManager) NeedsManagementKASAccess() bool {
func NewComponent() component.ControlPlaneComponent {
return component.NewDeploymentComponent(ComponentName, &openshiftControllerManager{}).
+ WithAdaptFunction(adaptDeployment).
WithManifestAdapter(
"config.yaml",
component.WithAdaptFunction(adaptConfigMap),
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/deployment.go b/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/deployment.go
new file mode 100644
index 000000000000..530895593c5f
--- /dev/null
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/deployment.go
@@ -0,0 +1,28 @@
+package ocm
+
+import (
+ "fmt"
+
+ hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+ component "github.com/openshift/hypershift/support/controlplane-component"
+ "github.com/openshift/hypershift/support/podspec"
+ "github.com/openshift/hypershift/support/util"
+
+ appsv1 "k8s.io/api/apps/v1"
+ corev1 "k8s.io/api/core/v1"
+)
+
+func adaptDeployment(cpContext component.WorkloadContext, deployment *appsv1.Deployment) error {
+ podspec.UpdateContainer(ComponentName, deployment.Spec.Template.Spec.Containers, func(c *corev1.Container) {
+ c.Args = append(c.Args, fmt.Sprintf("--v=%d", resolveOCMVerbosity(cpContext.HCP)))
+ })
+ return nil
+}
+
+func resolveOCMVerbosity(hcp *hyperv1.HostedControlPlane) int {
+ var level hyperv1.LogLevel
+ if hcp.Spec.OperatorConfiguration != nil {
+ level = hcp.Spec.OperatorConfiguration.OpenShiftControllerManager.LogLevel
+ }
+ return util.LogLevelToKlogVerbosity(level)
+}
diff --git a/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/deployment_test.go b/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/deployment_test.go
new file mode 100644
index 000000000000..04746982ad85
--- /dev/null
+++ b/control-plane-operator/controllers/hostedcontrolplane/v2/ocm/deployment_test.go
@@ -0,0 +1,140 @@
+package ocm
+
+import (
+ "testing"
+
+ . "github.com/onsi/gomega"
+
+ hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+ component "github.com/openshift/hypershift/support/controlplane-component"
+
+ appsv1 "k8s.io/api/apps/v1"
+ corev1 "k8s.io/api/core/v1"
+)
+
+func TestResolveOCMVerbosity(t *testing.T) {
+ logLevel := func(l hyperv1.LogLevel) hyperv1.OpenShiftControllerManagerOperatorSpec {
+ return hyperv1.OpenShiftControllerManagerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: l},
+ }
+ }
+
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected int
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{},
+ },
+ expected: 2,
+ },
+ {
+ name: "When operatorConfiguration exists but openShiftControllerManager logLevel is nil, it should default to verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{},
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When openShiftControllerManager logLevel is Normal, it should return verbosity 2",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftControllerManager: logLevel(hyperv1.Normal),
+ },
+ },
+ },
+ expected: 2,
+ },
+ {
+ name: "When openShiftControllerManager logLevel is Debug, it should return verbosity 4",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftControllerManager: logLevel(hyperv1.Debug),
+ },
+ },
+ },
+ expected: 4,
+ },
+ {
+ name: "When openShiftControllerManager logLevel is Trace, it should return verbosity 6",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftControllerManager: logLevel(hyperv1.Trace),
+ },
+ },
+ },
+ expected: 6,
+ },
+ {
+ name: "When openShiftControllerManager logLevel is TraceAll, it should return verbosity 8",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftControllerManager: logLevel(hyperv1.TraceAll),
+ },
+ },
+ },
+ expected: 8,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(resolveOCMVerbosity(tt.hcp)).To(Equal(tt.expected))
+ })
+ }
+}
+
+func TestAdaptDeploymentOCMLogLevel(t *testing.T) {
+ tests := []struct {
+ name string
+ hcp *hyperv1.HostedControlPlane
+ expected string
+ }{
+ {
+ name: "When no operatorConfiguration is set, it should default to --v=2",
+ hcp: &hyperv1.HostedControlPlane{},
+ expected: "--v=2",
+ },
+ {
+ name: "When logLevel is Debug, it should set --v=4",
+ hcp: &hyperv1.HostedControlPlane{
+ Spec: hyperv1.HostedControlPlaneSpec{
+ OperatorConfiguration: &hyperv1.OperatorConfiguration{
+ OpenShiftControllerManager: hyperv1.OpenShiftControllerManagerOperatorSpec{
+ ComponentLogLevelSpec: hyperv1.ComponentLogLevelSpec{LogLevel: hyperv1.Debug},
+ },
+ },
+ },
+ },
+ expected: "--v=4",
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ deployment := &appsv1.Deployment{
+ Spec: appsv1.DeploymentSpec{
+ Template: corev1.PodTemplateSpec{
+ Spec: corev1.PodSpec{
+ Containers: []corev1.Container{{Name: ComponentName}},
+ },
+ },
+ },
+ }
+ err := adaptDeployment(component.WorkloadContext{HCP: tt.hcp}, deployment)
+ g.Expect(err).ToNot(HaveOccurred())
+ g.Expect(deployment.Spec.Template.Spec.Containers[0].Args).To(ContainElement(tt.expected))
+ })
+ }
+}
diff --git a/docs/content/reference/aggregated-docs.md b/docs/content/reference/aggregated-docs.md
index 2ed11311c089..3eff61b02fbf 100644
--- a/docs/content/reference/aggregated-docs.md
+++ b/docs/content/reference/aggregated-docs.md
@@ -46089,6 +46089,54 @@ or invalid channel has been specified.
+###ComponentLogLevelSpec { #hypershift.openshift.io/v1beta1.ComponentLogLevelSpec }
+
+(Appears on:
+EtcdOperatorSpec ,
+KubeAPIServerOperatorSpec ,
+KubeControllerManagerOperatorSpec ,
+KubeSchedulerOperatorSpec ,
+OAuthServerOperatorSpec ,
+OpenShiftAPIServerOperatorSpec ,
+OpenShiftControllerManagerOperatorSpec ,
+OpenShiftOAuthAPIServerOperatorSpec )
+
+
+
ComponentLogLevelSpec configures the log verbosity for a hosted control plane component.
+
+
+
+
+Field
+Description
+
+
+
+
+
+logLevel
+
+
+LogLevel
+
+
+
+
+(Optional)
+logLevel sets the log verbosity for the component.
+Valid values are: “Normal”, “Debug”, “Trace”, “TraceAll”.
+When set to Normal, standard operational log messages are produced for auditing and common operations.
+When set to Debug, more verbose logging is enabled for diagnosing problems.
+When set to Trace, very verbose logging is enabled including function-level tracing.
+When set to TraceAll, the most verbose logging is used, including full API body content,
+this can cause significant performance impact and produce large volumes of logs.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
###ComponentResource { #hypershift.openshift.io/v1beta1.ComponentResource }
(Appears on:
@@ -47362,6 +47410,39 @@ and the user is responsible for doing so.
+###EtcdOperatorSpec { #hypershift.openshift.io/v1beta1.EtcdOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
EtcdOperatorSpec specifies the configuration for the etcd.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
###EtcdShardResource { #hypershift.openshift.io/v1beta1.EtcdShardResource }
(Appears on:
@@ -51947,6 +52028,105 @@ KarpenterAWSConfig
+###KubeAPIServerOperatorSpec { #hypershift.openshift.io/v1beta1.KubeAPIServerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
KubeAPIServerOperatorSpec specifies the configuration for the Kube API Server.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
+###KubeControllerManagerOperatorSpec { #hypershift.openshift.io/v1beta1.KubeControllerManagerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
KubeControllerManagerOperatorSpec specifies the configuration for the Kube Controller Manager.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
+###KubeSchedulerOperatorSpec { #hypershift.openshift.io/v1beta1.KubeSchedulerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
KubeSchedulerOperatorSpec specifies the configuration for the Kube Scheduler.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
###KubeVirtNodePoolStatus { #hypershift.openshift.io/v1beta1.KubeVirtNodePoolStatus }
(Appears on:
@@ -52939,7 +53119,8 @@ If omitted, the value will be inferred from the corev1.Service Load balancer typ
###LogLevel { #hypershift.openshift.io/v1beta1.LogLevel }
(Appears on:
-ClusterVersionOperatorSpec )
+ClusterVersionOperatorSpec ,
+ComponentLogLevelSpec )
@@ -54780,6 +54961,39 @@ progress and detecting stuck nodes.
+###OAuthServerOperatorSpec { #hypershift.openshift.io/v1beta1.OAuthServerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
OAuthServerOperatorSpec specifies the configuration for the OAuth Server.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
###OLMCatalogPlacement { #hypershift.openshift.io/v1beta1.OLMCatalogPlacement }
(Appears on:
@@ -55108,6 +55322,105 @@ 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
+###OpenShiftAPIServerOperatorSpec { #hypershift.openshift.io/v1beta1.OpenShiftAPIServerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
OpenShiftAPIServerOperatorSpec specifies the configuration for the OpenShift API Server.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
+###OpenShiftControllerManagerOperatorSpec { #hypershift.openshift.io/v1beta1.OpenShiftControllerManagerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
OpenShiftControllerManagerOperatorSpec specifies the configuration for the OpenShift Controller Manager.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
+###OpenShiftOAuthAPIServerOperatorSpec { #hypershift.openshift.io/v1beta1.OpenShiftOAuthAPIServerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
OpenShiftOAuthAPIServerOperatorSpec specifies the configuration for the OpenShift OAuth API Server.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
###OpenStackIdentityReference { #hypershift.openshift.io/v1beta1.OpenStackIdentityReference }
(Appears on:
@@ -55459,6 +55772,152 @@ IngressOperatorSpec
This allows configuring how the default ingress controller endpoints are published.
+
+
+kubeAPIServer,omitzero
+
+
+KubeAPIServerOperatorSpec
+
+
+
+
+(Optional)
+kubeAPIServer configures the kube-apiserver component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+etcd,omitzero
+
+
+EtcdOperatorSpec
+
+
+
+
+(Optional)
+etcd configures the etcd component.
+Setting the logLevel field triggers a rolling restart of the component.
+Note: etcd supports fewer log levels than klog-based components,
+etcd supports only Normal and Debug log levels.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+kubeControllerManager,omitzero
+
+
+KubeControllerManagerOperatorSpec
+
+
+
+
+(Optional)
+kubeControllerManager configures the kube-controller-manager component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+kubeScheduler,omitzero
+
+
+KubeSchedulerOperatorSpec
+
+
+
+
+(Optional)
+kubeScheduler configures the kube-scheduler component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+openShiftControllerManager,omitzero
+
+
+OpenShiftControllerManagerOperatorSpec
+
+
+
+
+(Optional)
+openShiftControllerManager configures the openshift-controller-manager component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+openShiftAPIServer,omitzero
+
+
+OpenShiftAPIServerOperatorSpec
+
+
+
+
+(Optional)
+openShiftAPIServer configures the openshift-apiserver component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+openShiftOAuthAPIServer,omitzero
+
+
+OpenShiftOAuthAPIServerOperatorSpec
+
+
+
+
+(Optional)
+openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+oauthServer,omitzero
+
+
+OAuthServerOperatorSpec
+
+
+
+
+(Optional)
+oauthServer configures the oauth-server component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
###OptionalCapability { #hypershift.openshift.io/v1beta1.OptionalCapability }
diff --git a/docs/content/reference/api.md b/docs/content/reference/api.md
index 6aa258dfa858..3db7c7a984c8 100644
--- a/docs/content/reference/api.md
+++ b/docs/content/reference/api.md
@@ -6192,6 +6192,54 @@ or invalid channel has been specified.
+###ComponentLogLevelSpec { #hypershift.openshift.io/v1beta1.ComponentLogLevelSpec }
+
+(Appears on:
+EtcdOperatorSpec ,
+KubeAPIServerOperatorSpec ,
+KubeControllerManagerOperatorSpec ,
+KubeSchedulerOperatorSpec ,
+OAuthServerOperatorSpec ,
+OpenShiftAPIServerOperatorSpec ,
+OpenShiftControllerManagerOperatorSpec ,
+OpenShiftOAuthAPIServerOperatorSpec )
+
+
+
ComponentLogLevelSpec configures the log verbosity for a hosted control plane component.
+
+
+
+
+Field
+Description
+
+
+
+
+
+logLevel
+
+
+LogLevel
+
+
+
+
+(Optional)
+logLevel sets the log verbosity for the component.
+Valid values are: “Normal”, “Debug”, “Trace”, “TraceAll”.
+When set to Normal, standard operational log messages are produced for auditing and common operations.
+When set to Debug, more verbose logging is enabled for diagnosing problems.
+When set to Trace, very verbose logging is enabled including function-level tracing.
+When set to TraceAll, the most verbose logging is used, including full API body content,
+this can cause significant performance impact and produce large volumes of logs.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
###ComponentResource { #hypershift.openshift.io/v1beta1.ComponentResource }
(Appears on:
@@ -7465,6 +7513,39 @@ and the user is responsible for doing so.
+###EtcdOperatorSpec { #hypershift.openshift.io/v1beta1.EtcdOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
EtcdOperatorSpec specifies the configuration for the etcd.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
###EtcdShardResource { #hypershift.openshift.io/v1beta1.EtcdShardResource }
(Appears on:
@@ -12050,6 +12131,105 @@ KarpenterAWSConfig
+###KubeAPIServerOperatorSpec { #hypershift.openshift.io/v1beta1.KubeAPIServerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
KubeAPIServerOperatorSpec specifies the configuration for the Kube API Server.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
+###KubeControllerManagerOperatorSpec { #hypershift.openshift.io/v1beta1.KubeControllerManagerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
KubeControllerManagerOperatorSpec specifies the configuration for the Kube Controller Manager.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
+###KubeSchedulerOperatorSpec { #hypershift.openshift.io/v1beta1.KubeSchedulerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
KubeSchedulerOperatorSpec specifies the configuration for the Kube Scheduler.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
###KubeVirtNodePoolStatus { #hypershift.openshift.io/v1beta1.KubeVirtNodePoolStatus }
(Appears on:
@@ -13042,7 +13222,8 @@ If omitted, the value will be inferred from the corev1.Service Load balancer typ
###LogLevel { #hypershift.openshift.io/v1beta1.LogLevel }
(Appears on:
-ClusterVersionOperatorSpec )
+ClusterVersionOperatorSpec ,
+ComponentLogLevelSpec )
@@ -14883,6 +15064,39 @@ progress and detecting stuck nodes.
+###OAuthServerOperatorSpec { #hypershift.openshift.io/v1beta1.OAuthServerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
OAuthServerOperatorSpec specifies the configuration for the OAuth Server.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
###OLMCatalogPlacement { #hypershift.openshift.io/v1beta1.OLMCatalogPlacement }
(Appears on:
@@ -15211,6 +15425,105 @@ 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
+###OpenShiftAPIServerOperatorSpec { #hypershift.openshift.io/v1beta1.OpenShiftAPIServerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
OpenShiftAPIServerOperatorSpec specifies the configuration for the OpenShift API Server.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
+###OpenShiftControllerManagerOperatorSpec { #hypershift.openshift.io/v1beta1.OpenShiftControllerManagerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
OpenShiftControllerManagerOperatorSpec specifies the configuration for the OpenShift Controller Manager.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
+###OpenShiftOAuthAPIServerOperatorSpec { #hypershift.openshift.io/v1beta1.OpenShiftOAuthAPIServerOperatorSpec }
+
+(Appears on:
+OperatorConfiguration )
+
+
+
OpenShiftOAuthAPIServerOperatorSpec specifies the configuration for the OpenShift OAuth API Server.
+
+
+
+
+Field
+Description
+
+
+
+
+
+ComponentLogLevelSpec
+
+
+ComponentLogLevelSpec
+
+
+
+
+
+(Members of ComponentLogLevelSpec are embedded into this type.)
+
+
+
+
+
###OpenStackIdentityReference { #hypershift.openshift.io/v1beta1.OpenStackIdentityReference }
(Appears on:
@@ -15562,6 +15875,152 @@ IngressOperatorSpec
This allows configuring how the default ingress controller endpoints are published.
+
+
+kubeAPIServer,omitzero
+
+
+KubeAPIServerOperatorSpec
+
+
+
+
+(Optional)
+kubeAPIServer configures the kube-apiserver component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+etcd,omitzero
+
+
+EtcdOperatorSpec
+
+
+
+
+(Optional)
+etcd configures the etcd component.
+Setting the logLevel field triggers a rolling restart of the component.
+Note: etcd supports fewer log levels than klog-based components,
+etcd supports only Normal and Debug log levels.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+kubeControllerManager,omitzero
+
+
+KubeControllerManagerOperatorSpec
+
+
+
+
+(Optional)
+kubeControllerManager configures the kube-controller-manager component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+kubeScheduler,omitzero
+
+
+KubeSchedulerOperatorSpec
+
+
+
+
+(Optional)
+kubeScheduler configures the kube-scheduler component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+openShiftControllerManager,omitzero
+
+
+OpenShiftControllerManagerOperatorSpec
+
+
+
+
+(Optional)
+openShiftControllerManager configures the openshift-controller-manager component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+openShiftAPIServer,omitzero
+
+
+OpenShiftAPIServerOperatorSpec
+
+
+
+
+(Optional)
+openShiftAPIServer configures the openshift-apiserver component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+openShiftOAuthAPIServer,omitzero
+
+
+OpenShiftOAuthAPIServerOperatorSpec
+
+
+
+
+(Optional)
+openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
+
+
+oauthServer,omitzero
+
+
+OAuthServerOperatorSpec
+
+
+
+
+(Optional)
+oauthServer configures the oauth-server component.
+Setting the logLevel field triggers a rolling restart of the component.
+When omitted, this means the user has no opinion and the platform
+chooses a reasonable default, which is subject to change over time.
+The current default log level is Normal.
+
+
###OptionalCapability { #hypershift.openshift.io/v1beta1.OptionalCapability }
diff --git a/support/util/loglevel.go b/support/util/loglevel.go
new file mode 100644
index 000000000000..eeaa284f3d21
--- /dev/null
+++ b/support/util/loglevel.go
@@ -0,0 +1,42 @@
+package util
+
+import (
+ "fmt"
+
+ hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+)
+
+// LogLevelToKlogVerbosity maps a LogLevel enum value to a klog verbosity integer.
+// The LogLevel enum is the source of truth; every value must be handled here.
+// An unhandled value panics so that expanding the enum without updating this
+// switch is caught loudly rather than silently mishandled.
+func LogLevelToKlogVerbosity(level hyperv1.LogLevel) int {
+ switch level {
+ case hyperv1.Normal, "":
+ return 2
+ case hyperv1.Debug:
+ return 4
+ case hyperv1.Trace:
+ return 6
+ case hyperv1.TraceAll:
+ return 8
+ default:
+ panic(fmt.Sprintf("unhandled LogLevel %q in LogLevelToKlogVerbosity; update the switch", level))
+ }
+}
+
+// LogLevelToEtcdLevel maps a LogLevel enum to the ETCD_LOG_LEVEL environment
+// variable. etcd only supports "info" and "debug"; Trace and TraceAll are not
+// valid for etcd and are rejected at the API level (CEL), so they are treated as
+// unhandled here and panic. An unhandled value panics so that expanding the enum
+// without updating this switch is caught loudly rather than silently mishandled.
+func LogLevelToEtcdLevel(level hyperv1.LogLevel) string {
+ switch level {
+ case hyperv1.Normal, "":
+ return "info"
+ case hyperv1.Debug:
+ return "debug"
+ default:
+ panic(fmt.Sprintf("unhandled LogLevel %q in LogLevelToEtcdLevel; update the switch", level))
+ }
+}
diff --git a/support/util/loglevel_test.go b/support/util/loglevel_test.go
new file mode 100644
index 000000000000..be855b0108ec
--- /dev/null
+++ b/support/util/loglevel_test.go
@@ -0,0 +1,107 @@
+package util
+
+import (
+ "testing"
+
+ . "github.com/onsi/gomega"
+
+ hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
+)
+
+func TestLogLevelToKlogVerbosity(t *testing.T) {
+ tests := []struct {
+ name string
+ level hyperv1.LogLevel
+ expected int
+ }{
+ {
+ name: "When LogLevel is empty, it should default to verbosity 2",
+ level: hyperv1.LogLevel(""),
+ expected: 2,
+ },
+ {
+ name: "When LogLevel is Normal, it should return verbosity 2",
+ level: hyperv1.Normal,
+ expected: 2,
+ },
+ {
+ name: "When LogLevel is Debug, it should return verbosity 4",
+ level: hyperv1.Debug,
+ expected: 4,
+ },
+ {
+ name: "When LogLevel is Trace, it should return verbosity 6",
+ level: hyperv1.Trace,
+ expected: 6,
+ },
+ {
+ name: "When LogLevel is TraceAll, it should return verbosity 8",
+ level: hyperv1.TraceAll,
+ expected: 8,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(LogLevelToKlogVerbosity(tt.level)).To(Equal(tt.expected))
+ })
+ }
+}
+
+func TestLogLevelToEtcdLevel(t *testing.T) {
+ tests := []struct {
+ name string
+ level hyperv1.LogLevel
+ expected string
+ }{
+ {
+ name: "When LogLevel is empty, it should return etcd level info",
+ level: hyperv1.LogLevel(""),
+ expected: "info",
+ },
+ {
+ name: "When LogLevel is Normal, it should return etcd level info",
+ level: hyperv1.Normal,
+ expected: "info",
+ },
+ {
+ name: "When LogLevel is Debug, it should return etcd level debug",
+ level: hyperv1.Debug,
+ expected: "debug",
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(LogLevelToEtcdLevel(tt.level)).To(Equal(tt.expected))
+ })
+ }
+}
+
+func TestLogLevelToEtcdLevelPanicsOnUnsupported(t *testing.T) {
+ // Trace and TraceAll are valid LogLevel values but are not supported by etcd
+ // and are rejected at the API level (CEL). If one ever reaches this mapping
+ // (e.g. via a non-CRD path), it must panic rather than silently degrade.
+ tests := []struct {
+ name string
+ level hyperv1.LogLevel
+ }{
+ {
+ name: "When LogLevel is Trace, it should panic",
+ level: hyperv1.Trace,
+ },
+ {
+ name: "When LogLevel is TraceAll, it should panic",
+ level: hyperv1.TraceAll,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ g := NewWithT(t)
+ g.Expect(func() { LogLevelToEtcdLevel(tt.level) }).To(Panic())
+ })
+ }
+}
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 b20ea6f8d498..0d303e4767de 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
@@ -388,6 +388,9 @@ const (
RecommendedClusterSizeAnnotation = "hypershift.openshift.io/recommended-cluster-size"
// KubeAPIServerVerbosityLevelAnnotation allows specifying the log verbosity of kube-apiserver.
+ // Deprecated: Use spec.operatorConfiguration.kubeAPIServer.logLevel instead.
+ // When both are set, the OperatorConfiguration field takes precedence.
+ // This annotation will be removed in a future release.
KubeAPIServerVerbosityLevelAnnotation = "hypershift.openshift.io/kube-apiserver-verbosity-level"
// NodePoolSupportsKubevirtTopologySpreadConstraintsAnnotation indicates if the NodePool currently supports
@@ -2895,6 +2898,80 @@ type OperatorConfiguration struct {
//
// +optional
IngressOperator *IngressOperatorSpec `json:"ingressOperator,omitempty"`
+
+ // kubeAPIServer configures the kube-apiserver component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ KubeAPIServer KubeAPIServerOperatorSpec `json:"kubeAPIServer,omitzero"`
+
+ // etcd configures the etcd component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // Note: etcd supports fewer log levels than klog-based components,
+ // etcd supports only Normal and Debug log levels.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ Etcd EtcdOperatorSpec `json:"etcd,omitzero"`
+
+ // kubeControllerManager configures the kube-controller-manager component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ KubeControllerManager KubeControllerManagerOperatorSpec `json:"kubeControllerManager,omitzero"`
+
+ // kubeScheduler configures the kube-scheduler component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ KubeScheduler KubeSchedulerOperatorSpec `json:"kubeScheduler,omitzero"`
+
+ // openShiftControllerManager configures the openshift-controller-manager component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ OpenShiftControllerManager OpenShiftControllerManagerOperatorSpec `json:"openShiftControllerManager,omitzero"`
+
+ // openShiftAPIServer configures the openshift-apiserver component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ OpenShiftAPIServer OpenShiftAPIServerOperatorSpec `json:"openShiftAPIServer,omitzero"`
+
+ // openShiftOAuthAPIServer configures the openshift-oauth-apiserver component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ OpenShiftOAuthAPIServer OpenShiftOAuthAPIServerOperatorSpec `json:"openShiftOAuthAPIServer,omitzero"`
+
+ // oauthServer configures the oauth-server component.
+ // Setting the logLevel field triggers a rolling restart of the component.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ // +openshift:enable:FeatureGate=HCPUserFacingOperatorLogs
+ OAuthServer OAuthServerOperatorSpec `json:"oauthServer,omitzero"`
}
// +genclient
diff --git a/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/operator.go b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/operator.go
index 5c4160fb257a..3980fa37ffc0 100644
--- a/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/operator.go
+++ b/vendor/github.com/openshift/hypershift/api/hypershift/v1beta1/operator.go
@@ -18,7 +18,7 @@ const (
KubevirtDefaultV4InternalSubnet = "100.66.0.0/16"
)
-// +kubebuilder:validation:Enum="";Normal;Debug;Trace;TraceAll
+// +kubebuilder:validation:Enum=Normal;Debug;Trace;TraceAll
type LogLevel string
var (
@@ -40,6 +40,72 @@ var (
TraceAll LogLevel = "TraceAll"
)
+// ComponentLogLevelSpec configures the log verbosity for a hosted control plane component.
+// +kubebuilder:validation:MinProperties=1
+type ComponentLogLevelSpec struct {
+ // logLevel sets the log verbosity for the component.
+ // Valid values are: "Normal", "Debug", "Trace", "TraceAll".
+ // When set to Normal, standard operational log messages are produced for auditing and common operations.
+ // When set to Debug, more verbose logging is enabled for diagnosing problems.
+ // When set to Trace, very verbose logging is enabled including function-level tracing.
+ // When set to TraceAll, the most verbose logging is used, including full API body content,
+ // this can cause significant performance impact and produce large volumes of logs.
+ // When omitted, this means the user has no opinion and the platform
+ // chooses a reasonable default, which is subject to change over time.
+ // The current default log level is Normal.
+ // +optional
+ LogLevel LogLevel `json:"logLevel,omitempty"`
+}
+
+// KubeAPIServerOperatorSpec specifies the configuration for the Kube API Server.
+// +kubebuilder:validation:MinProperties=1
+type KubeAPIServerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// EtcdOperatorSpec specifies the configuration for the etcd.
+// +kubebuilder:validation:MinProperties=1
+// +kubebuilder:validation:XValidation:rule="!has(self.logLevel) || self.logLevel in ['Normal', 'Debug']",message="etcd only supports Normal and Debug log levels; Trace and TraceAll are not valid for etcd"
+type EtcdOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// KubeControllerManagerOperatorSpec specifies the configuration for the Kube Controller Manager.
+// +kubebuilder:validation:MinProperties=1
+type KubeControllerManagerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// KubeSchedulerOperatorSpec specifies the configuration for the Kube Scheduler.
+// +kubebuilder:validation:MinProperties=1
+type KubeSchedulerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// OpenShiftControllerManagerOperatorSpec specifies the configuration for the OpenShift Controller Manager.
+// +kubebuilder:validation:MinProperties=1
+type OpenShiftControllerManagerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// OpenShiftAPIServerOperatorSpec specifies the configuration for the OpenShift API Server.
+// +kubebuilder:validation:MinProperties=1
+type OpenShiftAPIServerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// OpenShiftOAuthAPIServerOperatorSpec specifies the configuration for the OpenShift OAuth API Server.
+// +kubebuilder:validation:MinProperties=1
+type OpenShiftOAuthAPIServerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
+// OAuthServerOperatorSpec specifies the configuration for the OAuth Server.
+// +kubebuilder:validation:MinProperties=1
+type OAuthServerOperatorSpec struct {
+ ComponentLogLevelSpec `json:",inline"`
+}
+
// ClusterVersionOperatorSpec is the specification of the desired behavior of the Cluster Version Operator.
type ClusterVersionOperatorSpec struct {
// operatorLogLevel is an intent based logging for the operator itself. It does not give fine-grained control,
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 702745ff3476..ecac3db738d4 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
@@ -1438,6 +1438,21 @@ func (in *ClusterVersionStatus) DeepCopy() *ClusterVersionStatus {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *ComponentLogLevelSpec) DeepCopyInto(out *ComponentLogLevelSpec) {
+ *out = *in
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentLogLevelSpec.
+func (in *ComponentLogLevelSpec) DeepCopy() *ComponentLogLevelSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(ComponentLogLevelSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ComponentResource) DeepCopyInto(out *ComponentResource) {
*out = *in
@@ -1743,6 +1758,22 @@ func (in *EncryptionMigrationHistory) DeepCopy() *EncryptionMigrationHistory {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *EtcdOperatorSpec) DeepCopyInto(out *EtcdOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdOperatorSpec.
+func (in *EtcdOperatorSpec) DeepCopy() *EtcdOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(EtcdOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EtcdShardResource) DeepCopyInto(out *EtcdShardResource) {
*out = *in
@@ -3118,6 +3149,54 @@ func (in *KarpenterConfig) DeepCopy() *KarpenterConfig {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *KubeAPIServerOperatorSpec) DeepCopyInto(out *KubeAPIServerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeAPIServerOperatorSpec.
+func (in *KubeAPIServerOperatorSpec) DeepCopy() *KubeAPIServerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(KubeAPIServerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *KubeControllerManagerOperatorSpec) DeepCopyInto(out *KubeControllerManagerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllerManagerOperatorSpec.
+func (in *KubeControllerManagerOperatorSpec) DeepCopy() *KubeControllerManagerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(KubeControllerManagerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *KubeSchedulerOperatorSpec) DeepCopyInto(out *KubeSchedulerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeSchedulerOperatorSpec.
+func (in *KubeSchedulerOperatorSpec) DeepCopy() *KubeSchedulerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(KubeSchedulerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeVirtNodePoolStatus) DeepCopyInto(out *KubeVirtNodePoolStatus) {
*out = *in
@@ -4096,6 +4175,22 @@ func (in *NodeVersion) DeepCopy() *NodeVersion {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *OAuthServerOperatorSpec) DeepCopyInto(out *OAuthServerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuthServerOperatorSpec.
+func (in *OAuthServerOperatorSpec) DeepCopy() *OAuthServerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(OAuthServerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *OSImageStreamReference) DeepCopyInto(out *OSImageStreamReference) {
*out = *in
@@ -4162,6 +4257,54 @@ func (in *OVNKubernetesConfig) DeepCopy() *OVNKubernetesConfig {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *OpenShiftAPIServerOperatorSpec) DeepCopyInto(out *OpenShiftAPIServerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenShiftAPIServerOperatorSpec.
+func (in *OpenShiftAPIServerOperatorSpec) DeepCopy() *OpenShiftAPIServerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(OpenShiftAPIServerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *OpenShiftControllerManagerOperatorSpec) DeepCopyInto(out *OpenShiftControllerManagerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenShiftControllerManagerOperatorSpec.
+func (in *OpenShiftControllerManagerOperatorSpec) DeepCopy() *OpenShiftControllerManagerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(OpenShiftControllerManagerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *OpenShiftOAuthAPIServerOperatorSpec) DeepCopyInto(out *OpenShiftOAuthAPIServerOperatorSpec) {
+ *out = *in
+ out.ComponentLogLevelSpec = in.ComponentLogLevelSpec
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenShiftOAuthAPIServerOperatorSpec.
+func (in *OpenShiftOAuthAPIServerOperatorSpec) DeepCopy() *OpenShiftOAuthAPIServerOperatorSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(OpenShiftOAuthAPIServerOperatorSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *OpenStackIdentityReference) DeepCopyInto(out *OpenStackIdentityReference) {
*out = *in
@@ -4277,6 +4420,14 @@ func (in *OperatorConfiguration) DeepCopyInto(out *OperatorConfiguration) {
*out = new(IngressOperatorSpec)
(*in).DeepCopyInto(*out)
}
+ out.KubeAPIServer = in.KubeAPIServer
+ out.Etcd = in.Etcd
+ out.KubeControllerManager = in.KubeControllerManager
+ out.KubeScheduler = in.KubeScheduler
+ out.OpenShiftControllerManager = in.OpenShiftControllerManager
+ out.OpenShiftAPIServer = in.OpenShiftAPIServer
+ out.OpenShiftOAuthAPIServer = in.OpenShiftOAuthAPIServer
+ out.OAuthServer = in.OAuthServer
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorConfiguration.
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 7537bc7ec496..539c03e31904 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
@@ -213,6 +213,7 @@ hostedclusters.hypershift.openshift.io:
- ExternalOIDCWithUpstreamParity
- GCPPlatform
- HCPEtcdBackup
+ - HCPUserFacingOperatorLogs
- HyperShiftOnlyDynamicResourceAllocation
- ImageStreamImportMode
- IngressComponentRouteLabels
@@ -291,6 +292,7 @@ hostedcontrolplanes.hypershift.openshift.io:
- ExternalOIDCWithUpstreamParity
- GCPPlatform
- HCPEtcdBackup
+ - HCPUserFacingOperatorLogs
- HyperShiftOnlyDynamicResourceAllocation
- ImageStreamImportMode
- IngressComponentRouteLabels