-
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
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 <akrejcir@redhat.com>
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?
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. |
1be5992
to
97595a7
Compare
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. |
- Added unit tests for template validator placement check in webhook. - Improved webhook unit test code to make it simpler to read and extend. - Improved webhook functional test code. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
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 <akrejcir@redhat.com>
Updated docs/configuration.md to use new API version, and removed section about feature gates. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
97595a7
to
e7a9949
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
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: