goabout / kustomize-sopssecretgenerator

Kustomize generator plugin that generates Secrets from sops-encrypted files
Apache License 2.0
114 stars 16 forks source link

Strip local-config and function annotations #37

Closed lack closed 2 years ago

lack commented 2 years ago

When kustomize calls a KRM function, the input includes a set of annotations. Many of these should be passed through to the resulting generated object, but ’config.kubernetes.io/local-configmust be stripped or the resulting object will be considered "local" and not rendered as output to kustomize. Likewise, leaving the generator configuration inconfig.kubernetes.io/function` is not needed and may be problematic if passed on to further generators.

Fixes #36

Signed-off-by: Jim Ramsay i.am@jimramsay.com

jcassee commented 2 years ago

This is great. Thank you for the contribution, Jim!

jcassee commented 2 years ago

Released as version 1.5.1