Repository navigation
Description
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: [email protected]
# 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
Activity
bacongobbler commentedon Jun 22, 2018
Can you try a canary release? I don't think this feature exists in 2.9 at this point, only in master.
bamb00 commentedon Jun 22, 2018
@bacongobbler Where can I get the canary release?
bacongobbler commentedon Jun 22, 2018
https://docs.helm.sh/using_helm/#from-canary-builds
Just make sure to run
helm initwith the--canary-imageflag :)bacongobbler commentedon Jun 22, 2018
Closing as answered but please feel free to re-open if you have further issues. Thanks!
bamb00 commentedon Jun 23, 2018
@bacongobbler I'm running version 2.8.1, got this error failed: no objects visited.
Is it because the feature is not available?
Thanks in advance.
yevhenvolchenko commentedon Jun 25, 2018
@bacongobbler
It's in v2.9.1, isn't it?
v2.9.1...master
0699ec4
gintautassulskus commentedon Jul 3, 2018
Does not seem to work in v2.9.1:
Still getting:
Error: apiVersion "certmanager.k8s.io/v1alpha1" in ca-issuer.yaml is not availablebacongobbler commentedon Jul 3, 2018
As mentioned previously, this is not available in 2.9, and definitely not in 2.8. it will become available in 2.10. you can test the release candidate if you want to use it!
gintautassulskus commentedon Jul 3, 2018
Thanks. I misunderstood that 2.9 is not the same as 2.9.* and that 2.9 != 2.9.1
bacongobbler commentedon Jul 3, 2018
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. :)
awcheney commentedon Sep 21, 2018
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].awcheney commentedon Sep 21, 2018
helm version
Client: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.10.0", GitCommit:"9ad53aac42165a5fadc6c87be0dea6b115f93090", GitTreeState:"clean"}
bacongobbler commentedon Sep 21, 2018
yep! #3982 was made available in v2.10.0.
desaintmartin commentedon Sep 21, 2018
This is funny because I have the same problem upgrading to the latest version of stable/cert-manager (v0.5.0), which adds this annotation: helm/charts@e0505bb#diff-8b13fd9d83b627ff683d00d1e7ed5d6d.
It actually removed my CRDs. In this case, it doesn't cause helm to fail, but causes cert-manager to be completely blocked.
bacongobbler commentedon Sep 21, 2018
cc @munnerz ^
munnerz commentedon Sep 21, 2018
Huh. This seems like Helm behaving weirdly when upgrading a Helm chart that previously did not have a
crd-installhook.We don't do anything fancy here, so my guess is this is a bug in Helm itself.
Can anyone more familiar with this area of Helm's code comment on how the upgrade may be handled?
munnerz commentedon Sep 21, 2018
Perhaps this should be broken out into a new issue 😄
cc @technosophos
maver1ck commentedon Sep 26, 2018
Added new issue.
I have same problem.
The workaround is to reinstall cert-manager chart.
mmerrill3 commentedon Sep 26, 2018
Hi all, we too ran into this issue, where we upgraded using the new chart for version 0.5.0, and it completely removed all of our instantiated CRDs. We had to manually put them back, since the instances of the CRDs were spread out amongst many projects that were deployed as separate helm charts.
adamcheney commentedon Oct 5, 2018
@bacongobbler - sorry for the delay - lots of other stuff on...
We're definitely using Helm 2.10 (version as per my last post a couple of weeks ago) but the hook does not seem to work for us. I'm trying to install the Istio chart from https://github.com/istio/istio/tree/master/install/kubernetes/helm/istio - I know their instructions say to pre-install the CRDs with a 'kubectl apply -f' but with this version of helm is should just work, right?
It doesn't...:
[...]
All these CustomResourceDefinitions have the annotation:
This is not an upgrade - this was a pull from github and then a
helm installinto k8s (after scrubbing all traces of past efforts out.What am I missing?
munnerz commentedon Oct 5, 2018
I've opened #4740 to discuss the issues with crd-install that we have previously discussed here @mmerrill3 @maver1ck @desaintmartin