-
Notifications
You must be signed in to change notification settings - Fork 4.8k
customresourcevalidation: switch Features to FeatureGate #22389
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
customresourcevalidation: switch Features to FeatureGate #22389
Conversation
adambkaplan
left a comment
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.
@sjenning small nits, otherwise lgtm
| } | ||
|
|
||
| func toFeatureV1(uncastObj runtime.Object) (*configv1.Features, field.ErrorList) { | ||
| func toFeatureV1(uncastObj runtime.Object) (*configv1.FeatureGate, field.ErrorList) { |
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.
nit: /s/toFeatureV1/toFeatureGateV1/
| var knownFeatureSets = sets.NewString("", string(configv1.TechPreviewNoUpgrade)) | ||
|
|
||
| func validateFeatureSpecCreate(spec configv1.FeaturesSpec) field.ErrorList { | ||
| func validateFeatureSpecCreate(spec configv1.FeatureGateSpec) field.ErrorList { |
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.
nit: rename to validateFeatureGateSpecCreate
| } | ||
|
|
||
| func validateFeatureSpecUpdate(spec, oldSpec configv1.FeaturesSpec) field.ErrorList { | ||
| func validateFeatureSpecUpdate(spec, oldSpec configv1.FeatureGateSpec) field.ErrorList { |
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.
nit: rename to validateFeatureGateSpecUpdate
|
@sjenning I also had to run |
30928cf to
865f9f8
Compare
|
@adambkaplan ok I think I got everything |
1611455 to
f304aa4
Compare
adambkaplan
left a comment
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.
code changes, build api update, and s2i bump lgtm.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adambkaplan, rphillips, sjenning 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 |
|
/retest |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
6 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest |
|
/refresh |
|
/retest |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/test e2e-aws-image-ecosystem |
|
/retest |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
@adambkaplan @rphillips @derekwaynecarr
addresses openshift/api#247 (comment)