pre-install-rolebinding.yaml 695 B

123456789101112131415161718192021
  1. apiVersion: rbac.authorization.k8s.io/v1
  2. kind: RoleBinding
  3. metadata:
  4. name: pre-install-{{ template "kibana.fullname" . }}
  5. labels: {{ include "kibana.labels" . | nindent 4 }}
  6. annotations:
  7. "helm.sh/hook": pre-install,pre-upgrade
  8. "helm.sh/hook-delete-policy": hook-succeeded
  9. {{- if .Values.annotations }}
  10. {{- range $key, $value := .Values.annotations }}
  11. {{ $key }}: {{ $value | quote }}
  12. {{- end }}
  13. {{- end }}
  14. subjects:
  15. - kind: ServiceAccount
  16. name: pre-install-{{ template "kibana.fullname" . }}
  17. namespace: {{ .Release.Namespace | quote }}
  18. roleRef:
  19. kind: Role
  20. name: pre-install-{{ template "kibana.fullname" . }}
  21. apiGroup: rbac.authorization.k8s.io