Skip to content

Commit

Permalink
fix(CSI-227): for OCP and hostNetwork only add privileged
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyberezansky committed Jul 31, 2024
1 parent 698dc68 commit 29e20f8
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ spec:
- name: socket-dir
mountPath: /csi
- name: csi-provisioner
{{- if and .Values.hostNetwork (.Capabilities.APIVersions.Has "security.openshift.io/v1/SecurityContextConstraints") }}
securityContext:
privileged: true
{{- end }}
image: {{ required "csi provisioner sidecar container image." .Values.images.provisionersidecar }}
args:
- "--v={{ .Values.logLevel | default 5 }}"
Expand Down Expand Up @@ -85,6 +89,10 @@ spec:
name: pr-metrics
protocol: TCP
- name: csi-resizer
{{- if and .Values.hostNetwork (.Capabilities.APIVersions.Has "security.openshift.io/v1/SecurityContextConstraints") }}
securityContext:
privileged: true
{{- end }}
image: {{ required "csi attacher sidercar image." .Values.images.resizersidecar }}
args:
- "--v={{ .Values.logLevel | default 5 }}"
Expand Down Expand Up @@ -116,6 +124,10 @@ spec:
name: rs-metrics
protocol: TCP
- name: csi-snapshotter
{{- if and .Values.hostNetwork (.Capabilities.APIVersions.Has "security.openshift.io/v1/SecurityContextConstraints") }}
securityContext:
privileged: true
{{- end }}
image: {{ required "csi snapshotter sidecar image." .Values.images.snapshottersidecar }}
args:
- "--v=5"
Expand Down

0 comments on commit 29e20f8

Please sign in to comment.