File tree 6 files changed +21
-8
lines changed
6 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -42,32 +42,38 @@ jobs:
42
42
cluster : ' kind'
43
43
helm-version : ' v3.10.3'
44
44
test-existing-keda : true
45
+ test-upgrade : true
45
46
- k8s-version : ' v1.26.15'
46
47
test-strategy : deployment
47
48
cluster : ' minikube'
48
49
helm-version : ' v3.11.3'
49
50
test-existing-keda : true
51
+ test-upgrade : true
50
52
- k8s-version : ' v1.27.12'
51
53
test-strategy : job_https
52
54
cluster : ' minikube'
53
55
helm-version : ' v3.12.3'
54
56
test-existing-keda : true
57
+ test-upgrade : true
55
58
- k8s-version : ' v1.28.8'
56
59
test-strategy : job_hostname
57
60
cluster : ' minikube'
58
61
helm-version : ' v3.13.3'
59
62
test-existing-keda : false
63
+ test-upgrade : true
60
64
- k8s-version : ' v1.29.3'
61
65
test-strategy : deployment_https
62
66
cluster : ' minikube'
63
67
helm-version : ' v3.14.3'
64
68
test-existing-keda : false
69
+ test-upgrade : true
65
70
env :
66
71
CLUSTER : ${{ matrix.cluster }}
67
72
KUBERNETES_VERSION : ${{ matrix.k8s-version }}
68
73
ARTIFACT_NAME : ${{ matrix.k8s-version }}-${{ matrix.test-strategy }}
69
74
HELM_VERSION : ${{ matrix.helm-version }}
70
75
TEST_EXISTING_KEDA : ${{ matrix.test-existing-keda }}
76
+ TEST_UPGRADE_CHART : ${{ matrix.test-upgrade }}
71
77
steps :
72
78
- uses : actions/checkout@main
73
79
- name : Output Docker info
@@ -138,6 +144,10 @@ jobs:
138
144
max_attempts : 3
139
145
command : |
140
146
NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} TEST_EXISTING_KEDA=${TEST_EXISTING_KEDA} make chart_test_autoscaling_${{ matrix.test-strategy }}
147
+ - name : Test chart upgrade
148
+ if : (matrix.test-upgrade == true)
149
+ run : |
150
+ NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} TEST_EXISTING_KEDA=${TEST_EXISTING_KEDA} SET_MAX_REPLICAS=10 TEST_UPGRADE_CHART=${TEST_UPGRADE_CHART} make chart_test_autoscaling_${{ matrix.test-strategy }}
141
151
- name : Cleanup Kubernetes cluster
142
152
if : always()
143
153
run : CLUSTER=${CLUSTER} make chart_cluster_cleanup
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ metadata:
5
5
name : {{ template "seleniumGrid.chromeNode.fullname" . }}
6
6
namespace : {{ .Release.Namespace }}
7
7
annotations :
8
- helm.sh/resource-policy : delete
9
8
{{- with .Values.autoscaling.annotations }}
10
9
{{- toYaml . | nindent 4 }}
11
10
{{- end }}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ metadata:
5
5
name : {{ template "seleniumGrid.edgeNode.fullname" . }}
6
6
namespace : {{ .Release.Namespace }}
7
7
annotations :
8
- helm.sh/resource-policy : delete
9
8
{{- with .Values.autoscaling.annotations }}
10
9
{{- toYaml . | nindent 4 }}
11
10
{{- end }}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ metadata:
5
5
name : {{ template "seleniumGrid.firefoxNode.fullname" . }}
6
6
namespace : {{ .Release.Namespace }}
7
7
annotations :
8
- helm.sh/resource-policy : delete
9
8
{{- with .Values.autoscaling.annotations }}
10
9
{{- toYaml . | nindent 4 }}
11
10
{{- end }}
Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ autoscaling:
546
546
scalingType : job
547
547
# Annotations for KEDA resources: ScaledObject and ScaledJob
548
548
annotations :
549
- " helm.sh/hook " : post-install,post-upgrade,post-rollback
549
+ " helm.sh/hook " : post-install
550
550
# Options for KEDA scaled resources (keep only common options used for both ScaledJob and ScaledObject)
551
551
scaledOptions :
552
552
minReplicaCount : 0
@@ -1221,19 +1221,19 @@ prometheus-stack:
1221
1221
defaultRules :
1222
1222
create : true
1223
1223
annotations :
1224
- " helm.sh/hook " : post-install,post-upgrade,post-rollback
1224
+ " helm.sh/hook " : post-install
1225
1225
alertmanager :
1226
1226
enabled : true
1227
1227
annotations :
1228
- " helm.sh/hook " : post-install,post-upgrade,post-rollback
1228
+ " helm.sh/hook " : post-install
1229
1229
grafana :
1230
1230
enabled : true
1231
1231
adminPassword : admin
1232
1232
forceDeployDatasources : true
1233
1233
forceDeployDashboards : true
1234
1234
annotations :
1235
- " helm.sh/hook " : post-install,post-upgrade,post-rollback
1235
+ " helm.sh/hook " : post-install
1236
1236
prometheus :
1237
1237
enabled : true
1238
1238
annotations :
1239
- " helm.sh/hook " : post-install,post-upgrade,post-rollback
1239
+ " helm.sh/hook " : post-install
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ BASIC_AUTH_USERNAME=${BASIC_AUTH_USERNAME:-"sysAdminUser"}
35
35
BASIC_AUTH_PASSWORD=${BASIC_AUTH_PASSWORD:- " myStrongPassword" }
36
36
LOG_LEVEL=${LOG_LEVEL:- " INFO" }
37
37
TEST_EXISTING_KEDA=${TEST_EXISTING_KEDA:- " true" }
38
+ TEST_UPGRADE_CHART=${TEST_UPGRADE_CHART:- " false" }
38
39
39
40
cleanup () {
40
41
# Get the list of pods
@@ -195,6 +196,11 @@ helm upgrade --install ${HELM_COMMAND_ARGS}
195
196
196
197
kubectl get pods -A
197
198
199
+ if [ " ${TEST_UPGRADE_CHART} " = " true" ]; then
200
+ echo " Focus on verify chart upgrade, skip Selenium tests"
201
+ exit 0
202
+ fi
203
+
198
204
echo " Run Tests"
199
205
export CHART_CERT_PATH=$( readlink -f ${CHART_CERT_PATH} )
200
206
export SELENIUM_GRID_PROTOCOL=${SELENIUM_GRID_PROTOCOL}
You can’t perform that action at this time.
0 commit comments