Skip to content

Multiple Kustomizations managing the same resource #5611

@consooo

Description

@consooo

Currently, you can have multiple kustomizations managing the same kubernetes resource, for instance by having multiple kustomizations looking at the same path in a repo or a naming conflict.
This is typically because of a misconfiguration.

Since the value of the label kustomize.toolkit.fluxcd.io/name changes, the kustomize controller should know that this resource used to be managed by a different kustomization.

I propose that this should result in an error being thrown.
To remain compatible or if there are use cases where this is legitimate, maybe there should be an option in kustomization that its resources cannot belong to any other kustomization.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions