Skip to content

Commit 3a61a7c

Browse files
committed
K8s: CI tests param to run with KEDA statble version
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent f0e8a6c commit 3a61a7c

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

.github/workflows/build-test.yml

+11
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,23 @@ on:
1313
required: false
1414
type: string
1515
default: 'false'
16+
test-patched-keda:
17+
description: 'Test patched KEDA (true/false)'
18+
required: false
19+
default: ''
20+
type: string
1621
workflow_dispatch:
1722
inputs:
1823
rerunFailedOnly:
1924
description: 'Rerun only failed jobs'
2025
required: false
2126
type: boolean
2227
default: true
28+
test-patched-keda:
29+
description: 'Test patched KEDA (true/false)'
30+
required: false
31+
default: ''
32+
type: string
2333
push:
2434
branches:
2535
- trunk
@@ -58,6 +68,7 @@ jobs:
5868
secrets: inherit
5969
with:
6070
release: ${{ inputs.release == 'true' }}
71+
test-patched-keda: ${{ github.event.inputs.test-patched-keda }}
6172

6273
rerun-workflow-when-failure:
6374
name: Rerun workflow when failure

.github/workflows/helm-chart-test.yml

+11
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
required: false
1414
type: string
1515
default: 'false'
16+
test-patched-keda:
17+
description: 'Test patched KEDA (true/false)'
18+
required: false
19+
default: ''
20+
type: string
1621
workflow_dispatch:
1722
inputs:
1823
request-timeout:
@@ -27,6 +32,11 @@ on:
2732
description: 'Test parameter for different log level'
2833
required: false
2934
default: 'FINE'
35+
test-patched-keda:
36+
description: 'Test patched KEDA (true/false)'
37+
required: false
38+
default: ''
39+
type: string
3040

3141
permissions:
3242
contents: read
@@ -131,6 +141,7 @@ jobs:
131141
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
132142
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
133143
SAUCE_REGION: ${{ secrets.SAUCE_REGION }}
144+
TEST_PATCHED_KEDA: ${{ github.event.inputs.test-patched-keda }}
134145
steps:
135146
- name: Free Disk Space (Ubuntu)
136147
uses: jlumbroso/free-disk-space@main

.github/workflows/k8s-scaling-test.yml

+11
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
required: false
2424
type: string
2525
default: '20'
26+
test-patched-keda:
27+
description: 'Test patched KEDA (true/false)'
28+
required: false
29+
default: ''
30+
type: string
2631
workflow_dispatch:
2732
inputs:
2833
publish-results:
@@ -40,6 +45,11 @@ on:
4045
required: false
4146
type: string
4247
default: '20'
48+
test-patched-keda:
49+
description: 'Test patched KEDA (true/false)'
50+
required: false
51+
default: ''
52+
type: string
4353

4454
concurrency:
4555
group: ${{ github.workflow }}-${{ github.ref == github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }}
@@ -108,6 +118,7 @@ jobs:
108118
KUBERNETES_VERSION: ${{ matrix.k8s-version }}
109119
HELM_VERSION: ${{ matrix.helm-version }}
110120
DOCKER_VERSION: ${{ matrix.docker-version }}
121+
TEST_PATCHED_KEDA: ${{ github.event.inputs.test-patched-keda }}
111122
steps:
112123
- name: Free Disk Space (Ubuntu)
113124
uses: jlumbroso/free-disk-space@main

tests/charts/make/chart_test.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@ elif [ "${TEST_EXISTING_KEDA}" != "true" ]; then
465465
"
466466
else
467467
HELM_COMMAND_SET_IMAGES="${HELM_COMMAND_SET_IMAGES} \
468-
--set keda.image=null \
468+
--set keda.image.keda.registry=ghcr.io/kedacore --set keda.image.keda.repository=keda --set keda.image.keda.tag=null \
469+
--set keda.image.metricsApiServer.registry=ghcr.io/kedacore --set keda.image.metricsApiServer.repository=keda-metrics-apiserver --set keda.image.metricsApiServer.tag=null \
470+
--set keda.image.webhooks.registry=ghcr.io/kedacore --set keda.image.webhooks.repository=keda-admission-webhooks --set keda.image.webhooks.tag=null \
469471
"
470472
fi
471473
fi

0 commit comments

Comments
 (0)