File tree Expand file tree Collapse file tree 3 files changed +25
-38
lines changed Expand file tree Collapse file tree 3 files changed +25
-38
lines changed Original file line number Diff line number Diff line change @@ -53,25 +53,7 @@ steps:
5353 name : " installCilium"
5454 displayName : " Install Cilium on AKS Overlay"
5555
56- - script : |
57- echo "install cilium CLI"
58- if [[ ${CILIUM_VERSION_TAG_V1_4} =~ ^1.1[1-3].[0-9]{1,2} ]]; then
59- echo "Cilium Agent Version ${BASH_REMATCH[0]}"
60- CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable-v0.14.txt)
61- else
62- echo "Cilium Agent Version ${CILIUM_VERSION_TAG_V1_4}"
63- CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/master/stable.txt)
64- fi
65- CLI_ARCH=amd64
66- if [ "$(uname -m)" = "aarch64" ]; then CLI_ARCH=arm64; fi
67- curl -L --fail --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
68- sha256sum --check cilium-linux-${CLI_ARCH}.tar.gz.sha256sum
69- sudo tar xzvfC cilium-linux-${CLI_ARCH}.tar.gz /usr/local/bin
70- rm cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
71- cilium status
72- cilium version
73- name: "installCiliumCLI"
74- displayName: "Install Cilium CLI"
56+ - template : ../../templates/cilium-cli.yaml
7557
7658 - script : |
7759 echo "Start Azilium E2E Tests on Overlay Cluster"
Original file line number Diff line number Diff line change @@ -50,25 +50,7 @@ steps:
5050 name : " installCilium"
5151 displayName : " Install Cilium"
5252
53- - script : |
54- echo "install cilium CLI"
55- if [[ ${CILIUM_VERSION_TAG_V1_4} =~ ^1.1[1-3].[0-9]{1,2} ]]; then
56- echo "Cilium Agent Version ${BASH_REMATCH[0]}"
57- CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable-v0.14.txt)
58- else
59- echo "Cilium Agent Version ${CILIUM_VERSION_TAG_V1_4}"
60- CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/master/stable.txt)
61- fi
62- CLI_ARCH=amd64
63- if [ "$(uname -m)" = "aarch64" ]; then CLI_ARCH=arm64; fi
64- curl -L --fail --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
65- sha256sum --check cilium-linux-${CLI_ARCH}.tar.gz.sha256sum
66- sudo tar xzvfC cilium-linux-${CLI_ARCH}.tar.gz /usr/local/bin
67- rm cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
68- cilium status
69- cilium version
70- name: "installCiliumCLI"
71- displayName: "Install Cilium CLI"
53+ - template : ../../templates/cilium-cli.yaml
7254
7355 - script : |
7456 echo "Start Azilium E2E Tests"
Original file line number Diff line number Diff line change 1+ steps :
2+ - script : |
3+ echo "install cilium CLI"
4+ if [[ ${CILIUM_VERSION_TAG_V1_4#v} =~ ^1.1[1-3].[0-9]{1,2} ]]; then
5+ echo "Cilium Agent Version ${BASH_REMATCH[0]}"
6+ CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable-v0.14.txt)
7+ elif [[ ${CILIUM_VERSION_TAG_V1_4#v} =~ ^1.14.[0-9]{1,2} ]]; then
8+ echo "Cilium Agent Version ${BASH_REMATCH[0]}"
9+ CILIUM_CLI_VERSION=v0.15.22
10+ else
11+ echo "Cilium Agent Version ${CILIUM_VERSION_TAG_V1_4}"
12+ CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/master/stable.txt)
13+ fi
14+ CLI_ARCH=amd64
15+ if [ "$(uname -m)" = "aarch64" ]; then CLI_ARCH=arm64; fi
16+ curl -L --fail --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
17+ sha256sum --check cilium-linux-${CLI_ARCH}.tar.gz.sha256sum
18+ sudo tar xzvfC cilium-linux-${CLI_ARCH}.tar.gz /usr/local/bin
19+ rm cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
20+ cilium status
21+ cilium version
22+ name: "installCiliumCLI"
23+ displayName: "Install Cilium CLI"
You can’t perform that action at this time.
0 commit comments