21 lines
559 B
YAML
21 lines
559 B
YAML
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: {{ include "kiali-server.fullname" . }}
|
|
labels:
|
|
{{- include "kiali-server.labels" . | nindent 4 }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
{{- if .Values.deployment.view_only_mode }}
|
|
name: {{ include "kiali-server.fullname" . }}-viewer
|
|
{{- else }}
|
|
name: {{ include "kiali-server.fullname" . }}
|
|
{{- end }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "kiali-server.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
...
|