kubernauts / kubernauts/jmeter-operator

apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+

Open
#29 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
116
Forks
58
PR merge metrics
No merged PRs in 30d

Description

I was following installation steps and I got this deprecation warning:

> Warning: apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition

```
$ kubectl apply -f deploy/crds/loadtest_v1alpha1_jmeter_crd.yaml
Warning: apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
customresourcedefinition.apiextensions.k8s.io/jmeters.loadtest.jmeter.com created

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:18:45Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.0", GitCommit:"af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38", GitTreeState:"clean", BuildDate:"2020-12-08T17:51:19Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with deploy/crds/loadtest_v1alpha1_jmeter_crd.yaml and compare its CustomResourceDefinition API version with the Kubernetes warning. Apply the manifest using a Kubernetes version where apiextensions.k8s.io/v1beta1 is unavailable. Done means the CRD applies successfully without the deprecation or unsupported-API warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
devops, infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.