Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): add multi-k8s versions test #1314

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/actions/run-deployment-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ inputs:
required: true
description: "The directory that contains the docker file, e.g. edc-controlplane/edc-runtime-memory"

k8sversion:
required: false
description: "Version of Kubernetes to use"
default: "v1.30.0"

runs:
using: "composite"
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-java

- name: Build docker images
shell: bash
run: |-
./gradlew -p ${{ inputs.rootDir }} dockerize

- name: Setup Helm
uses: azure/[email protected]
with:
Expand All @@ -62,7 +62,14 @@ runs:
version: 'v1.28.2'

- name: Create k8s Kind Cluster
uses: helm/[email protected]
uses: helm/[email protected]
with:
node_image: kindest/node:${{ inputs.k8sversion }}

- name: Build docker images
shell: bash
run: |-
./gradlew -p ${{ inputs.rootDir }} dockerize

- name: Load images into KinD
shell: bash
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/deployment-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ jobs:
test-hashicorp-postgres:
runs-on: ubuntu-latest
needs: test-prepare
strategy:
fail-fast: false
# this will verify that the official distribution of the Tractus-X EDC Helm chart runs on the last 3 Kubernetes versions
matrix:
k8s-version: ["v1.30.0",
"v1.29.4",
"v1.28.9"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -85,6 +92,7 @@ jobs:
with:
imagename: "edc-controlplane-postgresql-hashicorp-vault edc-dataplane-hashicorp-vault"
rootDir: "."
k8sversion: ${{ matrix.k8s-version }}
helm_command: |-
helm install tx-prod charts/tractusx-connector \
-f edc-tests/deployment/src/main/resources/helm/tractusx-connector-test.yaml \
Expand Down
Loading