Skip to content

Commit

Permalink
feat: update e2e test to account for testing ipv6 (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p committed Jan 14, 2024
1 parent c9630bf commit a21cadb
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
File renamed without changes.
36 changes: 36 additions & 0 deletions .github/tests/config-ipv6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
ci_test: true

bootstrap_distribution: k3s
bootstrap_github_username: onedr0p
bootstrap_github_repository_name: flux-cluster-template
bootstrap_github_repository_branch: main
bootstrap_age_public_key: $BOOTSTRAP_AGE_PUBLIC_KEY
bootstrap_timezone: Etc/UTC
bootstrap_acme_email: fake
bootstrap_acme_production_enabled: false
bootstrap_flux_github_webhook_token: fake
bootstrap_cloudflare_domain: fake
bootstrap_cloudflare_token: fake
bootstrap_cloudflare_account_tag: fake
bootstrap_cloudflare_tunnel_secret: fake
bootstrap_cloudflare_tunnel_id: fake
bootstrap_node_cidr: 10.10.10.0/24
bootstrap_kubeapi_addr: 10.10.10.254
bootstrap_k8s_gateway_addr: 10.10.10.253
bootstrap_external_ingress_addr: 10.10.10.252
bootstrap_internal_ingress_addr: 10.10.10.251
bootstrap_cilium_loadbalancer_mode: dsr
bootstrap_ipv6_enabled: true
bootstrap_cluster_cidr: 10.42.0.0/16,fd7f:8f5:e87c:a::/64
bootstrap_service_cidr: 10.43.0.0/16,fd7f:8f5:e87c:e::/112
bootstrap_local_storage_path: /var/openebs/local
bootstrap_nodes:
master:
- name: k8s-0
address: 10.10.10.100
username: fake
worker:
- name: k8s-1
address: 10.10.10.101
username: fake
12 changes: 10 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
e2e-configure:
name: e2e-configure
runs-on: ubuntu-latest
strategy:
matrix:
config-files:
- config-ipv4
- config-ipv6
addon-files:
- addons
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -88,8 +96,8 @@ jobs:
shell: bash
run: |
task init
cp ./.github/tests/config.yaml ./bootstrap/vars/config.yaml
cp ./.github/tests/addons.yaml ./bootstrap/vars/addons.yaml
cp ./.github/tests/${{ matrix.config-files }}.yaml ./bootstrap/vars/config.yaml
cp ./.github/tests/${{ matrix.addon-files }}.yaml ./bootstrap/vars/addons.yaml
export BOOTSTRAP_AGE_PUBLIC_KEY=$(sed -n 's/# public key: //gp' age.key)
envsubst < ./bootstrap/vars/config.yaml | sponge ./bootstrap/vars/config.yaml
Expand Down

0 comments on commit a21cadb

Please sign in to comment.