Skip to content
Snippets Groups Projects
Commit cf636ecc authored by Matteo Di Carlo's avatar Matteo Di Carlo
Browse files

ST-1502 fix cluster domain

parent 3f48b716
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ metadata: ...@@ -35,6 +35,7 @@ metadata:
{{- end }} {{- end }}
{{- end }} {{- end }}
spec: spec:
clusterDomain: {{ $cluster_domain }}
usePV: {{ .Values.tangodb.use_pv }} usePV: {{ .Values.tangodb.use_pv }}
{{- if or (.Values.global.minikube) (.Values.global.exposeAllDS) }} {{- if or (.Values.global.minikube) (.Values.global.exposeAllDS) }}
enableLoadBalancer: true enableLoadBalancer: true
......
...@@ -12,6 +12,7 @@ Parameters: ...@@ -12,6 +12,7 @@ Parameters:
{{- $default_tango_host := printf "%s-%s:10000" "databaseds-tango-base-" .local.Release.Name }} {{- $default_tango_host := printf "%s-%s:10000" "databaseds-tango-base-" .local.Release.Name }}
{{- $tango_host := tpl (coalesce .local.Values.global.tango_host .local.Values.tango_host $default_tango_host | toString) .local }} {{- $tango_host := tpl (coalesce .local.Values.global.tango_host .local.Values.tango_host $default_tango_host | toString) .local }}
{{- $databaseds_name := (split ":" $tango_host)._0 }} {{- $databaseds_name := (split ":" $tango_host)._0 }}
{{- $cluster_domain := coalesce .local.Values.global.cluster_domain "cluster.local" }}
{{- $chart := .local }} {{- $chart := .local }}
{{- $deviceserver := .deviceserver }} {{- $deviceserver := .deviceserver }}
{{- $deviceserver_name := tpl (coalesce .name .deviceserver.name | toString) .local }} {{- $deviceserver_name := tpl (coalesce .name .deviceserver.name | toString) .local }}
...@@ -35,6 +36,7 @@ metadata: ...@@ -35,6 +36,7 @@ metadata:
{{ toYaml $annotations | indent 4 }} {{ toYaml $annotations | indent 4 }}
{{- end }} {{- end }}
spec: spec:
clusterDomain: {{ $cluster_domain }}
{{- if or ($chart.Values.global.minikube) ($chart.Values.global.exposeAllDS) ($deviceserver.exposeDS) }} {{- if or ($chart.Values.global.minikube) ($chart.Values.global.exposeAllDS) ($deviceserver.exposeDS) }}
enableLoadBalancer: true enableLoadBalancer: true
{{- end }} {{- end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment