helm: crd-install apiextensions.k8s.io/v1 does not work
https://github.com/helm/helm/blob/0a9bf4f966726f0bb0faa6a82db29909abe16126/pkg/kube/client.go#L597
Helm version: 2.15.1
Client: &version.Version{SemVer:"v2.15.1", GitCommit:"cf1de4f8ba70eded310918a8af3a96bfe8e7683b", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.15.1", GitCommit:"cf1de4f8ba70eded310918a8af3a96bfe8e7683b", GitTreeState:"clean"}
Kubernetes version: 1.16.2
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:09:08Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Kubernetes distribution: Canonical Microk8s
I’ve tried to deploy CRD with new apiextensions.k8s.io/v1 API but once I add “helm.sh/hook”: crd-install installation failed with error “unable to convert to CRD type…”.
Error: unable to convert to CRD type: no kind "CustomResourceDefinition" is registered for version "apiextensions.k8s.io/v1" in scheme "k8s.io/client-go/kubernetes/scheme/register.go:65"
apiextensions.k8s.io/v1beta1 is depricated in 1.16 and will be removed in 1.19.
How much is it likely for this bug to be fixed in 2.x version?
Thanks
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 20 (11 by maintainers)
#8460 required more work before it could be merged, so it was not in a state to be merged into Helm core. We asked for an update and the author mentioned they would not be able to work on it further.
We announced plans to deprecate Helm 2 over a year ago, and the merge window for Helm 2 bug fixes passed a little over 2 months ago. So it’s a little late for that.
I had the same issue with 2.16.1. Can we please reopen this? @bacongobbler
Same here. with 2.16.1.
So why is this closed ?
After upgrade to 2.16.1 bug is still here 😦
I use helm.sh/hook: “crd-install” annotations to install my CRD.
Actually, CRD got installed but there is no helm release.
Actually I just found it in the release notes. Look like we will need to update client-go for both v2 and v3: https://kubernetes.io/docs/setup/release/notes/#api-changes