Skip to content

Commit

Permalink
🧷 Update Cilium version tested in CI (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardbyte authored Oct 27, 2023
1 parent e03407b commit 1720115
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ jobs:
KIND_CONFIG: .github/kind-config.yaml
TIMEOUT: 2m
LOG_TIME: 30m
cilium_version: v1.13.2
cilium_cli_version: v0.13.2
cilium_version: 1.14.3
cilium_cli_version: v0.15.11
kubectl_version: v1.25.2
PROBE_IMAGE_NAME: netchecks
OPERATOR_IMAGE_NAME: netchecks-operator
Expand Down Expand Up @@ -279,12 +279,26 @@ jobs:
curl -L --fail --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${{ env.cilium_cli_version }}/cilium-linux-amd64.tar.gz{,.sha256sum}
sha256sum --check cilium-linux-amd64.tar.gz.sha256sum
sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/local/bin
cilium version --client
- name: Fetch kind cilium config
run: |
curl -LO https://raw.githubusercontent.com/cilium/cilium/1.14.3/Documentation/installation/kind-config.yaml
- name: Create kind cluster
uses: helm/kind-action@v1.5.0
uses: helm/kind-action@v1.8.0
with:
version: ${{ env.KIND_VERSION }}
cluster_name: kind
config: kind-config.yaml

- name: Install Cilium
run: |
cilium install --version ${{ env.cilium_version }}
- name: Wait for Cilium Operator
run: |
cilium status --wait
- name: Get Cluster Info
run: |
Expand Down Expand Up @@ -316,28 +330,16 @@ jobs:
export NETCHECKS_IMAGE_TAG=sha-${GITHUB_SHA::7}
poetry run pytest
timeout-minutes: 10
- name: Debug resolve
run: |
cat /etc/resolv.conf
# Install Cilium with HostPort support for extended connectivity test.
- name: Install Cilium
run: |
cilium install \
--version=${{ env.cilium_version }} \
--wait=false \
--config monitor-aggregation=none \
--helm-set cni.chainingMode=portmap

- name: Enable Hubble Relay
run: |
cilium hubble enable --ui
- name: Relay Port Forward
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "cilium.*hubble.*port-forward|kubectl.*port-forward.*hubble-relay" | wc -l) == 2 ]]
# - name: Enable Hubble Relay
# run: |
# cilium hubble enable --ui
#
# - name: Relay Port Forward
# run: |
# cilium hubble port-forward&
# sleep 10s
# [[ $(pgrep -f "cilium.*hubble.*port-forward|kubectl.*port-forward.*hubble-relay" | wc -l) == 2 ]]

- name: Run Integration Tests (with Cilium)
run: |
Expand Down

0 comments on commit 1720115

Please sign in to comment.