From 0c8ece49be5dd4efc3f31fa2f8a9d28a7e86fdbd Mon Sep 17 00:00:00 2001 From: VOID404 Date: Fri, 20 Sep 2024 09:00:12 +0200 Subject: [PATCH] Add worker field to GCP --- internal/gardener/shoot/hyperscaler/gcp/config.go | 1 + internal/gardener/shoot/hyperscaler/gcp/config_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/gardener/shoot/hyperscaler/gcp/config.go b/internal/gardener/shoot/hyperscaler/gcp/config.go index 12facfc8..5abf1061 100644 --- a/internal/gardener/shoot/hyperscaler/gcp/config.go +++ b/internal/gardener/shoot/hyperscaler/gcp/config.go @@ -36,6 +36,7 @@ func NewInfrastructureConfig(workerCIDR string) v1alpha1.InfrastructureConfig { // Provisioner sets also deprecated Worker field. // Logic for comparing shoots in integration tests must be adjusted accordingly Workers: workerCIDR, + Worker: workerCIDR, }, } } diff --git a/internal/gardener/shoot/hyperscaler/gcp/config_test.go b/internal/gardener/shoot/hyperscaler/gcp/config_test.go index 9721c8c9..9e69fb7b 100644 --- a/internal/gardener/shoot/hyperscaler/gcp/config_test.go +++ b/internal/gardener/shoot/hyperscaler/gcp/config_test.go @@ -54,5 +54,6 @@ func TestInfrastructureConfig(t *testing.T) { assert.NoError(t, err) assert.Equal(t, "10.250.0.0/22", infrastructureConfig.Networks.Workers) + assert.Equal(t, "10.250.0.0/22", infrastructureConfig.Networks.Worker) }) }