You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
crd-install apiextensions.k8s.io/v1 does not work #6783
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
Reacted by Laurentiu Soica, Remzi and Andreas Sommer
@strainovic Thanks for reporting this. So just to double check, apiextensions v1 is new in 1.16 right? If so, this would be a bug we should fix and we would have to update our version of client-go.
helm version
Client: &version.Version{SemVer:"v2.16.1", GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.1", GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
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:67"
I use helm.sh/hook: "crd-install" annotations to install my CRD.
Actually, CRD got installed but there is no helm release.
Gentle reminder that the support window for bugfixes closes in a month. If nobody works on this, we'll have to close this out and consider this as Helm 2 only supporting the apiextensions v1beta1 API.
Gentlemen - any chance the fix can go in the upcoming Helm v2.17?
The latest versions of the Kube-Prometheus Stack Helm chart (post v9.4.10) cannot be installed using Helm v2 - prometheus-community/helm-charts#202.
#8460required 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.
Activity
thomastaylor312 commentedon Oct 28, 2019
@strainovic Thanks for reporting this. So just to double check, apiextensions v1 is new in 1.16 right? If so, this would be a bug we should fix and we would have to update our version of client-go.
thomastaylor312 commentedon Oct 28, 2019
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
bacongobbler commentedon Oct 29, 2019
fixed in #6808 for Helm 3, and #6810 for Helm 2.
strainovic commentedon Nov 12, 2019
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.
lsoica commentedon Feb 10, 2020
Same here. with 2.16.1.
So why is this closed ?
remzinho commentedon Feb 10, 2020
I had the same issue with 2.16.1.
Can we please reopen this? @bacongobbler
bacongobbler commentedon Feb 10, 2020
What version of Kubernetes are you running on? It’s possible this API is unavailable if you’re using an older version of Kubernetes
remzinho commentedon Feb 10, 2020
tried with 1.16.3 and 1.17.2
bacongobbler commentedon Feb 10, 2020
Weird. Okay, I’ll go ahead and reopen this. Please let us know if you find anything interesting.
1 remaining item
thomastaylor312 commentedon Jun 22, 2020
Yeah, that is likely the problem. We'll need to port that to the dev-v2 branch
bacongobbler commentedon Jun 22, 2020
Good catch, @caseydavenport. Yes, that appears to be the case.
bacongobbler commentedon Jul 9, 2020
Gentle reminder that the support window for bugfixes closes in a month. If nobody works on this, we'll have to close this out and consider this as Helm 2 only supporting the apiextensions v1beta1 API.
jimmidyson commentedon Jul 15, 2020
I've pushed #8460 that fixes this - hope we can merge soon ready for a new 2.x release.
mattfarina commentedon Aug 12, 2020
Removed from milestone as it is not ready and the release is going out.
bacongobbler commentedon Aug 14, 2020
We are no longer accepting bug fixes for Helm 2. See https://helm.sh/blog/helm-v2-deprecation-timeline/ for more details.
Xtigyro commentedon Oct 26, 2020
@mattfarina @bacongobbler @jimmidyson
Gentlemen - any chance the fix can go in the upcoming Helm v2.17?
The latest versions of the Kube-Prometheus Stack Helm chart (post
v9.4.10) cannot be installed using Helm v2 - prometheus-community/helm-charts#202.CC: @scottrigby @brancz
bacongobbler commentedon Oct 26, 2020
@Xtigyro see #6783 (comment).
Xtigyro commentedon Oct 26, 2020
I hoped the already written fixes might be allowed to sneak in, huh.
Thanks for your reply, @bacongobbler!
bacongobbler commentedon Oct 26, 2020
#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.