Skip to content

crd-install apiextensions.k8s.io/v1 does not work #6783

Closed

Description

@strainovic

err = scheme.Scheme.Convert(info.Object, crd, nil)

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

Activity

  1. thomastaylor312 commented on Oct 28, 2019

    @thomastaylor312
    Contributor

    @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.

  2. added
    bug
    on Oct 28, 2019
  3. added this to the 2.15.2 milestone on Oct 28, 2019
  4. thomastaylor312 commented on Oct 28, 2019

    @thomastaylor312
    Contributor

    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

  5. added
    v2.x
    v3.x
    on Oct 28, 2019
  6. bacongobbler commented on Oct 29, 2019

    @bacongobbler
    Member

    fixed in #6808 for Helm 3, and #6810 for Helm 2.

  7. strainovic commented on Nov 12, 2019

    @strainovic
    Author

    After upgrade to 2.16.1 bug is still here :(

    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.

  8. lsoica commented on Feb 10, 2020

    @lsoica

    Same here. with 2.16.1.

    So why is this closed ?

  9. remzinho commented on Feb 10, 2020

    @remzinho

    I had the same issue with 2.16.1.
    Can we please reopen this? @bacongobbler

  10. bacongobbler commented on Feb 10, 2020

    @bacongobbler
    Member

    What version of Kubernetes are you running on? It’s possible this API is unavailable if you’re using an older version of Kubernetes

  11. remzinho commented on Feb 10, 2020

    @remzinho

    tried with 1.16.3 and 1.17.2

  12. bacongobbler commented on Feb 10, 2020

    @bacongobbler
    Member

    Weird. Okay, I’ll go ahead and reopen this. Please let us know if you find anything interesting.

  13. 1 remaining item

  14. thomastaylor312 commented on Jun 22, 2020

    @thomastaylor312
    Contributor

    Yeah, that is likely the problem. We'll need to port that to the dev-v2 branch

  15. removed
    v3.x
    on Jun 22, 2020
  16. bacongobbler commented on Jun 22, 2020

    @bacongobbler
    Member

    Good catch, @caseydavenport. Yes, that appears to be the case.

  17. modified the milestones: 2.16.0, 2.16.10 on Jul 9, 2020
  18. bacongobbler commented on Jul 9, 2020

    @bacongobbler
    Member

    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.

  19. jimmidyson commented on Jul 15, 2020

    @jimmidyson

    I've pushed #8460 that fixes this - hope we can merge soon ready for a new 2.x release.

  20. removed this from the 2.16.10 milestone on Aug 12, 2020
  21. mattfarina commented on Aug 12, 2020

    @mattfarina
    Collaborator

    Removed from milestone as it is not ready and the release is going out.

  22. bacongobbler commented on Aug 14, 2020

    @bacongobbler
    Member
  23. Xtigyro commented on Oct 26, 2020

    @Xtigyro

    @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

  24. bacongobbler commented on Oct 26, 2020

    @bacongobbler
    Member
  25. Xtigyro commented on Oct 26, 2020

    @Xtigyro

    I hoped the already written fixes might be allowed to sneak in, huh.

    Thanks for your reply, @bacongobbler!

  26. bacongobbler commented on Oct 26, 2020

    @bacongobbler
    Member

    #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugv2.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions