From ce7bfde87283727651457fc3d021dfa4b13f544e Mon Sep 17 00:00:00 2001 From: Alexandre Pires Date: Sun, 29 Sep 2024 19:04:21 +0200 Subject: [PATCH] Refactor file path in actions-validate.yml and update input parameters for vault master password, ansible user, and trusted hosts --- .github/actions/setup-k8s-env/action.yml | 10 +--------- .github/workflows/actions-validate.yml | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/actions/setup-k8s-env/action.yml b/.github/actions/setup-k8s-env/action.yml index c6ab8df..f59d627 100644 --- a/.github/actions/setup-k8s-env/action.yml +++ b/.github/actions/setup-k8s-env/action.yml @@ -25,15 +25,7 @@ runs: mkdir -p ~/.kube ansible -i ansible/inventory/hosts -u $ANSIBLE_USER -m fetch -a "src=/home/$ANSIBLE_USER/.kube/config dest=~/.kube/config flat=yes" $K8S_TARGET - - name: Terraform Init - shell: bash - env: - VAULT_MASTER_PASSWORD: ${{ inputs.vault-master-password }} - run: | - cd terraform/k8sapps - sectool exec terraform init - - - name: Terraform Apply + - name: Forward K8S API Server port shell: bash env: VAULT_MASTER_PASSWORD: ${{ inputs.vault-master-password }} diff --git a/.github/workflows/actions-validate.yml b/.github/workflows/actions-validate.yml index 5e67dec..308e3f7 100644 --- a/.github/workflows/actions-validate.yml +++ b/.github/workflows/actions-validate.yml @@ -88,7 +88,7 @@ jobs: - name: Test kubectl get nodes run: | - kubectl get nodes + kubectl get nodes --insecure-skip-tls-verify - name: Test terraform run: |