|
25 | 25 | required: true |
26 | 26 | type: string |
27 | 27 | description: "Random UUID first 4 chars" |
| 28 | + cluster_config_k8s_version: |
| 29 | + required: false |
| 30 | + type: string |
| 31 | + default: "Automatic" |
| 32 | + description: "Set k8s version for cluster config, like 1.34, 1.36 (without patch version)" |
28 | 33 | cluster_config_workers_memory: |
29 | 34 | required: false |
30 | 35 | type: string |
@@ -109,14 +114,15 @@ env: |
109 | 114 | DEFAULT_USER: ${{ inputs.default_user }} |
110 | 115 | GO_VERSION: ${{ inputs.go_version }} |
111 | 116 | SETUP_CLUSTER_TYPE_PATH: test/dvp-static-cluster |
| 117 | + K8S_VERSION: ${{ inputs.cluster_config_k8s_version }} |
112 | 118 |
|
113 | 119 | defaults: |
114 | 120 | run: |
115 | 121 | shell: bash |
116 | 122 |
|
117 | 123 | jobs: |
118 | 124 | bootstrap: |
119 | | - name: Bootstrap cluster (${{ inputs.storage_type }}) |
| 125 | + name: Bootstrap cluster |
120 | 126 | runs-on: ubuntu-latest |
121 | 127 | concurrency: |
122 | 128 | group: "${{ github.workflow }}-${{ github.event.number || github.ref }}-${{ inputs.storage_type }}" |
@@ -193,7 +199,7 @@ jobs: |
193 | 199 | channel: ${{ env.DECKHOUSE_CHANNEL }} |
194 | 200 | podSubnetCIDR: ${{ inputs.pod_subnet_cidr }} |
195 | 201 | serviceSubnetCIDR: ${{ inputs.service_subnet_cidr }} |
196 | | - kubernetesVersion: Automatic |
| 202 | + kubernetesVersion: ${{ env.K8S_VERSION }} |
197 | 203 | registryDockerCfg: ${{ secrets.PROD_IO_REGISTRY_DOCKER_CFG }} |
198 | 204 | bundle: Default |
199 | 205 | proxyEnabled: false |
@@ -427,7 +433,7 @@ jobs: |
427 | 433 | retention-days: 3 |
428 | 434 |
|
429 | 435 | configure-storage: |
430 | | - name: Configure storage (${{ inputs.storage_type }}) |
| 436 | + name: Configure storage |
431 | 437 | runs-on: ubuntu-latest |
432 | 438 | needs: bootstrap |
433 | 439 | steps: |
@@ -1117,7 +1123,7 @@ jobs: |
1117 | 1123 | virt_handler_ready |
1118 | 1124 |
|
1119 | 1125 | e2e-test: |
1120 | | - name: E2E test (${{ inputs.storage_type }}) |
| 1126 | + name: E2E test |
1121 | 1127 | runs-on: ubuntu-latest |
1122 | 1128 | needs: |
1123 | 1129 | - bootstrap |
@@ -1279,35 +1285,8 @@ jobs: |
1279 | 1285 | if-no-files-found: ignore |
1280 | 1286 | retention-days: 3 |
1281 | 1287 |
|
1282 | | - # temporary disabled |
1283 | | - # unpin-cluster-nodes: |
1284 | | - # name: Unpin cluster nodes |
1285 | | - # runs-on: ubuntu-latest |
1286 | | - # needs: |
1287 | | - # - bootstrap |
1288 | | - # - e2e-test |
1289 | | - # steps: |
1290 | | - # - uses: actions/checkout@v4 |
1291 | | - # - name: Configure kubectl via azure/k8s-set-context@v4 |
1292 | | - # uses: azure/k8s-set-context@v4 |
1293 | | - # with: |
1294 | | - # method: kubeconfig |
1295 | | - # context: e2e-cluster-nightly-e2e-virt-sa |
1296 | | - # kubeconfig: ${{ secrets.VIRT_E2E_NIGHTLY_SA_TOKEN }} |
1297 | | - |
1298 | | - # - name: Unpin cluster nodes |
1299 | | - # env: |
1300 | | - # NAMESPACE: ${{ needs.e2e-test.outputs.namespace }} |
1301 | | - # run: | |
1302 | | - # for vm in $(kubectl -n $NAMESPACE get vm -o name); do |
1303 | | - # echo "[INFO] Unpin VM $vm" |
1304 | | - # pinNode=$(kubectl -n $NAMESPACE get vm $vm jsonpath='{.status.nodeName}') |
1305 | | - # echo "[INFO] Unping VM $vm from node $pinNode" |
1306 | | - # kubectl -n $NAMESPACE patch vm $vm --type json --patch '{"op": "remove", "path": "/spec/nodeSelector"}' |
1307 | | - # done |
1308 | | - |
1309 | 1288 | prepare-report: |
1310 | | - name: Prepare E2E report (${{ inputs.storage_type }}) |
| 1289 | + name: Prepare E2E report |
1311 | 1290 | runs-on: ubuntu-latest |
1312 | 1291 | needs: |
1313 | 1292 | - bootstrap |
@@ -1474,7 +1453,7 @@ jobs: |
1474 | 1453 | echo "[INFO] Artifact name: $ARTIFACT_NAME" |
1475 | 1454 |
|
1476 | 1455 | undeploy-cluster: |
1477 | | - name: Undeploy cluster (${{ inputs.storage_type }}) |
| 1456 | + name: Undeploy cluster |
1478 | 1457 | runs-on: ubuntu-latest |
1479 | 1458 | needs: |
1480 | 1459 | - bootstrap |
|
0 commit comments