Skip to content

Commit 1821d9d

Browse files
authored
Merge pull request #954 from cgoncalves/readonlyroot
Add readOnlyRootFilesystem=true to containers missing it
2 parents dd20daa + aed7dba commit 1821d9d

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

bindata/manifests/daemon/daemonset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ spec:
142142
- sriov-network-config-daemon
143143
securityContext:
144144
privileged: true
145+
readOnlyRootFilesystem: true
145146
args:
146147
- "start"
147148
{{- if .UsedSystemdMode}}

bindata/manifests/metrics-exporter/metrics-daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ spec:
7878
valueFrom:
7979
fieldRef:
8080
fieldPath: status.hostIP
81+
securityContext:
82+
readOnlyRootFilesystem: true
83+
allowPrivilegeEscalation: false
8184
resources:
8285
requests:
8386
cpu: 10m

bindata/manifests/plugins/sriov-device-plugin.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ spec:
5656
fieldPath: spec.nodeName
5757
securityContext:
5858
privileged: true
59+
readOnlyRootFilesystem: true
5960
resources:
6061
requests:
6162
cpu: 10m

deploy/operator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ spec:
4949
image: $SRIOV_NETWORK_OPERATOR_IMAGE
5050
command:
5151
- sriov-network-operator
52+
securityContext:
53+
readOnlyRootFilesystem: true
54+
allowPrivilegeEscalation: false
5255
resources:
5356
requests:
5457
cpu: 100m

deployment/sriov-network-operator-chart/templates/operator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ spec:
4343
image: {{ .Values.images.operator }}
4444
command:
4545
- sriov-network-operator
46+
securityContext:
47+
readOnlyRootFilesystem: true
48+
allowPrivilegeEscalation: false
4649
resources:
4750
requests:
4851
cpu: 100m

0 commit comments

Comments
 (0)