Skip to content

Commit 4d96f5c

Browse files
authored
Merge pull request #1001 from rollandf/gov-ready
feat: Make SR-IOV Network Operator working in STIG-Enabled Kubernetes
2 parents 11b5505 + af46d1a commit 4d96f5c

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ RUN make _build-manager BIN_PATH=build/_output/cmd && \
55
make _build-sriov-network-operator-config-cleanup BIN_PATH=build/_output/cmd
66

77
FROM quay.io/centos/centos:stream9
8+
USER 65532:65532
89
COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/build/_output/cmd/manager /usr/bin/sriov-network-operator
910
COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/build/_output/cmd/sriov-network-operator-config-cleanup /usr/bin/sriov-network-operator-config-cleanup
1011
COPY bindata /bindata

bindata/manifests/operator-webhook/server.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ spec:
8282
securityContext:
8383
readOnlyRootFilesystem: true
8484
allowPrivilegeEscalation: false
85+
capabilities:
86+
drop:
87+
- ALL
88+
runAsNonRoot: true
89+
seccompProfile:
90+
type: RuntimeDefault
8591
resources:
8692
requests:
8793
cpu: 10m

bindata/manifests/webhook/server.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ spec:
8585
securityContext:
8686
readOnlyRootFilesystem: true
8787
allowPrivilegeEscalation: false
88+
capabilities:
89+
drop:
90+
- ALL
91+
runAsNonRoot: true
92+
seccompProfile:
93+
type: RuntimeDefault
8894
resources:
8995
requests:
9096
cpu: 10m

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ spec:
4646
securityContext:
4747
readOnlyRootFilesystem: true
4848
allowPrivilegeEscalation: false
49+
capabilities:
50+
drop:
51+
- ALL
52+
runAsNonRoot: true
53+
seccompProfile:
54+
type: RuntimeDefault
4955
resources:
5056
requests:
5157
cpu: 100m

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ spec:
4747
containers:
4848
- name: cleanup
4949
image: {{ .Values.images.operator }}
50+
securityContext:
51+
capabilities:
52+
drop:
53+
- ALL
54+
runAsNonRoot: true
55+
allowPrivilegeEscalation: false
56+
seccompProfile:
57+
type: RuntimeDefault
5058
command:
5159
- sriov-network-operator-config-cleanup
5260
args:

0 commit comments

Comments
 (0)