Skip to content

Flux kustomization finalizer is not domain-qualified #5662

@jaxels10

Description

@jaxels10

When installing the newest version of both Flux and the Flux CLI and running flux install on a cluster, I have run:

 flux create source oci podinfo \
    --url=oci://ghcr.io/stefanprodan/manifests/podinfo \
    --tag=6.6.2 \
    --interval=10m

and then

  flux create kustomization podinfo \
    --source=OCIRepository/podinfo \
    --target-namespace=default \
    --prune=true \
    --interval=5m

The kustomization that is created from this is:

apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  finalizers:
  - finalizers.fluxcd.io
  name: podinfo
  namespace: flux-system
spec:
  force: false
  interval: 5m0s
  path: ./
  prune: true
  sourceRef:
    kind: OCIRepository
    name: podinfo
  targetNamespace: default

However, the kustomize controller warns:
"metadata.finalizers: \"finalizers.fluxcd.io\": prefer a domain-qualified finalizer name including a path (/) to avoid accidental conflicts with other finalizer writers"

I would like to solve this issue myself and create a pull request, but I need a little bit of guidance on what the path should be (and if you even want this to change). I would also investigate whether this is an issue on more resources than just the kustomization. Please provide me some input and I will help contribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions