-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): add multi-t pushk8s versions test
- Loading branch information
1 parent
95370e4
commit 74eb1b2
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters