Repository navigation
pkg/daemon: check config changes to confirm we can apply them - #14
Conversation
|
/cc @ashcrow |
|
@sdemos: GitHub didn't allow me to request PR reviews from the following users: ashcrow. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
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. |
|
That's an evil robot. I'm absolutely in that org and am an approver for parts of this repo :-) |
There was a problem hiding this comment.
Should there be an log message that occurs here? I haven't looked in all calling functions but I could see confusion if the versions don't match, the admin/user doesn't know how to inspect the versions directly, and is told the old and new configs are not reconcilable.
There was a problem hiding this comment.
Same question for following similar areas.
There was a problem hiding this comment.
Yeah, logging the specific thing that went wrong is definitely a good idea.
|
/refresh |
|
/uncc @ashcrow |
|
/cc @ashcrow |
|
@stevekuznetsov: GitHub didn't allow me to request PR reviews from the following users: ashcrow. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
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. |
|
/uncc @ashcrow |
|
/assign |
|
/unassign |
|
/cc |
|
/uncc |
|
/shrug |
|
Something is borked with assigning you @ashcrow ... |
|
I think @sdemos has been getting the same issue as well :-/ FWIW I'm both in the openshift org as well as in the proper owners file. Maybe we are missing from a team? |
|
/cc @ashcrow |
|
Yeah it looks like you guys did not add the larger RedHat team as a collaborator so you guys individually were not actually collaborators on the repo |
There was a problem hiding this comment.
Thank you for using this style of comments. This is wonderful 🌈 ❤️.
|
@stevekuznetsov Thanks for taking a look and following up. We really appreciate it! |
|
This should probably wait and rebase on #26 |
39a873e to
1d4b22f
Compare
|
@sdemos anything else need to happen with this PR? |
|
@ashcrow I've been having trouble actually getting it tested on openshift, which is why I hadn't removed the wip tag. it's complete though. |
the daemon can't apply all config changes, only a well-defined subset of them. specifically, it can only apply changes to files, directories, links, and systemd units in ignition configs. if anything else changes, we set the status of the node to degraded so that the cluster can deal with us appropriately.
1d4b22f to
0efb9f5
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ashcrow, sdemos 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 |
pull in new openshift/library content
Address reviewer feedback: - Convention openshift#14: skip tests on SNO/Compact when multiple nodes needed - Generation rule for IsCompactOrSNOCluster skip at test body start - Post-generation verification to ensure 1:1 spec step coverage - Helper functions must be appended at end of file, not inserted between existing ones Signed-off-by: HarshwardhanPatil07 <[email protected]>
pkg/daemon: check config changes to confirm we can apply them
Address reviewer feedback: - Convention openshift#14: skip tests on SNO/Compact when multiple nodes needed - Generation rule for IsCompactOrSNOCluster skip at test body start - Post-generation verification to ensure 1:1 spec step coverage - Helper functions must be appended at end of file, not inserted between existing ones Signed-off-by: HarshwardhanPatil07 <[email protected]>
the daemon can't apply all config changes, only a well-defined subset of
them. specifically, it can only apply changes to files, directories,
links, and systemd units in ignition configs. if anything else changes,
we set the status of the node to degraded so that the cluster can deal
with us appropriately.
I use deepEqual from the reflect package for a few reasons -
==can't compare slices, and the ignition struct hierarchy has a lot of slices==compares the pointers and not the values they are pointing towe could instead just rip the whole thing apart and do all that manually but
it's a lot messier and more prone to mistakes, and deepEqual actually has
the exact semantics we need.
cc @ashcrow