Auto add default CSIDriver labels on OpenShift
Signed-off-by: Kevin Fox <[email protected]>
This commit is contained in:
committed by
Marco Franssen
parent
c9885de539
commit
966061c6c7
@@ -1,8 +1,13 @@
|
|||||||
|
{{- $labels := dict }}
|
||||||
|
{{- if (dig "openshift" false .Values.global) }}
|
||||||
|
{{- $_ := set $labels "security.openshift.io/csi-ephemeral-volume-profile" "restricted" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- $labels = mergeOverwrite $labels .Values.csiDriverLabels }}
|
||||||
apiVersion: storage.k8s.io/v1
|
apiVersion: storage.k8s.io/v1
|
||||||
kind: CSIDriver
|
kind: CSIDriver
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.pluginName | quote }}
|
name: {{ .Values.pluginName | quote }}
|
||||||
{{- with .Values.csiDriverLabels }}
|
{{- with $labels }}
|
||||||
labels:
|
labels:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -58,8 +58,6 @@ tornjak-frontend:
|
|||||||
fsGroup: null
|
fsGroup: null
|
||||||
|
|
||||||
spiffe-csi-driver:
|
spiffe-csi-driver:
|
||||||
csiDriverLabels:
|
|
||||||
security.openshift.io/csi-ephemeral-volume-profile: restricted
|
|
||||||
initContainers:
|
initContainers:
|
||||||
- terminationMessagePath: /dev/termination-log
|
- terminationMessagePath: /dev/termination-log
|
||||||
name: set-context
|
name: set-context
|
||||||
|
|||||||
Reference in New Issue
Block a user