helm: crd-install annotation doesn't work
BUG
Output of helm version
:
Client: &version.Version{SemVer:“v2.9.1”, GitCommit:“20adb27c7c5868466912eebdf6664e7390ebe710”, GitTreeState:“clean”}
Server: &version.Version{SemVer:“v2.9.1”, GitCommit:“20adb27c7c5868466912eebdf6664e7390ebe710”, GitTreeState:“clean”}
Output of kubectl version
:
Client Version: version.Info{Major:“1”, Minor:“10”, GitVersion:“v1.10.4”, GitCommit:“5ca598b4ba5abb89bb773071ce452e33fb66339d”, GitTreeState:“clean”, BuildDate:“2018-06-06T15:22:13Z”, GoVersion:“go1.9.6”, Compiler:“gc”, Platform:“darwin/amd64”}
Server Version: version.Info{Major:“1”, Minor:“10+”, GitVersion:“v1.10.4-gke.2”, GitCommit:“eb2e43842aaa21d6f0bb65d6adf5a84bbdc62eaf”, GitTreeState:“clean”, BuildDate:“2018-06-15T21:48:39Z”, GoVersion:“go1.9.3b4”, Compiler:“gc”, Platform:“linux/amd64”}
Cloud Provider/Platform (AKS, GKE, Minikube etc.): GKE
Steps to reproduce
- Download https://github.com/kubernetes/charts/tree/master/stable/cert-manager
- Update ./cert-manager/templates/certificate-crd.yaml’s, ./cert-manager/templates/clusterissuer-crd.yaml’s, ./cert-manager/templates/issuer-crd.yaml’s
matadata:
with:
annotations:
"helm.sh/hook": crd-install
- Add stage.yaml to ./cert-manager/templates:
apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-stage
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: yvolchenko@luxoft.com
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt-staging
# ACME DNS-01 provider configurations
http01: {}
- Run
helm install --name cert-manager --namespace kube-system ./cert-manager
Output: Error: apiVersion “certmanager.k8s.io/v1alpha1” in cert-manager/templates/stage.yaml is not available
Output tiller: [tiller] 2018/06/22 11:10:37 preparing install for cert-manager [storage] 2018/06/22 11:10:37 getting release history for “cert-manager” [tiller] 2018/06/22 11:10:37 rendering cert-manager chart using values 2018/06/22 11:10:37 info: skipping unknown hook: “crd-install” 2018/06/22 11:10:37 info: manifest “cert-manager/templates/00-namespace.yaml” is empty. Skipping. 2018/06/22 11:10:37 info: skipping unknown hook: “crd-install” [tiller] 2018/06/22 11:10:37 failed install prepare step: apiVersion “certmanager.k8s.io/v1alpha1” in cert-manager/templates/cluster-issuer-stage.yaml is not available
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (10 by maintainers)
Commits related to this issue
- upgrade helm to workaround https://github.com/helm/helm/issues/4259 — committed to ZigZagT/Networking by deleted user 6 years ago
Hi folks - is this available in 2.10? I ask because we’re using 2.10 and cannot get our Istio installation to work. We are using the Istio chart at https://github.com/istio/istio/tree/master/install/kubernetes/helm as a subchart of our one; our chart fails with:
Error: validation failed: [unable to recognize "": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha3", unable to recognize "": no matches for kind "DestinationRule" in version "networking.istio.io/v1alpha3",
[… there are another 50-odd of these].Oh sorry! Probably getting lost in translation. When I mean 2.9 I really mean 2.9.x, which is to say that this feature does not exist in any 2.9.x release tag. 😃