Skip to content

Commit

Permalink
ci: Update CNS daemonset capabilities within E2E (#2902)
Browse files Browse the repository at this point in the history
ci: update CNS caps
  • Loading branch information
jpayne3506 authored Aug 9, 2024
1 parent fcb10fb commit 032890a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/integration/manifests/cns/daemonset-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ spec:
args: [ "-c", "tcp://$(CNSIpAddress):$(CNSPort)", "-t", "$(CNSLogTarget)"]
securityContext:
capabilities:
drop:
- ALL
add:
- NET_ADMIN
- NET_ADMIN # only necessary for delegated IPAM/Cilium
- NET_RAW # only necessary for delegated IPAM/Cilium
volumeMounts:
- name: log
mountPath: /var/log
Expand Down Expand Up @@ -89,8 +92,8 @@ spec:
command: ["sleep", "3600"]
securityContext:
capabilities:
add:
- NET_ADMIN
drop:
- ALL
volumeMounts:
- name: log
mountPath: /var/log
Expand Down
4 changes: 4 additions & 0 deletions test/integration/manifests/cns/daemonset-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ spec:
volumeMounts:
- name: cni-bin
mountPath: /k/azurecni/bin/ # TODO: add cni conflist when ready
securityContext:
capabilities:
drop:
- ALL
hostNetwork: true
volumes:
- name: log
Expand Down

0 comments on commit 032890a

Please sign in to comment.