Skip to content

Commit

Permalink
Prevent external network from being overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor committed Dec 13, 2023
1 parent 00c13f3 commit c10dd4a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c10dd4a

Please sign in to comment.