Merge pull request #14782 from parth-gr/csi-fix-logrotate
csi: add sc privileged to logrotate sidecar container
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user