test-rolebinding.yaml 558 B

1234567891011121314151617
  1. {{- if and .Values.testFramework.enabled .Values.rbac.pspEnabled -}}
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: RoleBinding
  4. metadata:
  5. name: {{ template "grafana.fullname" . }}-test
  6. namespace: {{ template "grafana.namespace" . }}
  7. labels:
  8. {{- include "grafana.labels" . | nindent 4 }}
  9. roleRef:
  10. apiGroup: rbac.authorization.k8s.io
  11. kind: Role
  12. name: {{ template "grafana.fullname" . }}-test
  13. subjects:
  14. - kind: ServiceAccount
  15. name: {{ template "grafana.serviceAccountNameTest" . }}
  16. namespace: {{ template "grafana.namespace" . }}
  17. {{- end }}