2022-10-31 17:12:08 +01:00
|
|
|
name: e2e test weekly
|
2022-08-09 10:02:15 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2022-10-31 17:12:08 +01:00
|
|
|
- cron: "0 3 * * 6" # At 03:00 on Saturday.
|
2022-10-14 14:44:32 +02:00
|
|
|
|
2022-08-09 10:02:15 +02:00
|
|
|
jobs:
|
2022-11-23 09:41:42 +01:00
|
|
|
find-latest-image:
|
2023-03-21 11:46:06 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-11-08 19:10:01 +01:00
|
|
|
refStream: ["ref/main/stream/nightly/?","ref/main/stream/debug/?", "ref/release/stream/stable/?"]
|
2023-03-21 11:46:06 +01:00
|
|
|
name: Find latest image
|
2024-10-09 12:16:10 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2022-11-23 09:41:42 +01:00
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
outputs:
|
2023-03-21 11:46:06 +01:00
|
|
|
image-main-debug: ${{ steps.relabel-output.outputs.image-main-debug }}
|
|
|
|
image-release-stable: ${{ steps.relabel-output.outputs.image-release-stable }}
|
2023-11-08 19:10:01 +01:00
|
|
|
image-main-nightly: ${{ steps.relabel-output.outputs.image-main-nightly }}
|
2022-11-23 09:41:42 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-11-28 16:15:26 +01:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2022-11-23 09:41:42 +01:00
|
|
|
with:
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-11-23 09:41:42 +01:00
|
|
|
|
2023-02-13 13:58:34 +01:00
|
|
|
- name: Select relevant image
|
|
|
|
id: select-image-action
|
|
|
|
uses: ./.github/actions/select_image
|
2023-01-12 16:46:51 +01:00
|
|
|
with:
|
2023-02-13 13:58:34 +01:00
|
|
|
osImage: ${{ matrix.refStream }}
|
2023-03-21 11:46:06 +01:00
|
|
|
|
|
|
|
- name: Relabel output
|
|
|
|
id: relabel-output
|
2023-02-13 13:58:34 +01:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
ref=$(echo ${{ matrix.refStream }} | cut -d/ -f2)
|
|
|
|
stream=$(echo ${{ matrix.refStream }} | cut -d/ -f4)
|
|
|
|
|
|
|
|
echo "image-$ref-$stream=${{ steps.select-image-action.outputs.osImage }}" | tee -a "$GITHUB_OUTPUT"
|
2022-11-23 09:41:42 +01:00
|
|
|
|
2022-10-31 17:12:08 +01:00
|
|
|
e2e-weekly:
|
2022-08-09 10:02:15 +02:00
|
|
|
strategy:
|
2022-10-31 17:12:08 +01:00
|
|
|
fail-fast: false
|
2023-02-13 13:58:34 +01:00
|
|
|
max-parallel: 4
|
2022-08-09 10:02:15 +02:00
|
|
|
matrix:
|
2023-04-14 18:43:54 +02:00
|
|
|
include:
|
|
|
|
#
|
|
|
|
# Tests on main-debug refStream
|
|
|
|
#
|
|
|
|
|
2024-02-01 15:05:07 +01:00
|
|
|
# Sonobuoy full test on latest k8s version
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "sonobuoy full"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2024-04-16 18:13:47 +02:00
|
|
|
- test: "sonobuoy full"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "gcp-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-04-16 18:13:47 +02:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "sonobuoy full"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "sonobuoy full"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-tdx"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-01-25 15:32:19 +01:00
|
|
|
clusterCreation: "cli"
|
|
|
|
- test: "sonobuoy full"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "aws-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
|
2024-07-25 17:38:17 +02:00
|
|
|
# Sonobuoy conformance test
|
|
|
|
- test: "sonobuoy conformance"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "gcp-sev-snp"
|
|
|
|
kubernetes-version: "v1.30"
|
|
|
|
clusterCreation: "cli"
|
|
|
|
|
2024-02-01 15:05:07 +01:00
|
|
|
# Sonobuoy quick test on all but the latest k8s versions
|
|
|
|
- test: "sonobuoy quick"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.29"
|
2024-01-25 15:32:19 +01:00
|
|
|
clusterCreation: "cli"
|
2024-04-16 18:13:47 +02:00
|
|
|
- test: "sonobuoy quick"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "gcp-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.29"
|
2024-04-16 18:13:47 +02:00
|
|
|
clusterCreation: "cli"
|
2024-02-01 15:05:07 +01:00
|
|
|
- test: "sonobuoy quick"
|
2024-01-25 15:32:19 +01:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "azure-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.29"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2024-02-01 15:05:07 +01:00
|
|
|
- test: "sonobuoy quick"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-tdx"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.29"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2024-02-01 15:05:07 +01:00
|
|
|
- test: "sonobuoy quick"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "aws-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.29"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
|
2024-02-01 15:05:07 +01:00
|
|
|
- test: "sonobuoy quick"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.28"
|
2024-01-25 15:32:19 +01:00
|
|
|
clusterCreation: "cli"
|
2024-04-16 18:13:47 +02:00
|
|
|
- test: "sonobuoy quick"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "gcp-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.28"
|
2024-04-16 18:13:47 +02:00
|
|
|
clusterCreation: "cli"
|
2024-02-01 15:05:07 +01:00
|
|
|
- test: "sonobuoy quick"
|
2024-01-25 15:32:19 +01:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "azure-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.28"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2024-02-01 15:05:07 +01:00
|
|
|
- test: "sonobuoy quick"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-tdx"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.28"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2024-02-01 15:05:07 +01:00
|
|
|
- test: "sonobuoy quick"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "aws-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.28"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
|
2024-02-01 15:05:07 +01:00
|
|
|
|
2023-04-14 18:43:54 +02:00
|
|
|
# verify test on latest k8s version
|
|
|
|
- test: "verify"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2024-04-16 18:13:47 +02:00
|
|
|
- test: "verify"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "gcp-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-04-16 18:13:47 +02:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "verify"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-08-08 12:02:43 +02:00
|
|
|
azureSNPEnforcementPolicy: "equal" # This run checks for unknown ID Key disgests.
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "verify"
|
2024-01-25 15:32:19 +01:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "azure-tdx"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-01-25 15:32:19 +01:00
|
|
|
clusterCreation: "cli"
|
|
|
|
- test: "verify"
|
|
|
|
attestationVariant: "aws-sev-snp"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
|
|
|
|
# recover test on latest k8s version
|
2023-01-19 10:41:07 +01:00
|
|
|
- test: "recover"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-01-25 15:32:19 +01:00
|
|
|
clusterCreation: "cli"
|
2024-04-16 18:13:47 +02:00
|
|
|
- test: "recover"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "gcp-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-04-16 18:13:47 +02:00
|
|
|
clusterCreation: "cli"
|
2024-01-25 15:32:19 +01:00
|
|
|
- test: "recover"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "azure-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "recover"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-tdx"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "recover"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "aws-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
|
|
|
|
# lb test on latest k8s version
|
|
|
|
- test: "lb"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-01-25 15:32:19 +01:00
|
|
|
clusterCreation: "cli"
|
2024-04-16 18:13:47 +02:00
|
|
|
- test: "lb"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "gcp-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-04-16 18:13:47 +02:00
|
|
|
clusterCreation: "cli"
|
2024-01-25 15:32:19 +01:00
|
|
|
- test: "lb"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "azure-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "lb"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-tdx"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "lb"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "aws-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
|
2023-08-18 11:13:24 +02:00
|
|
|
# autoscaling test on latest k8s version
|
2022-10-31 17:12:08 +01:00
|
|
|
- test: "autoscaling"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2024-04-16 18:13:47 +02:00
|
|
|
- test: "autoscaling"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "gcp-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-04-16 18:13:47 +02:00
|
|
|
clusterCreation: "cli"
|
2022-12-09 16:30:21 +01:00
|
|
|
- test: "autoscaling"
|
2023-04-14 18:43:54 +02:00
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-08-18 11:13:24 +02:00
|
|
|
- test: "autoscaling"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-tdx"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-01-25 15:32:19 +01:00
|
|
|
clusterCreation: "cli"
|
|
|
|
- test: "autoscaling"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
|
|
|
attestationVariant: "aws-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
|
2024-06-04 13:23:07 +02:00
|
|
|
# perf-bench test on latest k8s version
|
2023-03-01 10:24:36 +01:00
|
|
|
- test: "perf-bench"
|
2024-07-25 16:25:56 +02:00
|
|
|
refStream: "ref/main/stream/nightly/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2024-06-04 13:23:07 +02:00
|
|
|
- test: "perf-bench"
|
2024-07-25 16:25:56 +02:00
|
|
|
refStream: "ref/main/stream/nightly/?"
|
2024-06-04 13:23:07 +02:00
|
|
|
attestationVariant: "gcp-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-06-04 13:23:07 +02:00
|
|
|
clusterCreation: "cli"
|
2023-03-01 10:24:36 +01:00
|
|
|
- test: "perf-bench"
|
2024-07-25 16:25:56 +02:00
|
|
|
refStream: "ref/main/stream/nightly/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2024-06-04 13:23:07 +02:00
|
|
|
- test: "perf-bench"
|
2024-07-25 16:25:56 +02:00
|
|
|
refStream: "ref/main/stream/nightly/?"
|
2024-06-04 13:23:07 +02:00
|
|
|
attestationVariant: "azure-tdx"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-06-04 13:23:07 +02:00
|
|
|
clusterCreation: "cli"
|
|
|
|
- test: "perf-bench"
|
2024-07-25 16:25:56 +02:00
|
|
|
refStream: "ref/main/stream/nightly/?"
|
2024-06-04 13:23:07 +02:00
|
|
|
attestationVariant: "aws-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2024-06-04 13:23:07 +02:00
|
|
|
clusterCreation: "cli"
|
2023-09-15 17:21:42 +02:00
|
|
|
|
2023-10-12 13:27:02 +02:00
|
|
|
# s3proxy test on latest k8s version
|
|
|
|
- test: "s3proxy"
|
|
|
|
refStream: "ref/main/stream/debug/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.30"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-10-12 13:27:02 +02:00
|
|
|
|
2023-04-14 18:43:54 +02:00
|
|
|
#
|
|
|
|
# Tests on release-stable refStream
|
|
|
|
#
|
|
|
|
|
|
|
|
# verify test on default k8s version
|
|
|
|
- test: "verify"
|
|
|
|
refStream: "ref/release/stream/stable/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "gcp-sev-es"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.29"
|
2024-01-25 15:32:19 +01:00
|
|
|
clusterCreation: "cli"
|
2024-07-04 11:17:55 +02:00
|
|
|
- test: "verify"
|
|
|
|
refStream: "ref/release/stream/stable/?"
|
|
|
|
attestationVariant: "gcp-sev-snp"
|
|
|
|
kubernetes-version: "v1.29"
|
|
|
|
clusterCreation: "cli"
|
2024-01-25 15:32:19 +01:00
|
|
|
- test: "verify"
|
|
|
|
refStream: "ref/release/stream/stable/?"
|
|
|
|
attestationVariant: "azure-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.29"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "verify"
|
|
|
|
refStream: "ref/release/stream/stable/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "azure-tdx"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.29"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-04-14 18:43:54 +02:00
|
|
|
- test: "verify"
|
|
|
|
refStream: "ref/release/stream/stable/?"
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: "aws-sev-snp"
|
2024-06-19 17:34:34 +02:00
|
|
|
kubernetes-version: "v1.29"
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: "cli"
|
2023-10-27 09:37:26 +02:00
|
|
|
|
2024-10-09 12:16:10 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2022-11-08 18:11:03 +01:00
|
|
|
permissions:
|
|
|
|
id-token: write
|
2023-03-17 15:36:29 +01:00
|
|
|
checks: write
|
2022-11-08 18:11:03 +01:00
|
|
|
contents: read
|
2023-04-24 11:32:22 +02:00
|
|
|
packages: write
|
2024-04-26 10:06:01 +00:00
|
|
|
actions: write
|
2022-11-23 09:41:42 +01:00
|
|
|
needs: [find-latest-image]
|
2022-08-09 10:02:15 +02:00
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
2024-11-28 16:15:26 +01:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2022-08-09 10:02:15 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-02 12:43:04 +02:00
|
|
|
|
2024-01-25 15:32:19 +01:00
|
|
|
- name: Split attestationVariant
|
|
|
|
id: split-attestationVariant
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
attestationVariant="${{ matrix.attestationVariant }}"
|
|
|
|
cloudProvider="${attestationVariant%%-*}"
|
|
|
|
|
|
|
|
echo "cloudProvider=${cloudProvider}" | tee -a "$GITHUB_OUTPUT"
|
|
|
|
|
2022-11-02 15:16:47 +01:00
|
|
|
- name: Run E2E test
|
2022-11-09 10:28:34 +01:00
|
|
|
id: e2e_test
|
2022-08-09 10:02:15 +02:00
|
|
|
uses: ./.github/actions/e2e_test
|
|
|
|
with:
|
|
|
|
workerNodesCount: "2"
|
2022-09-14 14:12:42 +02:00
|
|
|
controlNodesCount: "3"
|
2024-01-25 15:32:19 +01:00
|
|
|
cloudProvider: ${{ steps.split-attestationVariant.outputs.cloudProvider }}
|
|
|
|
attestationVariant: ${{ matrix.attestationVariant }}
|
2024-07-25 16:25:56 +02:00
|
|
|
osImage: ${{ matrix.refStream == 'ref/release/stream/stable/?' && needs.find-latest-image.outputs.image-release-stable || matrix.refStream == 'ref/main/stream/nightly/?' && needs.find-latest-image.outputs.image-main-nightly || needs.find-latest-image.outputs.image-main-debug }}
|
2023-02-13 13:58:34 +01:00
|
|
|
isDebugImage: ${{ matrix.refStream == 'ref/main/stream/debug/?' }}
|
|
|
|
cliVersion: ${{ matrix.refStream == 'ref/release/stream/stable/?' && needs.find-latest-image.outputs.image-release-stable || '' }}
|
2023-03-21 11:46:06 +01:00
|
|
|
kubernetesVersion: ${{ matrix.kubernetes-version }}
|
2023-09-26 13:17:59 +02:00
|
|
|
refStream: ${{ matrix.refStream }}
|
2023-03-01 16:46:23 +01:00
|
|
|
awsOpenSearchDomain: ${{ secrets.AWS_OPENSEARCH_DOMAIN }}
|
|
|
|
awsOpenSearchUsers: ${{ secrets.AWS_OPENSEARCH_USER }}
|
|
|
|
awsOpenSearchPwd: ${{ secrets.AWS_OPENSEARCH_PWD }}
|
2023-11-28 10:54:58 +01:00
|
|
|
gcpProject: constellation-e2e
|
2023-11-27 13:04:41 +01:00
|
|
|
gcpClusterCreateServiceAccount: "infrastructure-e2e@constellation-e2e.iam.gserviceaccount.com"
|
|
|
|
gcpIAMCreateServiceAccount: "iam-e2e@constellation-e2e.iam.gserviceaccount.com"
|
2022-10-31 17:12:08 +01:00
|
|
|
test: ${{ matrix.test }}
|
2024-09-17 12:30:22 +02:00
|
|
|
azureSubscriptionID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
2023-04-12 13:24:13 +02:00
|
|
|
azureClusterCreateCredentials: ${{ secrets.AZURE_E2E_CLUSTER_CREDENTIALS }}
|
|
|
|
azureIAMCreateCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
2023-04-04 10:16:04 +02:00
|
|
|
registry: ghcr.io
|
|
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
2023-08-09 18:58:46 +02:00
|
|
|
cosignPassword: ${{ secrets.COSIGN_PASSWORD }}
|
|
|
|
cosignPrivateKey: ${{ secrets.COSIGN_PRIVATE_KEY }}
|
2023-08-04 09:43:32 +02:00
|
|
|
fetchMeasurements: ${{ matrix.refStream != 'ref/release/stream/stable/?' }}
|
2023-08-08 12:02:43 +02:00
|
|
|
azureSNPEnforcementPolicy: ${{ matrix.azureSNPEnforcementPolicy }}
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: ${{ matrix.clusterCreation }}
|
2023-10-12 13:27:02 +02:00
|
|
|
s3AccessKey: ${{ secrets.AWS_ACCESS_KEY_ID_S3PROXY }}
|
|
|
|
s3SecretKey: ${{ secrets.AWS_SECRET_ACCESS_KEY_S3PROXY }}
|
2023-12-21 19:28:18 +01:00
|
|
|
encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }}
|
2022-09-02 12:40:22 +02:00
|
|
|
|
|
|
|
- name: Always terminate cluster
|
|
|
|
if: always()
|
|
|
|
uses: ./.github/actions/constellation_destroy
|
2022-11-09 10:28:34 +01:00
|
|
|
with:
|
|
|
|
kubeconfig: ${{ steps.e2e_test.outputs.kubeconfig }}
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: ${{ matrix.clusterCreation }}
|
2024-01-25 15:32:19 +01:00
|
|
|
cloudProvider: ${{ steps.split-attestationVariant.outputs.cloudProvider }}
|
2023-11-14 13:25:52 +01:00
|
|
|
azureClusterDeleteCredentials: ${{ secrets.AZURE_E2E_CLUSTER_CREDENTIALS }}
|
2023-11-28 10:54:58 +01:00
|
|
|
gcpClusterDeleteServiceAccount: "infrastructure-e2e@constellation-e2e.iam.gserviceaccount.com"
|
2022-09-02 12:40:22 +02:00
|
|
|
|
2023-02-21 12:47:14 +01:00
|
|
|
- name: Always delete IAM configuration
|
2023-04-12 13:24:13 +02:00
|
|
|
if: always()
|
2023-02-21 12:47:14 +01:00
|
|
|
uses: ./.github/actions/constellation_iam_destroy
|
2023-04-12 13:24:13 +02:00
|
|
|
with:
|
2024-01-25 15:32:19 +01:00
|
|
|
cloudProvider: ${{ steps.split-attestationVariant.outputs.cloudProvider }}
|
2023-04-12 13:24:13 +02:00
|
|
|
azureCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
2023-11-27 13:04:41 +01:00
|
|
|
gcpServiceAccount: "iam-e2e@constellation-e2e.iam.gserviceaccount.com"
|
2023-02-21 12:47:14 +01:00
|
|
|
|
2024-04-26 10:06:01 +00:00
|
|
|
- name: Update tfstate
|
|
|
|
if: always()
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
uses: ./.github/actions/update_tfstate
|
|
|
|
with:
|
2024-05-03 08:17:40 +02:00
|
|
|
name: terraform-state-${{ steps.e2e_test.outputs.namePrefix }}
|
2024-04-26 10:06:01 +00:00
|
|
|
runID: ${{ github.run_id }}
|
|
|
|
encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }}
|
|
|
|
|
2023-04-12 16:06:26 +02:00
|
|
|
- name: Notify about failure
|
2023-04-17 17:30:56 +02:00
|
|
|
if: |
|
|
|
|
failure() &&
|
|
|
|
github.ref == 'refs/heads/main' &&
|
2023-04-18 14:50:36 +02:00
|
|
|
github.event_name == 'schedule'
|
2022-09-02 12:40:22 +02:00
|
|
|
continue-on-error: true
|
2023-11-15 08:48:13 +01:00
|
|
|
uses: ./.github/actions/notify_e2e_failure
|
2023-04-12 16:06:26 +02:00
|
|
|
with:
|
|
|
|
projectWriteToken: ${{ secrets.PROJECT_WRITE_TOKEN }}
|
|
|
|
refStream: ${{ matrix.refStream }}
|
|
|
|
test: ${{ matrix.test }}
|
|
|
|
kubernetesVersion: ${{ matrix.kubernetes-version }}
|
2024-01-25 15:32:19 +01:00
|
|
|
provider: ${{ steps.split-attestationVariant.outputs.cloudProvider }}
|
2024-01-29 11:52:41 +01:00
|
|
|
attestationVariant: ${{ matrix.attestationVariant }}
|
2023-12-15 10:37:29 +01:00
|
|
|
clusterCreation: ${{ matrix.clusterCreation }}
|
2022-09-02 12:40:22 +02:00
|
|
|
|
2023-02-03 10:05:42 +00:00
|
|
|
e2e-upgrade:
|
|
|
|
strategy:
|
2023-04-12 16:06:26 +02:00
|
|
|
fail-fast: false
|
|
|
|
max-parallel: 1
|
|
|
|
matrix:
|
2024-12-04 08:30:14 +01:00
|
|
|
fromVersion: ["v2.20.0"]
|
2024-07-22 13:29:27 +02:00
|
|
|
attestationVariant: ["gcp-sev-snp", "azure-sev-snp", "azure-tdx", "aws-sev-snp"]
|
2023-02-03 10:05:42 +00:00
|
|
|
name: Run upgrade tests
|
|
|
|
secrets: inherit
|
|
|
|
permissions:
|
|
|
|
id-token: write
|
2023-04-24 13:49:02 +02:00
|
|
|
checks: write
|
2023-02-03 10:05:42 +00:00
|
|
|
contents: read
|
2023-04-24 13:49:02 +02:00
|
|
|
packages: write
|
2024-04-26 10:06:01 +00:00
|
|
|
actions: write
|
2023-02-03 10:05:42 +00:00
|
|
|
uses: ./.github/workflows/e2e-upgrade.yml
|
|
|
|
with:
|
|
|
|
fromVersion: ${{ matrix.fromVersion }}
|
2024-01-25 15:32:19 +01:00
|
|
|
attestationVariant: ${{ matrix.attestationVariant }}
|
2023-08-10 12:53:40 +02:00
|
|
|
nodeCount: '3:2'
|
2023-04-18 14:50:36 +02:00
|
|
|
scheduled: ${{ github.event_name == 'schedule' }}
|
2023-08-09 18:58:46 +02:00
|
|
|
|
2023-06-30 10:05:24 +02:00
|
|
|
e2e-mini:
|
|
|
|
name: Run miniconstellation E2E test
|
2024-10-09 12:16:10 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2023-06-30 10:05:24 +02:00
|
|
|
environment: e2e
|
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
id: checkout
|
2024-11-28 16:15:26 +01:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2023-06-30 10:05:24 +02:00
|
|
|
with:
|
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
|
|
|
|
|
|
|
- name: Azure login OIDC
|
2024-11-28 16:15:26 +01:00
|
|
|
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0
|
2023-06-30 10:05:24 +02:00
|
|
|
with:
|
|
|
|
client-id: ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
|
|
|
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
|
|
|
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
|
|
|
|
|
|
|
- name: Run e2e MiniConstellation
|
|
|
|
uses: ./.github/actions/e2e_mini
|
|
|
|
with:
|
|
|
|
azureClientID: ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
|
|
|
|
azureSubscriptionID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
|
|
|
azureTenantID: ${{ secrets.AZURE_TENANT_ID }}
|
2024-05-31 13:51:55 +02:00
|
|
|
azureIAMCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
2023-06-30 10:05:24 +02:00
|
|
|
registry: ghcr.io
|
|
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
2023-08-21 14:36:28 +02:00
|
|
|
|
2023-09-22 13:25:20 +02:00
|
|
|
- name: Notify about failure
|
|
|
|
if: |
|
|
|
|
failure() &&
|
|
|
|
github.ref == 'refs/heads/main' &&
|
|
|
|
github.event_name == 'schedule'
|
|
|
|
continue-on-error: true
|
2023-11-15 08:48:13 +01:00
|
|
|
uses: ./.github/actions/notify_e2e_failure
|
2023-09-22 13:25:20 +02:00
|
|
|
with:
|
|
|
|
projectWriteToken: ${{ secrets.PROJECT_WRITE_TOKEN }}
|
|
|
|
test: "MiniConstellation"
|
|
|
|
provider: "QEMU"
|
2024-01-29 11:52:41 +01:00
|
|
|
attestationVariant: "qemu-vtpm"
|
2023-09-22 13:25:20 +02:00
|
|
|
|
2023-08-21 14:36:28 +02:00
|
|
|
e2e-windows:
|
|
|
|
name: Run Windows E2E test
|
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
packages: write
|
2024-04-26 10:06:01 +00:00
|
|
|
checks: write
|
2023-08-21 14:36:28 +02:00
|
|
|
secrets: inherit
|
|
|
|
uses: ./.github/workflows/e2e-windows.yml
|
|
|
|
with:
|
|
|
|
scheduled: ${{ github.event_name == 'schedule' }}
|
2024-01-25 11:09:27 +01:00
|
|
|
|
|
|
|
e2e-terraform-provider-example:
|
|
|
|
name: Run Terraform provider example E2E test
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-07-22 13:29:27 +02:00
|
|
|
attestationVariant: ["gcp-sev-snp", "azure-sev-snp", "azure-tdx", "aws-sev-snp"]
|
2024-01-25 11:09:27 +01:00
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
secrets: inherit
|
|
|
|
uses: ./.github/workflows/e2e-test-provider-example.yml
|
|
|
|
with:
|
2024-01-29 16:45:26 +01:00
|
|
|
attestationVariant: ${{ matrix.attestationVariant }}
|