test-rolebinding.yaml 678 B

1234567891011121314151617181920
  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. annotations:
  8. "helm.sh/hook": test-success
  9. "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
  10. labels:
  11. {{- include "grafana.labels" . | nindent 4 }}
  12. roleRef:
  13. apiGroup: rbac.authorization.k8s.io
  14. kind: Role
  15. name: {{ template "grafana.fullname" . }}-test
  16. subjects:
  17. - kind: ServiceAccount
  18. name: {{ template "grafana.serviceAccountNameTest" . }}
  19. namespace: {{ template "grafana.namespace" . }}
  20. {{- end }}