Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update CNS daemonset capabilities within E2E #2902

Merged
merged 1 commit into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading