Skip to content

Commit

Permalink
testing-adapter: use apiregistration.k8s.io/v1
Browse files Browse the repository at this point in the history
While deploying the testing-adapter, we can observe the following
warning message.

Warning: apiregistration.k8s.io/v1beta1 APIService is deprecated in
v1.19+, unavailable in v1.22+; use apiregistration.k8s.io/v1 APIService

Since the API group we are using is already deprecated, it's best to
update it.

Signed-off-by: Damien Grisonnet <[email protected]>
  • Loading branch information
dgrisonnet committed Dec 15, 2020
1 parent 20a80c3 commit 9bf1112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-adapter-deploy/testing-adapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ spec:
selector:
app: custom-metrics-apiserver
---
apiVersion: apiregistration.k8s.io/v1beta1
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1beta1.custom.metrics.k8s.io
Expand All @@ -119,7 +119,7 @@ spec:
groupPriorityMinimum: 100
versionPriority: 100
---
apiVersion: apiregistration.k8s.io/v1beta1
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1beta2.custom.metrics.k8s.io
Expand Down

0 comments on commit 9bf1112

Please sign in to comment.