Skip to content

Commit

Permalink
feat(ci): add multi-t pushk8s versions test
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed May 16, 2024
1 parent 95370e4 commit 74eb1b2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/actions/run-deployment-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ 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: "1.30.0"

runs:
using: "composite"
steps:
Expand All @@ -56,13 +61,29 @@ runs:
with:
version: v3.8.1

- name: Prepare KinD Config
shell: bash
run: |-
cat << EOT > config.yaml
---
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
image: kindest/node:v${{ inputs.k8sversion }}
EOT
- name: Setup Kubectl
uses: azure/[email protected]
with:
version: 'v1.28.2'

- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
config: ./config.yaml


- name: Load images into KinD
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deployment-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ 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: ["1.30.0", "1.29.4", "1.28.9"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -85,6 +90,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 74eb1b2

Please sign in to comment.