Add validation webhook for shoot object in logging mode#203
Conversation
04177a8 to
9b8a7b5
Compare
|
/hold |
|
Just for the record: all current PROD shoots are not violating the current validation. |
… add ValidateControlPlaneConfigUpdate; add basic unit tests that the webhook works (not testing the actual validation)
dbf70e7 to
7a68d5f
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: breuerfelix The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
LGTM label has been added. DetailsGit tree hash: d9920f65bd93db33d5dab9b995248891284c12bf |
|
/retest |
1 similar comment
|
/retest |
|
/override pull-gardener-extension-provider-stackit-integration-tests |
|
@breuerfelix: Overrode contexts on behalf of breuerfelix: pull-gardener-extension-provider-stackit-integration-tests DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/unhold |
How to categorize this PR?
/kind enhancement
/cc @stackitcloud/ske-infrastructure
What this PR does / why we need it:
We already have validation functions for the
ControlPlaneConfigandInfrastructureConfigbut we had no validation webhook for the shoot object. This PR adds the webhook.It also fixes the
InfrastructureConfigas this was not working, as it is possible to habe noInfrastructureConfig.Networks.WorkersifInfrastructureConfig.Networks.IDis set.I created a cluster with and without SNA via the ske-api.
We want to use this for the ALB integration #54
Special notes for your reviewer:
Please also check the validation itself as this was not used before and needed already adoption in the
InfrastructureConfigpart.