Skip to content

Commit 8427e43

Browse files
committed
Update value to get from template .fullname
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent d14879b commit 8427e43

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

charts/selenium-grid/templates/chrome-node-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ spec:
2323
app: selenium-chrome-node
2424
app.kubernetes.io/instance: {{ .Release.Name }}
2525
{{- $podScope := deepCopy . -}}
26-
{{- $_ := set $podScope "name" "selenium-chrome-node" -}}
27-
{{- $_ = set $podScope "node" .Values.chromeNode -}}
26+
{{- $_ := set $podScope "name" (include "seleniumGrid.chromeNode.fullname" .) -}}
27+
{{- $_ = set $podScope "node" .Values.chromeNode -}}
2828
{{- $_ = set $podScope "uploader" (get .Values.videoRecorder (.Values.videoRecorder.uploader | toString)) -}}
2929
{{- include "seleniumGrid.podTemplate" $podScope | nindent 2 }}
3030
{{- end }}

charts/selenium-grid/templates/chrome-node-scaledjobs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ metadata:
2020
{{- end }}
2121
spec:
2222
{{- $podScope := deepCopy . -}}
23-
{{- $_ := set $podScope "name" "selenium-chrome-node" -}}
24-
{{- $_ = set $podScope "node" .Values.chromeNode -}}
23+
{{- $_ := set $podScope "name" (include "seleniumGrid.chromeNode.fullname" .) -}}
24+
{{- $_ = set $podScope "node" .Values.chromeNode -}}
2525
{{- $_ = set $podScope "uploader" (get .Values.videoRecorder (.Values.videoRecorder.uploader | toString)) -}}
2626
{{- $_ = set $podScope "podTemplate" (include "seleniumGrid.podTemplate" $podScope | fromYaml) }}
2727
{{- include "seleniumGrid.autoscalingTemplate" $podScope | nindent 2 }}

charts/selenium-grid/templates/edge-node-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ spec:
2323
app: selenium-edge-node
2424
app.kubernetes.io/instance: {{ .Release.Name }}
2525
{{- $podScope := deepCopy . -}}
26-
{{- $_ := set $podScope "name" "selenium-edge-node" -}}
27-
{{- $_ = set $podScope "node" .Values.edgeNode -}}
26+
{{- $_ := set $podScope "name" (include "seleniumGrid.edgeNode.fullname" .) -}}
27+
{{- $_ = set $podScope "node" .Values.edgeNode -}}
2828
{{- $_ = set $podScope "uploader" (get .Values.videoRecorder (.Values.videoRecorder.uploader | toString)) -}}
2929
{{- include "seleniumGrid.podTemplate" $podScope | nindent 2 }}
3030
{{- end }}

charts/selenium-grid/templates/edge-node-scaledjob.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ metadata:
2020
{{- end }}
2121
spec:
2222
{{- $podScope := deepCopy . -}}
23-
{{- $_ := set $podScope "name" "selenium-edge-node" -}}
24-
{{- $_ = set $podScope "node" .Values.edgeNode -}}
23+
{{- $_ := set $podScope "name" (include "seleniumGrid.edgeNode.fullname" .) -}}
24+
{{- $_ = set $podScope "node" .Values.edgeNode -}}
2525
{{- $_ = set $podScope "uploader" (get .Values.videoRecorder (.Values.videoRecorder.uploader | toString)) -}}
2626
{{- $_ = set $podScope "podTemplate" (include "seleniumGrid.podTemplate" $podScope | fromYaml) }}
2727
{{- include "seleniumGrid.autoscalingTemplate" $podScope | nindent 2 }}

charts/selenium-grid/templates/firefox-node-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ spec:
2323
app: selenium-firefox-node
2424
app.kubernetes.io/instance: {{ .Release.Name }}
2525
{{- $podScope := deepCopy . -}}
26-
{{- $_ := set $podScope "name" "selenium-firefox-node" -}}
27-
{{- $_ = set $podScope "node" .Values.firefoxNode -}}
26+
{{- $_ := set $podScope "name" (include "seleniumGrid.firefoxNode.fullname" .) -}}
27+
{{- $_ = set $podScope "node" .Values.firefoxNode -}}
2828
{{- $_ = set $podScope "uploader" (get .Values.videoRecorder (.Values.videoRecorder.uploader | toString)) -}}
2929
{{- include "seleniumGrid.podTemplate" $podScope | nindent 2 }}
3030
{{- end }}

charts/selenium-grid/templates/firefox-node-scaledjob.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ metadata:
2020
{{- end }}
2121
spec:
2222
{{- $podScope := deepCopy . -}}
23-
{{- $_ := set $podScope "name" "selenium-firefox-node" -}}
24-
{{- $_ = set $podScope "node" .Values.firefoxNode -}}
23+
{{- $_ := set $podScope "name" (include "seleniumGrid.firefoxNode.fullname" .) -}}
24+
{{- $_ = set $podScope "node" .Values.firefoxNode -}}
2525
{{- $_ = set $podScope "uploader" (get .Values.videoRecorder (.Values.videoRecorder.uploader | toString)) -}}
2626
{{- $_ = set $podScope "podTemplate" (include "seleniumGrid.podTemplate" $podScope | fromYaml) }}
2727
{{- include "seleniumGrid.autoscalingTemplate" $podScope | nindent 2 }}

0 commit comments

Comments
 (0)