-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is template function .Capabilities.APIVersions.has
reliable using helm template?
#10760
Comments
|
By |
Yes. |
ok I see, to sum up: helm template function Related to argoproj/argo-cd#3640 Thanks you, I am continuing on this side. |
Hi, is there any documentation on how to make |
This patch hints to helm the capabilities to make the templating behave properly[1] when using .Capabilities.APIVersions.Has in charts. [1] - helm/helm#10760 Bug: T358468
) This patch hints to helm the capabilities to make the templating behave properly[1] when using .Capabilities.APIVersions.Has in charts. [1] - helm/helm#10760 Bug: T358468
Output of
helm version
: v3.8.1Output of
kubectl version
: v1.19.15Cloud Provider/Platform (AKS, GKE, Minikube etc.): on premise (kubespray)
Deploy workflow: using argoCD (
helm template
)Helm template snippet:
Trouble
helm template --kube-version 1.19.0 --api-versions policy/v1beta1 .
should displayapiVersion: policy/v1beta1
but.Capabilities.APIVersions.Has "policy/v1"
returns true. In my understanding,--kube-version 1.19.0
should make Helm , k8s 1.19.0 compatible.helm install
is OK, but argoCD is doing ahelm template
.(I took the snippet from https://github.com/elastic/helm-charts/blob/main/elasticsearch/templates/poddisruptionbudget.yaml )
I see bitnami is doing this instead of relying on
.Capabilities.APIVersions.Has
function: https://github.com/bitnami/charts/blob/master/bitnami/common/templates/_capabilities.tpl#L65Is template function
.Capabilities.APIVersions.has
reliable? or is it a bug on argoCD side?Or should I use only Helm v3.5.X with kubernetes v1.19? (according https://github.com/helm/helm/blob/v3.5.4/go.mod#L47)
The text was updated successfully, but these errors were encountered: