-
Notifications
You must be signed in to change notification settings - Fork 524
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
Set up CustomNoUpgrade copies of CRDs #1490
Set up CustomNoUpgrade copies of CRDs #1490
Conversation
Hello @JoelSpeed! Some important instructions when contributing to openshift/api: |
CustomNoUpgrade is even-more-cutting-edge than TechPreviewNoUpgrade [1]. Before this commit, custom resources with properties with: +openshift:enable:FeatureSets=TechPreviewNoUpgrade were being sharded into Default and TechPreviewNoUpgrade flavors, which left CustomNoUpgrade clusters with neither shard. With this commit, the CustomNoUpgrade cluster will get the same CRD as the TechPreviewNoUpgrade cluster. It's not entirely clear to me how folks would annotate a CustomNoUpgrade-only resource, because: +openshift:enable:FeatureSets=CustomNoUpgrade might not generate a: release.openshift.io/feature-set: TechPreviewNoUpgrade,Default manifest for the less-cutting-edge clusters. But we can work that out in future work, and get this commit in now to get CustomNoUpgrade back off the ground. Generated with: $ sed -i 's/openshift:enable:FeatureSets=TechPreviewNoUpgrade/openshift:enable:FeatureSets=CustomNoUpgrade,TechPreviewNoUpgrade/' $(git grep -l openshift:enable:FeatureSets=) [1]: openshift#370 (comment)
f5a463c
to
744c871
Compare
Looks like a string that needs to be updated to the new |
Just pushed that as you commented, should be better now |
@@ -57,7 +57,7 @@ type DNSSpec struct { | |||
// infrastructure provider for DNS. | |||
// When omitted, this means the user has no opinion and the platform is left | |||
// to choose reasonable defaults. These defaults are subject to change over time. | |||
// +openshift:enable:FeatureSets=TechPreviewNoUpgrade | |||
// +openshift:enable:FeatureSets=CustomNoUpgrade;TechPreviewNoUpgrade |
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.
97802d4 doesn't describe the delimiter pivot from ,
to ;
. Is that a restriction of the kubebuilder syntax?
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.
Yeah that's parts of the syntax, different values within the same set should be ;
separated. If a validation rule has multiple different parameters, these are ,
separated, so you could have:
a:b:c=foo=1;2,bar=3;4
Then the code has the input foo: [1, 2], bar: [3, 4]
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
744c871
to
300d3b6
Compare
/retest These pass locally, wonder if there's some weird merging happening |
300d3b6
to
1fa9175
Compare
@JoelSpeed: all tests passed! 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/test-infra repository. I understand the commands that are listed here. |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed, wking 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 |
This is a continuation of #1481
We need to have a copy of the CRD for CRDs that are non-default for all available FeatureSets (that is
Default
,TechPreviewNoUpgrade
andCustomNoUpgrade
.Without these,
CustomNoUpgrade
clusters cannot bootstrap as the CVO does not know which CRD to install.For now, this updates the
CustomNoUpgrade
features to be identical toTechPreviewNoUpgrade
, in the future, users should be able to make a distinction between the two. However, I suspect everything in TechPreviewNoUpgrade should be inCustomNoUpgrade
as well.Note, we need openshift/kubernetes-sigs-controller-tools#15 to make this work, changes are pulled in manually now but will need to update the go.mod before merge
CC @wking