role.yaml 757 B

1234567891011121314151617181920212223242526
  1. {{- /*
  2. Copyright VMware, Inc.
  3. SPDX-License-Identifier: APACHE-2.0
  4. */}}
  5. {{- if .Values.rbac.create }}
  6. apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
  7. kind: Role
  8. metadata:
  9. name: {{ include "common.names.fullname" . }}
  10. namespace: {{ include "common.names.namespace" . | quote }}
  11. labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  12. app.kubernetes.io/component: kafka
  13. {{- if .Values.commonAnnotations }}
  14. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  15. {{- end }}
  16. rules:
  17. - apiGroups:
  18. - ""
  19. resources:
  20. - services
  21. verbs:
  22. - get
  23. - list
  24. - watch
  25. {{- end }}