From c10dd4a79e09a9a5ca379da5b8c0abd858928395 Mon Sep 17 00:00:00 2001 From: Matt Pryor Date: Wed, 13 Dec 2023 15:46:24 +0000 Subject: [PATCH] Prevent external network from being overwritten --- .github/workflows/test.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f6195ad7..b72b2694 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -51,8 +51,6 @@ jobs: registryMirrors: docker.io: - ${{ secrets.DOCKER_HUB_MIRROR_URL }} - clusterNetworking: - externalNetworkId: ${{ secrets.EXTERNAL_NETWORK_ID }} controlPlane: machineFlavor: ${{ secrets.CONTROL_PLANE_FLAVOR }} machineCount: 1 @@ -66,6 +64,15 @@ jobs: env: NETWORKING: | clusterNetworking: + externalNetworkId: ${{ secrets.EXTERNAL_NETWORK_ID }} + if: ${{ inputs.tests-full }} + + - name: Apply network configuration + run: echo "$NETWORKING" >> ./values.yaml + env: + NETWORKING: | + clusterNetworking: + externalNetworkId: ${{ secrets.EXTERNAL_NETWORK_ID }} internalNetwork: networkFilter: tags: capi-helm-chart-ci