diff --git a/api/v1/runtime_types.go b/api/v1/runtime_types.go index 1ab41cbe..39137abf 100644 --- a/api/v1/runtime_types.go +++ b/api/v1/runtime_types.go @@ -149,7 +149,7 @@ type RuntimeShoot struct { Kubernetes Kubernetes `json:"kubernetes,omitempty"` Provider Provider `json:"provider"` Networking Networking `json:"networking"` - ControlPlane *gardener.ControlPlane `json:"controlPlane"` + ControlPlane *gardener.ControlPlane `json:"controlPlane,omitempty"` } type Kubernetes struct { diff --git a/config/crd/bases/infrastructuremanager.kyma-project.io_runtimes.yaml b/config/crd/bases/infrastructuremanager.kyma-project.io_runtimes.yaml index 5ca78a3b..034516ab 100644 --- a/config/crd/bases/infrastructuremanager.kyma-project.io_runtimes.yaml +++ b/config/crd/bases/infrastructuremanager.kyma-project.io_runtimes.yaml @@ -997,7 +997,6 @@ spec: secretBindingName: type: string required: - - controlPlane - name - networking - platformRegion diff --git a/internal/gardener/shoot/converter_test.go b/internal/gardener/shoot/converter_test.go index b6ad26ee..78dbb54f 100644 --- a/internal/gardener/shoot/converter_test.go +++ b/internal/gardener/shoot/converter_test.go @@ -111,7 +111,7 @@ func fixRuntime() imv1.Runtime { Nodes: "10.250.0.0/16", Services: "100.104.0.0/13", }, - ControlPlane: gardener.ControlPlane{ + ControlPlane: &gardener.ControlPlane{ HighAvailability: &gardener.HighAvailability{ FailureTolerance: gardener.FailureTolerance{ Type: gardener.FailureToleranceTypeZone,