Browse Source

helm

master
Vladimir Smagin 4 months ago
parent
commit
06e9370411
4 changed files with 6 additions and 6 deletions
  1. +1
    -1
      deploy/helm_chart/templates/clusterrole.yaml
  2. +2
    -2
      deploy/helm_chart/templates/clusterrole_binding.yaml
  3. +1
    -1
      deploy/helm_chart/templates/role.yaml
  4. +2
    -2
      deploy/helm_chart/templates/role_binding.yaml

+ 1
- 1
deploy/helm_chart/templates/clusterrole.yaml View File

@@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: wordpress-operator
name: {{ include "wordpress-operator.serviceAccountName" . }}
rules:
- apiGroups:
- ""


+ 2
- 2
deploy/helm_chart/templates/clusterrole_binding.yaml View File

@@ -2,7 +2,7 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: wordpress-operator
name: {{ include "wordpress-operator.serviceAccountName" . }}
subjects:
- kind: ServiceAccount
name: {{ include "wordpress-operator.serviceAccountName" . }}
@@ -13,6 +13,6 @@ subjects:
{{ end }}
roleRef:
kind: ClusterRole
name: wordpress-operator
name: {{ include "wordpress-operator.serviceAccountName" . }}
apiGroup: rbac.authorization.k8s.io
{{- end }}

+ 1
- 1
deploy/helm_chart/templates/role.yaml View File

@@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: wordpress-operator
name: {{ include "wordpress-operator.serviceAccountName" . }}
{{ if .Values.watchNamespace }}
namespace: "{{ .Values.watchNamespace }}"
{{ else }}


+ 2
- 2
deploy/helm_chart/templates/role_binding.yaml View File

@@ -2,7 +2,7 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: wordpress-operator
name: {{ include "wordpress-operator.serviceAccountName" . }}
{{ if .Values.watchNamespace }}
namespace: "{{ .Values.watchNamespace }}"
{{ else }}
@@ -13,6 +13,6 @@ subjects:
name: {{ include "wordpress-operator.serviceAccountName" . }}
roleRef:
kind: Role
name: wordpress-operator
name: {{ include "wordpress-operator.serviceAccountName" . }}
apiGroup: rbac.authorization.k8s.io
{{- end }}

Loading…
Cancel
Save