Skip to content

Commit

Permalink
ci: nsenter daemonset (#2553)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpayne3506 authored Jan 27, 2024
1 parent 39f436e commit 36d83ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions test/integration/manifests/load/privileged-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,19 @@ spec:
hostPID: true
containers:
- name: privileged-container
image: mcr.microsoft.com/dotnet/runtime-deps:6.0
command: ["/bin/sleep", "3650d"]
image: mcr.microsoft.com/mirror/docker/library/alpine:3.16
command:
- nsenter
- -t
- "1"
- -m
- -u
- -i
- -n
- -p
- bash
- -c
- sleep 3650d
securityContext:
privileged: true
runAsUser: 0
Expand Down
2 changes: 1 addition & 1 deletion test/validate/linux_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
)

var (
restartNetworkCmd = []string{"bash", "-c", "chroot /host /bin/bash -c systemctl restart systemd-networkd"}
restartNetworkCmd = []string{"bash", "-c", "systemctl restart systemd-networkd"}
cnsManagedStateFileCmd = []string{"bash", "-c", "cat /var/run/azure-cns/azure-endpoints.json"}
azureVnetStateFileCmd = []string{"bash", "-c", "cat /var/run/azure-vnet.json"}
azureVnetIpamStateCmd = []string{"bash", "-c", "cat /var/run/azure-vnet-ipam.json"}
Expand Down

0 comments on commit 36d83ce

Please sign in to comment.