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

🧷 Update Cilium version tested in CI #62

Merged
merged 7 commits into from
Oct 27, 2023
Merged
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
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