Skip to content

Commit e16a167

Browse files
committed
chart: fix config ingress.tls
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 904b8ea commit e16a167

File tree

8 files changed

+23
-15
lines changed

8 files changed

+23
-15
lines changed

Diff for: .github/workflows/helm-chart-test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ on:
1313
request-timeout:
1414
description: 'Test parameter for different request timeout'
1515
required: false
16-
default: '370'
16+
default: '15'
1717
max-replicas-count:
1818
description: 'Test parameter for autoscaling to set maxReplicaCount'
1919
required: false
20-
default: '30'
20+
default: '10'
2121
log-level:
2222
description: 'Test parameter for different log level'
2323
required: false
@@ -148,8 +148,8 @@ jobs:
148148
echo "SET_MAX_REPLICAS=${SET_MAX_REPLICAS}" >> $GITHUB_ENV
149149
echo "LOG_LEVEL=${LOG_LEVEL}" >> $GITHUB_ENV
150150
env:
151-
AUTOSCALING_POLL_INTERVAL: ${{ github.event.inputs.request-timeout || '370' }}
152-
SET_MAX_REPLICAS: ${{ github.event.inputs.max-replicas-count || '30' }}
151+
AUTOSCALING_POLL_INTERVAL: ${{ github.event.inputs.request-timeout || '15' }}
152+
SET_MAX_REPLICAS: ${{ github.event.inputs.max-replicas-count || '10' }}
153153
LOG_LEVEL: ${{ github.event.inputs.log-level || 'FINE' }}
154154
- name: Test Selenium Grid on Kubernetes ${{ matrix.k8s-version }} with Autoscaling ${{ matrix.test-strategy }}
155155
uses: nick-invision/retry@master

Diff for: charts/selenium-grid/templates/ingress.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
{{- range .hosts }}
4545
- {{ tpl . $ | quote }}
4646
{{- end }}
47-
secretName: {{ tpl (.secretName) $ | quote }}
47+
secretName: {{ tpl (default "" .secretName) $ | quote }}
4848
{{- end }}
4949
{{- end }}
5050
rules:

Diff for: charts/selenium-grid/templates/patch-keda/patch-keda-objects-job.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ kind: Job
44
metadata:
55
name: {{ template "seleniumGrid.keda.patchObjectsJob.fullname" $ }}
66
namespace: {{ .Release.Namespace }}
7-
annotations: &patch_objects_job_annotations
87
{{- with $.Values.autoscaling.patchObjectFinalizers.annotations }}
8+
annotations: &patch_objects_job_annotations
99
{{- toYaml . | nindent 4 }}
1010
{{- end }}
1111
labels: &patch_objects_job_labels
@@ -18,8 +18,10 @@ metadata:
1818
spec:
1919
template:
2020
metadata:
21-
labels: *patch_objects_job_labels
21+
{{- with $.Values.autoscaling.patchObjectFinalizers.annotations }}
2222
annotations: *patch_objects_job_annotations
23+
{{- end }}
24+
labels: *patch_objects_job_labels
2325
name: {{ template "seleniumGrid.keda.patchObjectsJob.fullname" $ }}
2426
spec:
2527
activeDeadlineSeconds: {{ $.Values.autoscaling.patchObjectFinalizers.activeDeadlineSeconds }}

Diff for: charts/selenium-grid/templates/patch-keda/rbac-role.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ kind: Role
44
metadata:
55
name: {{ template "seleniumGrid.rbac.role.fullname" $ }}
66
namespace: {{ .Release.Namespace }}
7+
{{- with $.Values.rbacRole.annotations }}
78
annotations:
8-
{{- with $.Values.rbacRole.annotations }}
9-
{{- toYaml . | nindent 4 }}
10-
{{- end }}
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
1111
labels:
1212
deploymentName: {{ template "seleniumGrid.rbac.role.fullname" $ }}
1313
{{- include "seleniumGrid.commonLabels" $ | nindent 4 }}

Diff for: charts/selenium-grid/templates/patch-keda/rbac-rolebinding.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ kind: RoleBinding
44
metadata:
55
name: {{ template "seleniumGrid.rbac.roleBinding.fullname" $ }}
66
namespace: {{ .Release.Namespace }}
7+
{{- with $.Values.rbacRoleBinding.annotations }}
78
annotations:
8-
{{- with $.Values.rbacRoleBinding.annotations }}
9-
{{- toYaml . | nindent 4 }}
10-
{{- end }}
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
1111
labels:
1212
deploymentName: {{ template "seleniumGrid.rbac.roleBinding.fullname" $ }}
1313
{{- include "seleniumGrid.commonLabels" $ | nindent 4 }}

Diff for: charts/selenium-grid/templates/server-configmap.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ metadata:
1313
{{- end }}
1414
data:
1515
SE_SERVER_PROTOCOL: {{ include "seleniumGrid.server.protocol" . | quote }}
16-
{{- with $.Values.serverConfigMap.env }}
17-
{{- toYaml . | nindent 2 }}
16+
{{- range $key, $value := .Values.serverConfigMap.env }}
17+
{{ $key }}: {{ $value | quote }}
1818
{{- end }}
1919
{{- if .Values.tls.enabled }}
2020
SE_HTTPS_CERTIFICATE: {{ printf "%s/%s" .Values.serverConfigMap.certVolumeMountPath .Values.serverConfigMap.certificateFile | quote }}

Diff for: tests/charts/templates/render/dummy.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ ingress:
5757
name: '{{ ternary (include "seleniumGrid.router.fullname" $ ) (include "seleniumGrid.hub.fullname" $ ) $.Values.isolateComponents }}'
5858
port:
5959
number: 4444
60+
tls:
61+
- hosts:
62+
- '*.my.domain.com'
6063

6164
isolateComponents: true
6265

Diff for: tests/charts/templates/render/dummy_solution.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ selenium-grid:
5858
name: '{{ ternary (include "seleniumGrid.router.fullname" $ ) (include "seleniumGrid.hub.fullname" $ ) $.Values.isolateComponents }}'
5959
port:
6060
number: 4444
61+
tls:
62+
- hosts:
63+
- '*.my.domain.com'
6164

6265
isolateComponents: true
6366

0 commit comments

Comments
 (0)