post-delete-role.yaml 511 B

1234567891011121314151617181920
  1. apiVersion: rbac.authorization.k8s.io/v1
  2. kind: Role
  3. metadata:
  4. name: post-delete-{{ template "kibana.fullname" . }}
  5. labels: {{ include "kibana.labels" . | nindent 4 }}
  6. annotations:
  7. "helm.sh/hook": post-delete
  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. - delete