diff --git a/.github/workflows/tf-modules-validation.yml b/.github/workflows/tf-modules-validation.yml index 56e805a9..96157017 100644 --- a/.github/workflows/tf-modules-validation.yml +++ b/.github/workflows/tf-modules-validation.yml @@ -1,4 +1,4 @@ -name: TF Modules - Validaton +name: TF Modules - Validation on: push: @@ -14,7 +14,7 @@ on: workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }} cancel-in-progress: false permissions: @@ -46,6 +46,7 @@ jobs: ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} ARM_USE_OIDC: "true" + TERRAFORM_VERSION: "1.6.2" strategy: fail-fast: false matrix: @@ -61,7 +62,7 @@ jobs: uses: hashicorp/setup-terraform@v3 with: terraform_wrapper: false - terraform_version: latest + terraform_version: ${{ env.TERRAFORM_VERSION }} - name: Terraform Version run: terraform version @@ -96,7 +97,7 @@ jobs: - 'terraform/modules/${{ matrix.modules }}/**' - name: Terraform Test - if: steps.changes.outputs.module == 'true' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch') + if: steps.changes.outputs.module == 'true' || (github.event_name == 'workflow_dispatch') run: | OUTPUT=$(terraform test) echo "$OUTPUT" diff --git a/terraform/modules/az-aks/tests/cluster_creation.tftest.hcl b/terraform/modules/az-aks/tests/cluster_creation.tftest.hcl index 3a16785c..c7bc936f 100644 --- a/terraform/modules/az-aks/tests/cluster_creation.tftest.hcl +++ b/terraform/modules/az-aks/tests/cluster_creation.tftest.hcl @@ -18,7 +18,7 @@ run "plan" { resource_group_name = run.setup.resource_group_name name = "az-aks-cluster" configuration = { - version = "1.27.3" + version = "1.28.5" sku = "Free" private_cluster = true user_assigned_identity_id = run.setup.assigned_identity_id @@ -99,7 +99,7 @@ run "apply" { resource_group_name = run.setup.resource_group_name name = "az-aks-cluster" configuration = { - version = "1.27.3" + version = "1.28.5" sku = "Free" private_cluster = true user_assigned_identity_id = run.setup.assigned_identity_id