Skip to content

Commit 5bdeab6

Browse files
fix(ci): Manually set the node IP
Based on research @kflansburg did, it looks like the tests were getting the wrong IP address for itself from the DNS cache. Flushing the cache didn't seem to work, so this just sets the variable manually
1 parent 21c59e1 commit 5bdeab6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,14 @@ jobs:
116116
name: just
117117
url: https://github.com/casey/just/releases/download/v0.5.11/just-v0.5.11-x86_64-unknown-linux-musl.tar.gz
118118
pathInArchive: just
119+
- name: Get NODE_IP
120+
run: echo "KRUSTLET_NODE_IP=$(ip addr ls eth0 | awk '/inet / {split($2, ary, /\//); print ary[1]}')" >> $GITHUB_ENV
119121
- name: Run e2e tests (full)
120122
if: ${{ github.event_name == 'push' }}
121123
env:
122124
KRUSTLET_TEST_ENV: "ci"
123125
KRUSTLET_E2E_IMAGE_PULL_SECRET: ${{ secrets.KRUSTLET_E2E_IMAGE_PULL_SECRET }}
126+
KRUSTLET_NODE_IP: ${{ env.KRUSTLET_NODE_IP }}
124127
run: just test-e2e-standalone
125128
- name: Run e2e tests (PR)
126129
if: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)