Skip to content

Commit

Permalink
Try running against AKS
Browse files Browse the repository at this point in the history
  • Loading branch information
curtbushko committed Aug 25, 2022
1 parent e5ca554 commit d5b253d
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,63 @@ jobs:
fail_only: true
failure_message: "AKS acceptance tests failed. Check the logs at: ${CIRCLE_BUILD_URL}"

acceptance-aks-cni-1-21:
parallelism: 6
environment:
- TEST_RESULTS: /tmp/test-results
docker:
# This image is built from test/docker/Test.dockerfile
- image: docker.mirror.hashicorp.services/hashicorpdev/consul-helm-test:0.11.0

steps:
- checkout

- run:
name: terraform init & apply
working_directory: *aks-terraform-path
command: |
terraform init
terraform apply \
-var client_id="$ARM_CLIENT_ID" \
-var client_secret="$ARM_CLIENT_SECRET" \
-var cluster_count=2 \
-var tags="{\"build_url\": \"$CIRCLE_BUILD_URL\"}" \
-auto-approve
primary_kubeconfig=$(terraform output -json | jq -r .kubeconfigs.value[0])
secondary_kubeconfig=$(terraform output -json | jq -r .kubeconfigs.value[1])
echo "export primary_kubeconfig=$primary_kubeconfig" >> $BASH_ENV
echo "export secondary_kubeconfig=$secondary_kubeconfig" >> $BASH_ENV
# Restore go module cache if there is one
- restore_cache:
keys:
- consul-helm-acceptance-modcache-v2-{{ checksum "acceptance/go.mod" }}

- run: mkdir -p $TEST_RESULTS

- run-acceptance-tests:
additional-flags: -kubeconfig="$primary_kubeconfig" -secondary-kubeconfig="$secondary_kubeconfig" -enable-transparent-proxy -enable-cni

- store_test_results:
path: /tmp/test-results
- store_artifacts:
path: /tmp/test-results

- run:
name: terraform destroy
working_directory: *aks-terraform-path
command: |
terraform destroy -auto-approve
when: always
- slack/status:
# temporarily sending to #cni-acceptance-tests channel
channel: C03V3K0040G
fail_only: true
failure_message: "Acceptance tests for CNI against AKS failed. Check the logs at: ${CIRCLE_BUILD_URL}"

acceptance-eks-1-19:
parallelism: 6
environment:
Expand Down

0 comments on commit d5b253d

Please sign in to comment.