Skip to content

Commit 032890a

Browse files
authored
ci: Update CNS daemonset capabilities within E2E (#2902)
ci: update CNS caps
1 parent fcb10fb commit 032890a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

test/integration/manifests/cns/daemonset-linux.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ spec:
4646
args: [ "-c", "tcp://$(CNSIpAddress):$(CNSPort)", "-t", "$(CNSLogTarget)"]
4747
securityContext:
4848
capabilities:
49+
drop:
50+
- ALL
4951
add:
50-
- NET_ADMIN
52+
- NET_ADMIN # only necessary for delegated IPAM/Cilium
53+
- NET_RAW # only necessary for delegated IPAM/Cilium
5154
volumeMounts:
5255
- name: log
5356
mountPath: /var/log
@@ -89,8 +92,8 @@ spec:
8992
command: ["sleep", "3600"]
9093
securityContext:
9194
capabilities:
92-
add:
93-
- NET_ADMIN
95+
drop:
96+
- ALL
9497
volumeMounts:
9598
- name: log
9699
mountPath: /var/log

test/integration/manifests/cns/daemonset-windows.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ spec:
123123
volumeMounts:
124124
- name: cni-bin
125125
mountPath: /k/azurecni/bin/ # TODO: add cni conflist when ready
126+
securityContext:
127+
capabilities:
128+
drop:
129+
- ALL
126130
hostNetwork: true
127131
volumes:
128132
- name: log

0 commit comments

Comments
 (0)