kubernetes-sigs / kustomize

Customization of kubernetes YAML configurations
Apache License 2.0
10.91k stars 2.24k forks source link

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

Open ringerc opened 1 month ago

ringerc commented 1 month ago

Eschewed features

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

k8s-ci-robot commented 1 month ago

This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.