Skip to content

Commit

Permalink
feat(ci): add multi-t pushk8s versions test (#1314)
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger authored May 17, 2024
1 parent 95370e4 commit 47b2aff
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
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

0 comments on commit 47b2aff

Please sign in to comment.