post-install-prometheus-metrics-rolebinding.yaml 594 B

123456789101112131415161718
  1. {{- $fullName := include "minio.fullname" . -}}
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: RoleBinding
  4. metadata:
  5. name: {{ $fullName }}-update-prometheus-secret
  6. labels:
  7. app: {{ template "minio.name" . }}-update-prometheus-secret
  8. chart: {{ template "minio.chart" . }}
  9. release: {{ .Release.Name }}
  10. heritage: {{ .Release.Service }}
  11. roleRef:
  12. apiGroup: rbac.authorization.k8s.io
  13. kind: Role
  14. name: {{ $fullName }}-update-prometheus-secret
  15. subjects:
  16. - kind: ServiceAccount
  17. name: {{ $fullName }}-update-prometheus-secret
  18. namespace: {{ .Release.Namespace | quote }}