@@ -21,66 +21,37 @@ steps:
2121 ls -lah
2222 pwd
2323 kubectl cluster-info
24- kubectl get po -owide -A
25- if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]; then
26- FILE_PATH=-nightly
27- echo "Running nightly"
28- echo "deploy Cilium ConfigMap"
29- kubectl apply -f test/integration/manifests/cilium/cilium${FILE_PATH}-config.yaml
30- # Passes Cilium image to daemonset and deployment
31- envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/manifests/cilium/daemonset.yaml | kubectl apply -f -
32- envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/manifests/cilium/deployment.yaml | kubectl apply -f -
33- # Use different file directories for nightly and current cilium version
34- kubectl apply -f test/integration/manifests/cilium/cilium${FILE_PATH}-agent
35- kubectl apply -f test/integration/manifests/cilium/cilium${FILE_PATH}-operator
36- else
37- # see makefile
38- export AZURE_IPTABLES_MONITOR_IMAGE_REGISTRY=acnpublic.azurecr.io
39- export AZURE_IPTABLES_MONITOR_TAG=$(make azure-iptables-monitor-version)
40- export AZURE_IP_MASQ_MERGER_IMAGE_REGISTRY=acnpublic.azurecr.io
41- export AZURE_IP_MASQ_MERGER_TAG=$(make azure-ip-masq-merger-version)
42- make -C ./hack/aks deploy-ebpf-overlay-cilium
43- fi
24+ kubectl get pods -Aowide
25+
26+ # see makefile
27+ export AZURE_IPTABLES_MONITOR_IMAGE_REGISTRY=acnpublic.azurecr.io
28+ export AZURE_IPTABLES_MONITOR_TAG=$(make azure-iptables-monitor-version)
29+ export AZURE_IP_MASQ_MERGER_IMAGE_REGISTRY=acnpublic.azurecr.io
30+ export AZURE_IP_MASQ_MERGER_TAG=$(make azure-ip-masq-merger-version)
31+ make -C ./hack/aks deploy-ebpf-overlay-cilium
4432
45- kubectl get po -owide -A
33+ kubectl get pods -Aowide
4634 name : " installCilium"
4735 displayName : " Install Cilium EBPF on AKS Overlay"
4836
4937 - template : ../../templates/cilium-cli.yaml
5038
5139 - script : |
52- echo "Start Azilium E2E Tests on Overlay Cluster"
53- if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]
54- then
55- CNS=$(CNS_VERSION) IPAM=$(AZURE_IPAM_VERSION) && echo "Running nightly"
56- else
57- CNS=$(make cns-version) IPAM=$(make azure-ipam-version)
58- fi
59- kubectl get po -owide -A
40+ CNS=$(make cns-version) IPAM=$(make azure-ipam-version)
41+ kubectl get pods -Aowide
6042 sudo -E env "PATH=$PATH" make test-load SCALE_UP=32 OS_TYPE=linux VALIDATE_STATEFILE=true INSTALL_CNS=true INSTALL_OVERLAY=true AZURE_IPAM_VERSION=${IPAM} CNS_VERSION=${CNS} CLEANUP=true
6143 retryCountOnTaskFailure: 3
6244 name: "aziliumTest"
6345 displayName: "Deploy CNS and Run Azilium E2E on AKS Overlay"
6446
6547 - script : |
66- kubectl get po -owide -A
48+ kubectl get pods -Aowide
6749 echo "Waiting < 2 minutes for cilium to be ready"
68- # Ensure Cilium is ready Xm\Xs
6950 cilium status --wait --wait-duration 2m
7051 kubectl get crd -A
7152 retryCountOnTaskFailure: 3
7253 name: "CiliumStatus"
7354 displayName: "Cilium Status"
74- # Run LRP test after cns and config with lrp enabled config deployed
75- - ${{ if eq( parameters['testLRP'], true) }} :
76- - script : |
77- set -e
78- cd test/integration/lrp/
79- go test ./lrp_test.go -v -tags "lrp" -count=1 -run ^TestLRP$
80- kubectl get pods -Aowide
81- retryCountOnTaskFailure: 3
82- name: "LRPTest"
83- displayName: "Run Cilium Local Redirect Policy Test"
8455
8556 - task : AzureCLI@1
8657 inputs :
@@ -121,24 +92,6 @@ steps:
12192
12293 - template : ../../templates/cilium-connectivity-tests.yaml
12394
124- - ${{ if eq( parameters['testHubble'], true) }} :
125- - script : |
126- echo "enable Hubble metrics server"
127- export CILIUM_VERSION_TAG=${CILIUM_HUBBLE_VERSION_TAG}
128- export DIR=$(echo ${CILIUM_VERSION_TAG#v} | cut -d. -f1,2)
129- echo "installing files from ${DIR}"
130- kubectl apply -f test/integration/manifests/cilium/hubble/hubble-peer-svc.yaml
131- kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-config/cilium-config-hubble.yaml
132- kubectl rollout restart ds cilium -n kube-system
133- echo "wait <3 minutes for pods to be ready after restart"
134- kubectl rollout status ds cilium -n kube-system --timeout=3m
135- kubectl get pods -Aowide
136- echo "verify Hubble metrics endpoint is usable"
137- go test ./test/integration/networkobservability -count=1 -v -tags=networkobservability
138- retryCountOnTaskFailure: 3
139- name: "HubbleConnectivityTests"
140- displayName: "Run Hubble Connectivity Tests"
141-
14295 - template : ../../templates/cilium-identities-check.yaml
14396 parameters :
14497 ciliumVersionTag : $(CILIUM_VERSION_TAG)
@@ -151,15 +104,11 @@ steps:
151104 displayName: "Run Wireserver and Metadata Connectivity Tests"
152105
153106 - script : |
154- if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]; then
155- echo "Running nightly, skip async delete test"
156- else
157- cd hack/scripts
158- chmod +x async-delete-test.sh
159- ./async-delete-test.sh
160- if ! [ -z $(kubectl -n kube-system get ds azure-cns | grep non-existing) ]; then
161- kubectl -n kube-system patch daemonset azure-cns --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'
162- fi
107+ cd hack/scripts
108+ chmod +x async-delete-test.sh
109+ ./async-delete-test.sh
110+ if ! [ -z $(kubectl -n kube-system get ds azure-cns | grep non-existing) ]; then
111+ kubectl -n kube-system patch daemonset azure-cns --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'
163112 fi
164113 name: "testAsyncDelete"
165114 displayName: "Verify Async Delete when CNS is down"
0 commit comments