Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation of Kubernetes feature gates #111

Merged
merged 2 commits into from
Jun 14, 2021

Conversation

stoyanr
Copy link
Contributor

@stoyanr stoyanr commented Jun 10, 2021

How to categorize this PR?

/area usability
/area ops-productivity
/kind enhancement
/platform kubevirt

What this PR does / why we need it:
Adds validation of Kubernetes feature gates (in CloudControllerManager field of the ControlPlaneConfig custom resource), as requested in gardener/gardener#3987 and gardener/gardener-extension-provider-gcp#263. Similar to gardener/gardener-extension-provider-gcp#280 but for kubevirt.

Which issue(s) this PR fixes:
Fixes gardener/gardener-extension-provider-gcp#263 for kubevirt.

Special notes for your reviewer:

  • Also vendors g/g v1.24.1-0.20210608063816-580010846480 to be able to use the ValidateFeatureGates function.

Release note:

When creating or updating shoots, any Kubernetes feature gates mentioned are validated against the Kubernetes version. If any feature gates are unknown or not supported in the Kubernetes version, the validation fails.

@stoyanr stoyanr requested a review from a team as a code owner June 10, 2021 13:04
@stoyanr stoyanr marked this pull request as draft June 10, 2021 13:04
@gardener-robot gardener-robot added area/ops-productivity Operator productivity related (how to improve operations) area/usability Usability related kind/enhancement Enhancement, improvement, extension platform/kubevirt Container Native Virtualization (CNV) KubeVirt platform/infrastructure needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Jun 10, 2021
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jun 10, 2021
@stoyanr stoyanr force-pushed the add-feature-gates-validation branch from c0a9bbd to 038e67b Compare June 10, 2021 13:07
@gardener-robot gardener-robot added size/s Size of pull request is small (see gardener-robot robot/bots/size.py) and removed size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Jun 10, 2021
@stoyanr stoyanr marked this pull request as ready for review June 10, 2021 13:08
@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 10, 2021
@stoyanr
Copy link
Contributor Author

stoyanr commented Jun 10, 2021

/invite @rfranzke @ialidzhikov

@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 10, 2021
@gardener-robot
Copy link
Contributor

@rfranzke You have pull request review open invite, please check

Copy link

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Jun 13, 2021
@stoyanr stoyanr merged commit 238583c into gardener-attic:master Jun 14, 2021
@stoyanr stoyanr deleted the add-feature-gates-validation branch June 14, 2021 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ops-productivity Operator productivity related (how to improve operations) area/usability Usability related kind/enhancement Enhancement, improvement, extension needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) platform/kubevirt Container Native Virtualization (CNV) KubeVirt platform/infrastructure reviewed/lgtm Has approval for merging size/s Size of pull request is small (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ControllerManager Feature Gate CustomResourceValidation no longer exists
6 participants