Skip to content

Commit

Permalink
Switch rbac api version to v1 (GA from k8s 1.8) (#1497)
Browse files Browse the repository at this point in the history
  • Loading branch information
absoludity committed Feb 4, 2020
1 parent 4927c70 commit dd6a1b8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions chart/kubeapps/templates/apprepository-jobs-cleanup-rbac.yaml
@@ -1,5 +1,5 @@
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ template "kubeapps.apprepository-jobs-cleanup.fullname" . }}
Expand Down Expand Up @@ -28,7 +28,7 @@ rules:
- list
- delete
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "kubeapps.apprepository-jobs-cleanup.fullname" . }}
Expand Down
8 changes: 4 additions & 4 deletions chart/kubeapps/templates/apprepository-rbac.yaml
@@ -1,5 +1,5 @@
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ template "kubeapps.apprepository.fullname" . }}
Expand Down Expand Up @@ -43,7 +43,7 @@ rules:
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "kubeapps.apprepository.fullname" . }}
Expand All @@ -62,7 +62,7 @@ subjects:
namespace: {{ .Release.Namespace }}
---
# Define role, but no binding, so users can be bound to this role
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ .Release.Name }}-repositories-read
Expand All @@ -76,7 +76,7 @@ rules:
- get
---
# Define role, but no binding, so users can be bound to this role
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ .Release.Name }}-repositories-write
Expand Down
4 changes: 2 additions & 2 deletions chart/kubeapps/templates/db-secret-cleanup-rbac.yaml
@@ -1,5 +1,5 @@
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ template "kubeapps.db-secret-jobs-cleanup.fullname" . }}
Expand All @@ -20,7 +20,7 @@ rules:
verbs:
- delete
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "kubeapps.db-secret-jobs-cleanup.fullname" . }}
Expand Down
4 changes: 2 additions & 2 deletions chart/kubeapps/templates/kubeops-rbac.yaml
@@ -1,6 +1,6 @@
{{- if .Values.useHelm3 -}}
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ template "kubeapps.kubeops.fullname" . }}
Expand All @@ -23,7 +23,7 @@ rules:
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "kubeapps.kubeops.fullname" . }}
Expand Down
4 changes: 2 additions & 2 deletions chart/kubeapps/templates/tiller-proxy-rbac.yaml
@@ -1,6 +1,6 @@
{{- if not .Values.useHelm3 -}}
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ template "kubeapps.tiller-proxy.fullname" . }}
Expand All @@ -23,7 +23,7 @@ rules:
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "kubeapps.tiller-proxy.fullname" . }}
Expand Down

0 comments on commit dd6a1b8

Please sign in to comment.