csi: add sc privileged to logrotate sidecar container

deployments on openshift where we need csi container pods
to be run on privileged, the logrotate sidecar container was missing the
privileged permission letting, side car to not run properly

Signed-off-by: parth-gr <partharora1010@gmail.com>
This commit is contained in:
parth-gr committed 2024-09-30 20:14:09 +05:30
1 parent 5d69d80874
commit 21ca333ed7
7 files changed
+20

No files matched your search

@@ -38,6 +38,8 @@ spec:
# This is necessary for the Bidirectional mount propagation
securityContext:
privileged: true
capabilities:
drop: ["ALL"]
image: {{ .CSIPluginImage }}
command:
- "/bin/sh"
@@ -254,6 +254,8 @@ spec:
{{ if and .Privileged .CSILogRotation }}
securityContext:
privileged: true
capabilities:
drop: ["ALL"]
{{ end }}
volumeMounts:
- name: socket-dir
@@ -28,6 +28,12 @@ command:
image: {{ .CSIPluginImage }}
imagePullPolicy: IfNotPresent
name: log-collector
{{ if .Privileged }}
securityContext:
privileged: true
capabilities:
drop: ["ALL"]
{{ end }}
volumeMounts:
- mountPath: {{ .CsiLogRootPath }}/logrotate-config/{{ .CsiComponentName }}
name: csi-logs-logrotate
@@ -38,6 +38,8 @@ spec:
# This is necessary for the Bidirectional mount propagation
securityContext:
privileged: true
capabilities:
drop: ["ALL"]
image: {{ .CSIPluginImage }}
command:
- "/bin/sh"
@@ -161,6 +161,8 @@ spec:
{{ if and .Privileged .CSILogRotation }}
securityContext:
privileged: true
capabilities:
drop: ["ALL"]
{{ end }}
volumeMounts:
- name: socket-dir
@@ -38,6 +38,8 @@ spec:
# This is necessary for the Bidirectional mount propagation
securityContext:
privileged: true
capabilities:
drop: ["ALL"]
image: {{ .CSIPluginImage }}
command:
- "/bin/sh"
@@ -207,6 +207,8 @@ spec:
{{ if and .Privileged .CSILogRotation }}
securityContext:
privileged: true
capabilities:
drop: ["ALL"]
{{ end }}
volumeMounts:
- name: socket-dir
@@ -263,6 +265,8 @@ spec:
{{ if and .Privileged .CSILogRotation }}
securityContext:
privileged: true
capabilities:
drop: ["ALL"]
{{ end }}
volumeMounts:
- name: socket-dir