pre-install-role.yaml 538 B

123456789101112131415161718192021
  1. apiVersion: rbac.authorization.k8s.io/v1
  2. kind: Role
  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. rules:
  15. - apiGroups:
  16. - ""
  17. resources:
  18. - secrets
  19. verbs:
  20. - create
  21. - update