ci: adapt pipeline to use --kubernetes flag

This commit is contained in:
Otto Bittner 2023-02-27 10:27:06 +01:00
parent d98f86686d
commit 6c07a2892e
4 changed files with 20 additions and 23 deletions

View File

@ -75,7 +75,11 @@ runs:
shell: bash shell: bash
if: inputs.existingConfig != 'true' if: inputs.existingConfig != 'true'
run: | run: |
if [[ ${{ inputs.kubernetesVersion != '' }} == true ]]; then
constellation config generate ${{ inputs.cloudProvider }} --kubernetes="${{ inputs.kubernetesVersion }}"
else
constellation config generate ${{ inputs.cloudProvider }} constellation config generate ${{ inputs.cloudProvider }}
fi
yq eval -i "(.name) = \"e2e-test\"" constellation-conf.yaml yq eval -i "(.name) = \"e2e-test\"" constellation-conf.yaml
@ -103,13 +107,6 @@ runs:
(.provider | select(. | has(\"aws\")).aws.iamProfileWorkerNodes) = \"e2e_test_worker_node_instance_profile\"" \ (.provider | select(. | has(\"aws\")).aws.iamProfileWorkerNodes) = \"e2e_test_worker_node_instance_profile\"" \
constellation-conf.yaml constellation-conf.yaml
- name: Update config
shell: bash
run: |
if [[ ${{ inputs.kubernetesVersion != '' }} = true ]]; then
yq eval -i "(.kubernetesVersion) = \"${{ inputs.kubernetesVersion }}\"" constellation-conf.yaml
fi
- name: Remove embedded measurements - name: Remove embedded measurements
if: inputs.keepMeasurements == 'false' if: inputs.keepMeasurements == 'false'
shell: bash shell: bash

View File

@ -43,7 +43,7 @@ on:
required: true required: true
kubernetesVersion: kubernetesVersion:
description: "Kubernetes version to create the cluster from." description: "Kubernetes version to create the cluster from."
default: "1.25.6" default: "1.25"
required: true required: true
keepMeasurements: keepMeasurements:
description: "Keep measurements embedded in the CLI." description: "Keep measurements embedded in the CLI."

View File

@ -48,38 +48,38 @@ jobs:
test: test:
["sonobuoy full", "autoscaling", "k-bench", "lb", "verify", "recover", "iamcreate"] ["sonobuoy full", "autoscaling", "k-bench", "lb", "verify", "recover", "iamcreate"]
provider: ["gcp", "azure", "aws"] provider: ["gcp", "azure", "aws"]
version: ["v1.24.9", "v1.25.6", "v1.26.1"] version: ["v1.24", "v1.25", "v1.26"]
exclude: exclude:
# IAM create test runs only on latest version. # IAM create test runs only on latest version.
- test: "iamcreate" - test: "iamcreate"
version: "v1.24.9" version: "v1.24"
- test: "iamcreate" - test: "iamcreate"
version: "v1.25.6" version: "v1.25"
# Verify test runs only on latest version. # Verify test runs only on latest version.
- test: "verify" - test: "verify"
version: "v1.24.9" version: "v1.24"
- test: "verify" - test: "verify"
version: "v1.25.6" version: "v1.25"
# Recover test runs only on latest version. # Recover test runs only on latest version.
- test: "recover" - test: "recover"
version: "v1.24.9" version: "v1.24"
- test: "recover" - test: "recover"
version: "v1.25.6" version: "v1.25"
# Autoscaling test runs only on latest version. # Autoscaling test runs only on latest version.
- test: "autoscaling" - test: "autoscaling"
version: "v1.24.9" version: "v1.24"
- test: "autoscaling" - test: "autoscaling"
version: "v1.25.6" version: "v1.25"
# K-bench test runs only on latest version. # K-bench test runs only on latest version.
- test: "k-bench" - test: "k-bench"
version: "v1.24.9" version: "v1.24"
- test: "k-bench" - test: "k-bench"
version: "v1.25.6" version: "v1.25"
# lb test runs only on latest version. # lb test runs only on latest version.
- test: "lb" - test: "lb"
version: "v1.24.9" version: "v1.24"
- test: "lb" - test: "lb"
version: "v1.25.6" version: "v1.25"
# Currently not supported on AWS. # Currently not supported on AWS.
- test: "autoscaling" - test: "autoscaling"
provider: "aws" provider: "aws"

View File

@ -308,7 +308,7 @@ jobs:
cloudProvider: ${{ matrix.csp }} cloudProvider: ${{ matrix.csp }}
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
test: "sonobuoy full" test: "sonobuoy full"
kubernetesVersion: "v1.25.6" kubernetesVersion: "v1.25"
keepMeasurements: true keepMeasurements: true
osImage: ${{ inputs.version }} osImage: ${{ inputs.version }}
machineType: "default" machineType: "default"