Skip to content

Support new CRD api in v1.22 #850

@iben12

Description

@iben12

Summary

Since Kubernetes v1.22 apiextensions.k8s.io/v1beta1 is not supported for CustomResourceDefinitions. This prevents installing Devtron via helm, because it fails with the following error:

Error: INSTALLATION FAILED: failed to install CRD crds/crd-devtron.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

Since v1.22 only the apiextensions.k8s.io/v1 is supported.

Motivation

I would like to install Devtron in a cluster on k8s version v1.22.3.

Proposal

A future proof solution would be to include something like useLegacyCrdApi in the values and when it's enabled the CRDs could be rendered with the old API. People could use that for old Kubernetes versions. Since apiextensions.k8s.io/v1 is supported since v1.16 (which is quite old now) I suppose the number of affected users would be minimal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions