What happened:
https://github.com/kubernetes-incubator/service-catalog/blob/master/charts/catalog/templates/apiregistration.yaml#L7-L10
helm template cmd does not support this. https://github.com/helm/helm/issues/3377
What you expected to happen:
Allow default either in values.yaml or just pick one and doc the kube version you need. Just add additional else if to allow the default to take effect.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version):kubectl get cm -n kube-system extension-apiserver-authentication -o yaml and look for requestheader-XXX fields--set any extra values?This is a bug with template - these values are intended to be filled in with information from the kube server when you use these templates to helm install.
If you have a supported Minimum kube version (1.12) for this, it would make fixing this very easy:
{{- if .Capabilities.APIVersions.Has "apiregistration.k8s.io/v1beta1" }}
apiVersion: apiregistration.k8s.io/v1beta1
{{- else if .Capabilities.APIVersions.Has "apiregistration.k8s.io/v1alpha1" }}
apiVersion: apiregistration.k8s.io/v1alpha1
{{- else }}
apiVersion: apiregistration.k8s.io\/v1beta1
{{- end }}
this was fixed in Dug's #2609, right? Closing.
FYI, helm template now supports passing Capabilities.APIVersions: helm/helm#3377
Most helpful comment
FYI,
helm templatenow supports passingCapabilities.APIVersions: helm/helm#3377