Skip to content

Commit

Permalink
Add worker field to GCP (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
VOID404 authored Sep 20, 2024
1 parent fe5a19a commit 2c772ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/gardener/shoot/hyperscaler/gcp/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions internal/gardener/shoot/hyperscaler/gcp/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

0 comments on commit 2c772ea

Please sign in to comment.