mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 17:16:47 +00:00
26 lines
670 B
YAML
26 lines
670 B
YAML
|
{{- if .Values.rbac.create -}}
|
||
|
{{- $fullName := include "elasticsearch.uname" . -}}
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: Role
|
||
|
metadata:
|
||
|
name: {{ $fullName | quote }}
|
||
|
labels:
|
||
|
heritage: {{ .Release.Service | quote }}
|
||
|
release: {{ .Release.Name | quote }}
|
||
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||
|
app: {{ $fullName | quote }}
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- extensions
|
||
|
resources:
|
||
|
- podsecuritypolicies
|
||
|
resourceNames:
|
||
|
{{- if eq .Values.podSecurityPolicy.name "" }}
|
||
|
- {{ $fullName | quote }}
|
||
|
{{- else }}
|
||
|
- {{ .Values.podSecurityPolicy.name | quote }}
|
||
|
{{- end }}
|
||
|
verbs:
|
||
|
- use
|
||
|
{{- end -}}
|