|
9 | 9 | pull_request: |
10 | 10 | workflow_dispatch: |
11 | 11 | inputs: |
12 | | - destroy-cluster: |
13 | | - description: 'Destroy test cluster' |
14 | | - required: false |
15 | | - default: true |
16 | | - type: boolean |
17 | | - python-version: |
18 | | - description: 'Python version to install' |
19 | | - required: false |
20 | | - default: '3.12' |
21 | 12 | kind-version: |
22 | 13 | description: 'Kind version' |
23 | 14 | required: false |
24 | | - default: '0.24.0' |
| 15 | + |
| 16 | +env: |
| 17 | + KIND_VERSION: "0.24.0" |
25 | 18 |
|
26 | 19 | jobs: |
27 | 20 | run-tests-gateway: |
@@ -52,10 +45,22 @@ jobs: |
52 | 45 | python: true |
53 | 46 | go: false |
54 | 47 |
|
| 48 | + - name: Set KinD version |
| 49 | + id: set-kind-version |
| 50 | + shell: bash |
| 51 | + if: ${{ github.event_name == 'workflow_dispatch' }} |
| 52 | + run: | |
| 53 | + if [ "${{ inputs.kind-version }}" != "" ]; then |
| 54 | + KIND_VERSION="${{ inputs.kind-version }}" |
| 55 | + fi |
| 56 | +
|
| 57 | + echo "Set KinD version to: $KIND_VERSION" |
| 58 | + echo "KIND_VERSION=$KIND_VERSION" >> "$GITHUB_ENV" |
| 59 | +
|
55 | 60 | - name: Setup K8S Tools |
56 | 61 | uses: ./.github/actions/setup-k8s |
57 | 62 | with: |
58 | | - kind-version: ${{ inputs.kind-version }} |
| 63 | + kind-version: ${{ env.KIND_VERSION }} |
59 | 64 |
|
60 | 65 | - name: Create kind cluster |
61 | 66 | run: task integrations:kind:create |
@@ -103,10 +108,22 @@ jobs: |
103 | 108 | python: true |
104 | 109 | go: false |
105 | 110 |
|
| 111 | + - name: Set KinD version |
| 112 | + id: set-kind-version |
| 113 | + shell: bash |
| 114 | + if: ${{ github.event_name == 'workflow_dispatch' }} |
| 115 | + run: | |
| 116 | + if [ "${{ inputs.kind-version }}" != "" ]; then |
| 117 | + KIND_VERSION="${{ inputs.kind-version }}" |
| 118 | + fi |
| 119 | +
|
| 120 | + echo "Set KinD version to: $KIND_VERSION" |
| 121 | + echo "KIND_VERSION=$KIND_VERSION" >> "$GITHUB_ENV" |
| 122 | +
|
106 | 123 | - name: Setup K8S Tools |
107 | 124 | uses: ./.github/actions/setup-k8s |
108 | 125 | with: |
109 | | - kind-version: ${{ inputs.kind-version }} |
| 126 | + kind-version: ${{ env.KIND_VERSION }} |
110 | 127 |
|
111 | 128 | - name: Create kind cluster |
112 | 129 | run: task integrations:kind:create |
|
0 commit comments