mirror of
https://github.com/stakater/Reloader.git
synced 2026-08-27 14:37:17 +00:00
Add support for legacy rbac
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
{{- if and .Values.reloader.watchGlobally (.Values.reloader.rbac.enabled) }}
|
||||
{{- if and .Values.reloader.legacy.rbac }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
{{ else }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
{{- end }}
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
labels:
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{{- if and .Values.reloader.watchGlobally (.Values.reloader.rbac.enabled) }}
|
||||
{{- if and .Values.reloader.legacy.rbac }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
{{ else }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
{{- end }}
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
labels:
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{{- if and (not (.Values.reloader.watchGlobally)) (.Values.reloader.rbac.enabled) }}
|
||||
{{- if and .Values.reloader.legacy.rbac }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
{{ else }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
{{- end }}
|
||||
kind: Role
|
||||
metadata:
|
||||
labels:
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{{- if and (not (.Values.reloader.watchGlobally)) (.Values.reloader.rbac.enabled) }}
|
||||
{{- if and .Values.reloader.legacy.rbac }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
{{ else }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
{{- end }}
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
labels:
|
||||
|
||||
@@ -17,6 +17,8 @@ reloader:
|
||||
watchGlobally: true
|
||||
# Set to true if you have a pod security policy that enforces readOnlyRootFilesystem
|
||||
readOnlyRootFileSystem: false
|
||||
legacy:
|
||||
rbac: false
|
||||
matchLabels: {}
|
||||
deployment:
|
||||
nodeSelector:
|
||||
|
||||
Reference in New Issue
Block a user