-
Notifications
You must be signed in to change notification settings - Fork 47
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
Update API version to v1beta3
#1127
base: main
Are you sure you want to change the base?
Conversation
The version v1beta2 was introduced in v0.18.0. Users probably have updated to this API version by now. Signed-off-by: Andrej Krejcir <[email protected]>
- Added unit tests for template validator placement check in webhook. - Improved webhook unit test code to make it simpler to read and extend. Signed-off-by: Andrej Krejcir <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to hold this back until the next release? Or do we want to switch to v1beta3 in the next release?
@@ -471,6 +470,13 @@ func getSsp() *sspv1beta2.SSP { | |||
return foundSsp | |||
} | |||
|
|||
func getSspV1Beta3() *sspv1beta3.SSP { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we already switch to v1beta3 by default in tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not do it yet. We can do it in 4.19.
webhooks/convert/convert.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be auto-generated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kubevirt uses https://pkg.go.dev/k8s.io/code-generator/cmd/conversion-gen . We can add it in a later PR. But currently we only have these few functions, so it may not be worth introducing an external tool.
fe22f77
to
7d4324b
Compare
I'm not sure I understand your question. Both versions will be available for a few releases. This PR should go to 4.18. |
The new API version removes feature gates and unused parameters. It is directly compatible with the old version, so a conversion webhook is not needed. The stored version is still set to v1beta2, and ssp-operator watches this old version. In a next release we may switch to using the v1beta3 as stored version. Signed-off-by: Andrej Krejcir <[email protected]>
Updated docs/configuration.md to use new API version, and removed section about feature gates. Signed-off-by: Andrej Krejcir <[email protected]>
1be5992
to
97595a7
Compare
Quality Gate failedFailed conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@akrejcir How often we do such API bump? Is it done because of TokenGenerationService
?
Rarely, only when we want to do some incompatible change. |
@akrejcir: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
What this PR does / why we need it:
Which issue(s) this PR fixes:
The new API version removes feature gates and unused parameters. It is directly compatible with the old version, so a conversion webhook is not needed.
The stored version is still set to
v1beta2
, andssp-operator
watches this old version. In a next release we may switch to using thev1beta3
as the stored version.Fixes: https://issues.redhat.com/browse/CNV-44976
Release note: