No Description

backend-role.yaml 696B

12345678910111213141516171819
  1. {{ if .Values.backend.rbac.create }}
  2. kind: Role
  3. apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
  4. metadata:
  5. name: {{ include "shuffle.backend.name" . }}
  6. namespace: {{ include "common.names.namespace" . | quote }}
  7. labels: {{- include "shuffle.backend.labels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  8. {{- if .Values.commonAnnotations }}
  9. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  10. {{- end }}
  11. rules:
  12. - apiGroups: [""]
  13. resources: ["pods"]
  14. verbs: ["list"]
  15. - apiGroups: ["batch"]
  16. resources: ["jobs"]
  17. verbs: ["get", "create", "delete"]
  18. {{- end }}