Skip to content

Commit 67c6f3b

Browse files
committed
feat: Make SR-IOV Network Operator working in STIG-Enabled Kubernetes Cluster
Signed-off-by: Ivan Kolodiazhnyi <ikolodiazhny@nvidia.com>
1 parent 9cf5fc0 commit 67c6f3b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ spec:
4747
requests:
4848
cpu: 100m
4949
memory: 100Mi
50+
securityContext:
51+
capabilities:
52+
drop:
53+
- ALL
54+
runAsNonRoot: true
55+
allowPrivilegeEscalation: false
56+
seccompProfile:
57+
type: RuntimeDefault
5058
env:
5159
- name: WATCH_NAMESPACE
5260
valueFrom:

deployment/sriov-network-operator-chart/templates/pre-delete-webooks.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ spec:
2323
containers:
2424
- name: cleanup
2525
image: {{ .Values.images.operator }}
26+
securityContext:
27+
capabilities:
28+
drop:
29+
- ALL
30+
runAsNonRoot: true
31+
allowPrivilegeEscalation: false
32+
seccompProfile:
33+
type: RuntimeDefault
2634
command:
2735
- sriov-network-operator-config-cleanup
2836
args:

0 commit comments

Comments
 (0)