rancher-charts/charts/rancher-kiali-server/1.41.0/templates/role-controlplane.yaml

31 lines
693 B
YAML

---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "kiali-server.fullname" . }}-controlplane
namespace: {{ include "kiali-server.istio_namespace" . }}
labels:
{{- include "kiali-server.labels" . | nindent 4 }}
rules:
{{- if .Values.kiali_feature_flags.clustering.enabled }}
- apiGroups: [""]
resources:
- secrets
verbs:
- list
{{- end }}
{{- if .Values.kiali_feature_flags.certificates_information_indicators.enabled }}
- apiGroups: [""]
resourceNames:
{{- range .Values.kiali_feature_flags.certificates_information_indicators.secrets }}
- {{ . }}
{{- end }}
resources:
- secrets
verbs:
- get
- list
- watch
{{- end }}
...