helm-charts/ntfy/templates/setup/rolebinding.yaml

24 lines
662 B
YAML
Raw Permalink Normal View History

2024-07-26 02:21:20 +02:00
{{- if .Values.ntfy.webPush.keys.create }}
---
{{- $fullname := (include "ntfy.fullname" .) }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ $fullname }}-setup
labels:
{{- include "ntfy.labels" . | nindent 4 }}
app.kubernetes.io/component: setup-job
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "5"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
2024-07-26 02:21:20 +02:00
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ $fullname }}-setup
subjects:
- kind: ServiceAccount
name: {{ $fullname }}-setup
namespace: {{ .Release.Namespace }}
{{- end }}