Repository navigation
render_controller: render on template MCs changes - #640
Merged
Merged
Conversation
Member
Author
|
/hold I'm syncing with Abhinav on this, related to #632 |
runcom
force-pushed
the
render-everything
branch
from
April 17, 2019 16:31
9719b56 to
2e0e53b
Compare
Member
Author
|
Synced with Abhinav, this is now ready to go and I've added a failing test to avoid regression. |
I was working on triggering a resync when the pull-secret change and I got to this: - pull-secret changes - template_controller runs and update 00-<role> with the new pull-secret - stop, the new pull secret is now just in 00-<role> MCs and not on nodes since there's no rendered MC which contains it Now, the above isn't quite right since after an admin updates the pull-secret, it must be rolled out to nodes to be able to pull images (for e.g. an upgrade). What's happening is that the template_controller sets an OwnerReference of Kind: ControllerConfig, whether the render_controller only reacts to a Kind: MachineConfigPool (and MCs that aren't controller at all, like the template_controller tho). This patch fixes the controller checks and we now enqueue an MCP for the given MC if we have a pool anyway. Signed-off-by: Antonio Murdaca <[email protected]>
runcom
force-pushed
the
render-everything
branch
from
April 17, 2019 16:33
2e0e53b to
961aaf4
Compare
Member
Author
|
/hold cancel |
Contributor
|
just waiting until it goes green to lgtm |
Member
Author
I think it avoids a round-trip if you put it now anyway (assuming it lgt(y)). The PR won't be merged anyway if the tests aren't green. |
Contributor
|
/lgtm |
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kikisdeliveryservice, runcom 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 |
ptalgulk01
pushed a commit
to ptalgulk01/machine-config-operator
that referenced
this pull request
May 15, 2026
render_controller: render on template MCs changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I was working on triggering a resync when the pull-secret change and I
got to this:
nodes since there's no rendered MC which contains it
Now, the above isn't quite right since after an admin updates the
pull-secret, it must be rolled out to nodes to be able to pull images
(for e.g. an upgrade).
What's happening is that the template_controller sets an OwnerReference
of Kind: ControllerConfig, whether the render_controller only reacts to
a Kind: MachineConfigPool (and MCs that aren't controller at all, like
the template_controller tho).
This patch fixes the controller checks and we now enqueue an MCP for the
given MC if we have a pool anyway.
Signed-off-by: Antonio Murdaca [email protected]