Ensuring secrets are visible when writing the Kubeconfig as part of the K8s tests
MODIFY
.github/workflows/cron.yml
.github/workflows/cron.yml
@@ -375,7 +375,7 @@ jobs:
- name: Setup Config
run: |
mkdir -p "$HOME/.kube/"
- pulumi stack -s "${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}-${{ github.run_number }}" -C misc/scripts/testinfra/ output kubeconfig >~/.kube/config
+ pulumi stack -s "${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}-${{ github.run_number }}" -C misc/scripts/testinfra/ output --show-secrets kubeconfig >~/.kube/config
- name: Run ${{ matrix.tests-set }} Tests
run: make specific_test_set TestSet=Kubernetes
- if: failure() && github.event_name == 'push'

MODIFY
.github/workflows/run-tests-command.yml
.github/workflows/run-tests-command.yml
@@ -340,6 +340,6 @@ jobs:
- name: Setup Config
run: |
mkdir -p "$HOME/.kube/"
- pulumi stack -s "${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}-${{ github.run_number }}" -C misc/scripts/testinfra/ output kubeconfig >~/.kube/config
+ pulumi stack -s "${{ secrets.PULUMI_TEST_OWNER }}/${{ github.sha }}-${{ github.run_number }}" -C misc/scripts/testinfra/ output --show-secrets kubeconfig >~/.kube/config
- name: Run ${{ matrix.tests-set }} Tests
run: make specific_test_set TestSet=Kubernetes

Ensuring secrets are visible when writing the Kubeconfig as part of the K8s tests