kustomize icon indicating copy to clipboard operation
kustomize copied to clipboard

kustomize create should add config.kubernetes.io/local-config annotation

Open ringerc opened this issue 1 year ago • 2 comments

Eschewed features

  • [X] This issue is not requesting templating, unstuctured edits, build-time side-effects from args or env vars, or any other eschewed feature.

What would you like to have added?

The kustomize docs recommend that kustomization.yaml (and things like transformer configs) should have

metadata:
  annotations:
    config.kubernetes.io/local-config: "true"

but kustomize create does not add this itself.

Why is this needed?

see kustomize help docs-io-annotations

Can you accomplish the motivating task without this feature, and if so, how?

Yes, just patch the created resource with yq, or generate the kustomization manually.

What other solutions have you considered?

Not adding it, it's not (yet) vital

Anything else we should know?

No response

Feature ownership

  • [ ] I am interested in contributing this feature myself! 🎉

ringerc avatar Aug 11 '24 23:08 ringerc

/triage accepted

stormqueen1990 avatar Nov 08 '24 21:11 stormqueen1990

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Close this issue with /close

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

k8s-triage-robot avatar Nov 08 '25 22:11 k8s-triage-robot