Files
Bort Verwilst 25419da1cd [stable/bookstack] Add chart for Bookstackapp (#7507)
* Add bookstack

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* add home to Chart.yaml, remove whitespaces

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* do not allow privilege escalation

Signed-off-by: Bart Verwilst <bart@verwilst.be>

* fix api version for deployment

Signed-off-by: Bart Verwilst <bart@verwilst.be>
2018-09-03 15:41:07 -07:00

22 lines
606 B
YAML

{{- if .Values.rbac.create }}
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ template "bookstack.fullname" . }}
labels:
app: {{ template "bookstack.name" . }}
chart: {{ template "bookstack.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
rules:
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get"]
{{- if .Values.podSecurityPolicy.enabled }}
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [{{ template "bookstack.fullname" . }}]
{{- end }}
{{- end }}