kubernetes-sigs / kustomize

Customization of kubernetes YAML configurations
Apache License 2.0
10.97k stars 2.25k forks source link

kyaml: config.kubernetes.io/index annotation should be a string #1975

Closed bzub closed 4 years ago

bzub commented 4 years ago

config.kubernetes.io/index is a number during configuration function execution which makes the Resource technically invalid while set.

https://github.com/kubernetes-sigs/kustomize/blob/01105af14d36d4bb7f54aecf5e9d1ed40194e88a/functions/examples/validator-kubeval/image/main.go#L104-L109

pwittrock commented 4 years ago

I suspect it isn't an int specifically, but the yaml is ambiguous and some tools parse it as an int.