Skip to content

Commit 4e4bf74

Browse files
authored
refa: align clusterName template to use dig-based nil-safe pattern (#116)
1 parent f3675a9 commit 4e4bf74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

charts/steadybit-extension-gatling/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: steadybit-extension-gatling
33
description: Steadybit gatling extension Helm chart for Kubernetes.
4-
version: 1.1.42
4+
version: 1.1.43
55
appVersion: v1.0.39
66
home: https://www.steadybit.com/
77
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png

charts/steadybit-extension-gatling/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ spec:
5959
- name: STEADYBIT_EXTENSION_ENABLE_LOCATION_SELECTION
6060
value: "true"
6161
{{- end }}
62-
{{ if or (and .Values.global .Values.global.clusterName) .Values.kubernetes.clusterName }}
62+
{{- with (.Values.kubernetes.clusterName | default (dig "clusterName" nil (.Values.global | default dict))) }}
6363
- name: STEADYBIT_EXTENSION_KUBERNETES_CLUSTER_NAME
64-
value: {{ if and .Values.global .Values.global.clusterName }}{{ .Values.global.clusterName | quote }}{{ else }}{{ .Values.kubernetes.clusterName }}{{ end }}
64+
value: {{ . | quote }}
6565
{{- end }}
6666
- name: STEADYBIT_EXTENSION_KUBERNETES_NODE_NAME
6767
valueFrom:

0 commit comments

Comments
 (0)