-
Notifications
You must be signed in to change notification settings - Fork 410
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
[WIP] Attempt at feature-gating the default image choice #3313
[WIP] Attempt at feature-gating the default image choice #3313
Conversation
This pushes feature gate detection through into the render controller so it can use them to decide whether it should prefer the new format container image or not. This also adds a helper to figure out if a given feature gate is enabled. This currently does *not* re-queue the pool if a feature gate changes, it only checks what's there when it's time to render a config.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jkyros 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 |
Offhand I feel like preventing upgrades is unnecessary here and actually actively breaks testing out what we're trying to accomplish. We definitely want to be able to test maintaining an override for the OS while upgrading OCP. |
We had a realtime chat on this and briefly I'd summarize my end point of view is that we should instead add a |
If the goal is to gate at the pool level, would it belong better as part of the |
@jkyros: The following tests 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/test-infra repository. I understand the commands that are listed here. |
@jkyros: PR needs rebase. 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 think at this point we aren't going to do this, so closing just to clear up the large MCO PR queue. (But like a lot of things I know there's been some back and forth, obviously please do reopen if I'm wrong or this changes) |
I was trying to find a good way to "soft" gate the default behavior of defaulting to the new format image ( per [WIP] Teach MCO to use the new-format image by default #3258)
It occurred to me that it needed to be gated both during bootstrap and during live operation and I was basically re-implementing feature gates poorly, so I figured maybe I should just try to use them.
This is just trying to see what it feels like to have the controller bootstrap and "live" render controller react to feature gates.
I thought about just pushing the featuregates into controllerconfig (they currently only make it into renderconfig right now), but:
I think I'm probably"cheating" by "soft" using featuregates since I don't actually require a featureset be enabled
This does seem to work though -- if you set the featuregate at installtime (e.g.
openshift-install create manifests
and putting something likein the manifests folder.