The kustomize-controller hardcodes kubectl as one of the fieldManagers whose changes it will always override:
|
{ |
|
// to undo changes made with 'kubectl apply --server-side --force-conflicts' |
|
Name: "kubectl", |
|
OperationType: metav1.ManagedFieldsOperationApply, |
|
}, |
|
{ |
|
// to undo changes made with 'kubectl apply' |
|
Name: "kubectl", |
|
OperationType: metav1.ManagedFieldsOperationUpdate, |
|
}, |
This is not always the right thing to do. It is totally possible for example that the kubectl usage is restricted through RBAC and only allowed during incidents. It is possible to work around this by setting a custom field manager in kubectl commands, but that is unintuitive and easy to forget, especially in stressful situations like incidents.
It would be great if there was an option to remove kubectl from this list.
The kustomize-controller hardcodes
kubectlas one of the fieldManagers whose changes it will always override:kustomize-controller/internal/controller/kustomization_controller.go
Lines 860 to 869 in 3ce3fc1
This is not always the right thing to do. It is totally possible for example that the kubectl usage is restricted through RBAC and only allowed during incidents. It is possible to work around this by setting a custom field manager in kubectl commands, but that is unintuitive and easy to forget, especially in stressful situations like incidents.
It would be great if there was an option to remove
kubectlfrom this list.