-
Notifications
You must be signed in to change notification settings - Fork 131
OCPBUGS-74511: remove RouteExternalCertificate feature gate #2585
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,10 +1,6 @@ | ||||
| package route | ||||
|
|
||||
| import ( | ||||
| "k8s.io/apiserver/pkg/util/feature" | ||||
| "k8s.io/component-base/featuregate" | ||||
|
|
||||
| openshiftfeatures "github.com/openshift/api/features" | ||||
| routecommon "github.com/openshift/library-go/pkg/route" | ||||
| ) | ||||
|
|
||||
|
|
@@ -21,7 +17,7 @@ var _ RouteValidationOptionGetter = &RouteValidationOpts{} | |||
| func NewRouteValidationOpts() *RouteValidationOpts { | ||||
| return &RouteValidationOpts{ | ||||
| opts: routecommon.RouteValidationOptions{ | ||||
| AllowExternalCertificates: feature.DefaultMutableFeatureGate.Enabled(featuregate.Feature(openshiftfeatures.FeatureGateRouteExternalCertificate)), | ||||
| AllowExternalCertificates: true, | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please amend the commit to use the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @bertinatto. Can you confirm if my new commit follows the expected pattern correctly?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks OK, @jcmoraisjr! I'll tagging and leaving a @jacobsee feel free to remove the hold when you want to merge. /lgtm
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bertinatto given this structure is being removed in https://github.com/openshift/library-go/pull/2122/files I think this whole opts should be removed from here as well, right?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wondering how far should we get on this - whether the supporting interface and struct implementation should be preserved (future use?), or the whole
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems we need to wait for library-go being merged first, since a refactored method is being caled here: kubernetes/openshift-kube-apiserver/admission/customresourcevalidation/route/validate_route.go Line 54 in 047d962
Merging library-go, then bump it on o/kubernetes later is a good move? Suggestions? |
||||
| }, | ||||
| } | ||||
| } | ||||
|
|
||||
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.
Now that
AllowExternalCertificatesis always true; I think a proper cleanup would require removal of this field from the library-go as well.https://github.com/openshift/library-go/blob/b6adacbfccda0d306d5a725c554bee0319d26f20/pkg/route/common.go#L20-L22
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.
Just gave it a try: openshift/library-go#2122