Skip to content

Commit

Permalink
Fix for unit tests plus Control Plane is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
akgalwas committed Aug 12, 2024
1 parent 2186d7f commit 98505c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/v1/runtime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,6 @@ spec:
secretBindingName:
type: string
required:
- controlPlane
- name
- networking
- platformRegion
Expand Down
2 changes: 1 addition & 1 deletion internal/gardener/shoot/converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 98505c0

Please sign in to comment.