-
Notifications
You must be signed in to change notification settings - Fork 187
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
Support additional Field Managers in the disallow list #1017
Support additional Field Managers in the disallow list #1017
Conversation
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.
@Nalum please add tests for this, similar to kustomization_force_test.go
@stefanprodan would this change be picked up automatically in the docs or should I update them? Assuming I should update them they are located in the flux2 or website repo? |
@Nalum please squash into one or two commits and force push. I will make the docs changes in website before the release, there are other changes besides this to the controller global configuration. |
…nd build up the disallow list to include these Signed-off-by: Luke Mallon (Nalum) <[email protected]> Setup new flag to allow overriding additional managers and pass this data to the KustomizationReconciler instance Signed-off-by: Luke Mallon (Nalum) <[email protected]> Update field name to be more specific Co-authored-by: Stefan Prodan <[email protected]> Signed-off-by: Luke Mallon <[email protected]> Update the remaining fieldManagers vars to match the new definition Signed-off-by: Luke Mallon (Nalum) <[email protected]> Change AdditionalFieldManagers to DisallowedFieldManagers Signed-off-by: Luke Mallon (Nalum) <[email protected]> Add unit test to cover the new disallowed field manager change Signed-off-by: Luke Mallon (Nalum) <[email protected]> Use correct variable in the final Run Signed-off-by: Luke Mallon (Nalum) <[email protected]> Undo the timeout multiplication Signed-off-by: Luke Mallon (Nalum) <[email protected]> Update internal/controller/kustomization_disallowed_managers_test.go Co-authored-by: Stefan Prodan <[email protected]> Signed-off-by: Luke Mallon <[email protected]> Check for we're not getting errors on the Patch calls and remove the eventually as not needed here Signed-off-by: Luke Mallon (Nalum) <[email protected]> Update main.go Co-authored-by: Stefan Prodan <[email protected]> Signed-off-by: Luke Mallon <[email protected]>
4db46b2
to
96a7722
Compare
Think this is good for testing now @stefanprodan 👍 |
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.
LGTM
Thanks @Nalum for this great contribution 🏅
Setup a new flag to pass in the names of managers that should be overwritten in the same way that
kubectl
changes are.Closes #982