Skip to content

Commit 5407d78

Browse files
authored
Merge pull request #255 from kubernetes-sigs/revert-252-nonroot
Revert "fix: create nonroot user in Dockerfile"
2 parents 9f13962 + 2932b02 commit 5407d78

File tree

6 files changed

+0
-14
lines changed

6 files changed

+0
-14
lines changed

charts/latest/blob-csi-driver/templates/csi-blob-controller.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ spec:
9696
- name: CSI_ENDPOINT
9797
value: unix:///csi/csi.sock
9898
imagePullPolicy: {{ .Values.image.blob.pullPolicy }}
99-
securityContext:
100-
runAsUser: 0
10199
volumeMounts:
102100
- mountPath: /csi
103101
name: socket-dir

charts/latest/blob-csi-driver/templates/csi-blob-node.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ spec:
106106
imagePullPolicy: {{ .Values.image.pullPolicy }}
107107
securityContext:
108108
privileged: true
109-
runAsUser: 0
110109
volumeMounts:
111110
- mountPath: /csi
112111
name: socket-dir

deploy/csi-blob-controller.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ spec:
9393
optional: true
9494
- name: CSI_ENDPOINT
9595
value: unix:///csi/csi.sock
96-
securityContext:
97-
runAsUser: 0
9896
volumeMounts:
9997
- mountPath: /csi
10098
name: socket-dir

deploy/csi-blob-node.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ spec:
104104
fieldPath: spec.nodeName
105105
securityContext:
106106
privileged: true
107-
runAsUser: 0
108107
volumeMounts:
109108
- mountPath: /csi
110109
name: socket-dir

pkg/blobplugin/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,4 @@ RUN apt update && apt install nfs-common nfs-kernel-server -y || true
3030
LABEL maintainers="andyzhangx"
3131
LABEL description="Azure Blob Storage CSI driver"
3232

33-
# Create a nonroot user
34-
RUN useradd -u 10001 nonroot
35-
USER nonroot
36-
3733
ENTRYPOINT ["/blobplugin"]

pkg/blobplugin/dev.Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,5 @@ RUN dpkg -i /tmp/packages-microsoft-prod.deb && apt-get update && apt-get instal
1818
LABEL maintainers="andyzhangx"
1919
LABEL description="Azure Blob Storage CSI driver"
2020

21-
# Create a nonroot user
22-
RUN useradd -u 10001 nonroot
23-
USER nonroot
24-
2521
COPY ./_output/blobplugin /blobplugin
2622
ENTRYPOINT ["/blobplugin"]

0 commit comments

Comments
 (0)