Skip to content

Commit

Permalink
Updating Helm scripts to use the V1 of the apiregistration and rbac.a…
Browse files Browse the repository at this point in the history
…uthorization APIs

Version v1beta1 of apiregistration.k8s.io and rbac.authorization.k8s.io have been deprecated in K8s/K8s scheduler v22.
apiregistration.k8s.io/v1 has been available since K8s v1.10 and rbac.authorization.k8s.io/v1 from  v1.8.

The also fixes the TAS install using helm charts for K8s v22.
  • Loading branch information
madalazar authored and togashidm committed Nov 18, 2021
1 parent a76fc35 commit 91282ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiregistration.k8s.io/v1beta1
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1beta1.custom.metrics.k8s.io
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ .Values.clusterRoleNme }}
Expand All @@ -19,7 +19,7 @@ rules:
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Values.clusterRoleBindingName }}
Expand Down

0 comments on commit 91282ff

Please sign in to comment.