Skip to content

The kubectl managed fields are removed when SSA policy is set to Merge #1574

@alvaroaleman

Description

@alvaroaleman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/server-side-applySSA related issues and pull requestsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions