Skip to content

Commit

Permalink
Make use of rbac.authorization.k8s.io/v1
Browse files Browse the repository at this point in the history
Migrate RBAC resources to `rbac.authorization.k8s.io/v1`, because `rbac.authorization.k8s.io/v1beta1` is removed since k8s version => 1.22.

Fixes: Peripli#138
  • Loading branch information
pzamzow authored Apr 29, 2022
1 parent d4b491d commit 746b530
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions charts/service-broker-proxy-k8s/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: {{ .Release.Namespace }}
name: {{ template "service-broker-proxy.fullname" . }}-regsecretviewer
Expand Down Expand Up @@ -39,7 +39,7 @@ subjects:
---

kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: {{ .Values.targetNamespace }}
name: {{ template "service-broker-proxy.fullname" . }}
Expand Down Expand Up @@ -81,7 +81,7 @@ subjects:
---

kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: {{ .Values.targetNamespace }}
name: {{ template "service-broker-proxy.fullname" . }}-brokersecretviewer
Expand Down Expand Up @@ -123,7 +123,7 @@ subjects:
---

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ template "service-broker-proxy.fullname" . }}
labels:
Expand Down Expand Up @@ -158,4 +158,4 @@ subjects:
name: {{ template "service-broker-proxy.fullname" . }}
namespace: {{ .Release.Namespace }}

{{- end}}
{{- end}}

0 comments on commit 746b530

Please sign in to comment.