mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 15:39:33 -05:00
ci: add Terraform logging (#1665)
* enable Terraform logging * change to debug level * rename artifact * add name suffix * remove blank line
This commit is contained in:
parent
1825c11790
commit
261fe611a9
@ -184,7 +184,7 @@ runs:
|
||||
echo "Creating cluster using config:"
|
||||
cat constellation-conf.yaml
|
||||
sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts' || true
|
||||
constellation create -c ${{ inputs.controlNodesCount }} -w ${{ inputs.workerNodesCount }} -y --force --debug
|
||||
constellation create -c ${{ inputs.controlNodesCount }} -w ${{ inputs.workerNodesCount }} -y --force --debug --tf-log=DEBUG
|
||||
|
||||
- name: Cdbg deploy
|
||||
if: inputs.isDebugImage == 'true'
|
||||
|
@ -40,4 +40,4 @@ runs:
|
||||
|
||||
- name: Constellation terminate
|
||||
shell: bash
|
||||
run: constellation terminate --yes
|
||||
run: constellation terminate --yes --tf-log=DEBUG
|
||||
|
@ -55,7 +55,7 @@ runs:
|
||||
--region=${{ inputs.azureRegion }} \
|
||||
--resourceGroup="${{ inputs.namePrefix }}-rg" \
|
||||
--servicePrincipal="${{ inputs.namePrefix }}-sp" \
|
||||
--generate-config --yes
|
||||
--generate-config --yes --tf-log=DEBUG
|
||||
|
||||
- name: Constellation iam create gcp
|
||||
shell: bash
|
||||
|
@ -3,14 +3,14 @@ description: Delete previously created IAM configuration.
|
||||
|
||||
inputs:
|
||||
cloudProvider:
|
||||
description: "Either 'aws', 'azure' or 'gcp'."
|
||||
required: true
|
||||
description: "Either 'aws', 'azure' or 'gcp'."
|
||||
required: true
|
||||
gcpServiceAccount:
|
||||
description: "GCP service account to use for authentication."
|
||||
required: false
|
||||
description: "GCP service account to use for authentication."
|
||||
required: false
|
||||
azureCredentials:
|
||||
description: "Azure service principal to use for authentication."
|
||||
required: false
|
||||
description: "Azure service principal to use for authentication."
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@ -39,4 +39,4 @@ runs:
|
||||
- name: Delete IAM configuration
|
||||
shell: bash
|
||||
run: |
|
||||
constellation iam destroy --yes
|
||||
constellation iam destroy --yes --tf-log=DEBUG
|
||||
|
5
.github/actions/e2e_test/action.yml
vendored
5
.github/actions/e2e_test/action.yml
vendored
@ -79,7 +79,10 @@ outputs:
|
||||
kubeconfig:
|
||||
description: "The kubeconfig for the cluster."
|
||||
value: ${{ steps.constellation-create.outputs.kubeconfig }}
|
||||
|
||||
namePrefix:
|
||||
description: "The name prefix of the cloud resources used in the e2e test."
|
||||
value: ${{ steps.create-prefix.outputs.prefix }}
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
|
16
.github/actions/upload_terraform_logs/action.yml
vendored
Normal file
16
.github/actions/upload_terraform_logs/action.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
name: Upload Terraform logs
|
||||
description: "Upload the Terraform log file as an artifact."
|
||||
|
||||
inputs:
|
||||
artifactNameSuffix:
|
||||
description: "Name suffix for the created artifact."
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: terraform-logs-${{ inputs.artifactNameSuffix }}
|
||||
path: terraform.log
|
6
.github/workflows/e2e-test-daily.yml
vendored
6
.github/workflows/e2e-test-daily.yml
vendored
@ -104,6 +104,12 @@ jobs:
|
||||
azureCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
||||
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||
|
||||
- name: Always upload Terraform logs
|
||||
if: always()
|
||||
uses: ./.github/actions/upload_terraform_logs
|
||||
with:
|
||||
artifactNameSuffix: ${{ steps.e2e_test.outputs.namePrefix }}
|
||||
|
||||
- name: Notify about failure
|
||||
if: |
|
||||
failure() &&
|
||||
|
6
.github/workflows/e2e-test-manual.yml
vendored
6
.github/workflows/e2e-test-manual.yml
vendored
@ -276,3 +276,9 @@ jobs:
|
||||
cloudProvider: ${{ inputs.cloudProvider }}
|
||||
azureCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
||||
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||
|
||||
- name: Always upload Terraform logs
|
||||
if: always()
|
||||
uses: ./.github/actions/upload_terraform_logs
|
||||
with:
|
||||
artifactNameSuffix: ${{ steps.e2e_test.outputs.namePrefix }}
|
||||
|
6
.github/workflows/e2e-test-release.yml
vendored
6
.github/workflows/e2e-test-release.yml
vendored
@ -216,6 +216,12 @@ jobs:
|
||||
azureCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
||||
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||
|
||||
- name: Always upload Terraform logs
|
||||
if: always()
|
||||
uses: ./.github/actions/upload_terraform_logs
|
||||
with:
|
||||
artifactNameSuffix: ${{ steps.e2e_test.outputs.namePrefix }}
|
||||
|
||||
e2e-upgrade:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
6
.github/workflows/e2e-test-weekly.yml
vendored
6
.github/workflows/e2e-test-weekly.yml
vendored
@ -242,6 +242,12 @@ jobs:
|
||||
kubernetesVersion: ${{ matrix.kubernetes-version }}
|
||||
provider: ${{ matrix.provider }}
|
||||
|
||||
- name: Always upload Terraform logs
|
||||
if: always()
|
||||
uses: ./.github/actions/upload_terraform_logs
|
||||
with:
|
||||
artifactNameSuffix: ${{ steps.e2e_test.outputs.namePrefix }}
|
||||
|
||||
e2e-upgrade:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
6
.github/workflows/e2e-upgrade.yml
vendored
6
.github/workflows/e2e-upgrade.yml
vendored
@ -200,6 +200,12 @@ jobs:
|
||||
azureCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
||||
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||
|
||||
- name: Always upload Terraform logs
|
||||
if: always()
|
||||
uses: ./.github/actions/upload_terraform_logs
|
||||
with:
|
||||
artifactNameSuffix: ${{ steps.e2e_test.outputs.namePrefix }}
|
||||
|
||||
- name: Notify about failure
|
||||
if: |
|
||||
failure() &&
|
||||
|
Loading…
Reference in New Issue
Block a user