role.yaml 773 B

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