-
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 #982
Comments
@stefanprodan gonna take a look at doing this, if no one else has already started on it, over the next few days |
I propose we add a string array flag type called something like |
Should it override the list or just add to it? I was thinking just appending but will follow the existing approach if that is to override the list. I'll see what I can find on the specifics of what Lens does. |
It should add to it. |
Would it be too much to add support for the user to specify the action? e.g. Maybe this is putting too much into the users hands? Would have logic to verify the action and log a warning if not, don't add to the list and continue to run. |
A tool could migrate from client-side apply to server-side apply without users being aware of it. Also this flag will be set by a cluster admin, while the editors like Lens are used by devs, admins may not be aware that Lens has switched the apply procedure, it's a implementation detail. I see no reason why would someone would allow edits via SSA but deny it via client-side. |
In working with this controller and messing around with
kubectl edit
and Lens to make changes to resources I have found that Lens will update the list ofmanagedFields
with it's own entry wheremanager
is set tonode-fetch
. As this is not part of the below code Flux does not undo the changes made (assuming they do not conflict with flux managed fields) and we are left with the resource being in an unknown state where the changes have come from outside the cluster.It would be great to be able to configure the below list so that we can have other managers in this list:
kustomize-controller/internal/controller/kustomization_controller.go
Lines 684 to 705 in 5e11b65
The text was updated successfully, but these errors were encountered: