22 lines
536 B
YAML
22 lines
536 B
YAML
{{- if .Values.rbac.createSCCRole -}}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: {{ include "airlock-microgateway-cni.fullname" . }}-privileged
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "airlock-microgateway-cni.labels" . | nindent 4 }}
|
|
{{- with .Values.commonAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
rules:
|
|
- apiGroups:
|
|
- security.openshift.io
|
|
resourceNames:
|
|
- privileged
|
|
resources:
|
|
- securitycontextconstraints
|
|
verbs:
|
|
- use
|
|
{{- end -}} |