diff --git a/charts/dbgate/templates/_helpers.tpl b/charts/dbgate/templates/_helpers.tpl index a3f953be..b0f735ae 100644 --- a/charts/dbgate/templates/_helpers.tpl +++ b/charts/dbgate/templates/_helpers.tpl @@ -65,7 +65,7 @@ Create the name of the service account to use Fake keda hostname */}} {{- define "keda.hostname" -}} -{{- printf "dbgate.%s.%s.%s.%s.kubedb.test" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace | quote }} +{{- list "dbgate" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace "kubedb.test" | compact | join "." | quote }} {{- end }} {{- define "image.dockerHub" -}} diff --git a/charts/kafka-ui/templates/_helpers.tpl b/charts/kafka-ui/templates/_helpers.tpl index 316edb84..e313135e 100644 --- a/charts/kafka-ui/templates/_helpers.tpl +++ b/charts/kafka-ui/templates/_helpers.tpl @@ -86,7 +86,7 @@ This allows us to check if the registry of the image is specified or not. Fake keda hostname */}} {{- define "keda.hostname" -}} -{{- printf "pgadmin.%s.%s.%s.%s.kubedb.test" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace | quote }} +{{- list "kafka-ui" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace "kubedb.test" | compact | join "." | quote }} {{- end }} {{- define "image.dockerHub" -}} diff --git a/charts/mongo-ui/templates/_helpers.tpl b/charts/mongo-ui/templates/_helpers.tpl index 8635d528..53c3024f 100644 --- a/charts/mongo-ui/templates/_helpers.tpl +++ b/charts/mongo-ui/templates/_helpers.tpl @@ -65,7 +65,7 @@ Create the name of the service account to use Fake keda hostname */}} {{- define "keda.hostname" -}} -{{- printf "%s.%s.%s.%s.kubedb.test" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace | quote }} +{{- list "mongo-ui" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace "kubedb.test" | compact | join "." | quote }} {{- end }} {{- define "image.dockerHub" -}} diff --git a/charts/pgadmin/templates/_helpers.tpl b/charts/pgadmin/templates/_helpers.tpl index d2673a31..a62d5662 100644 --- a/charts/pgadmin/templates/_helpers.tpl +++ b/charts/pgadmin/templates/_helpers.tpl @@ -65,7 +65,7 @@ Create the name of the service account to use Fake keda hostname */}} {{- define "keda.hostname" -}} -{{- printf "pgadmin.%s.%s.%s.%s.kubedb.test" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace | quote }} +{{- list "pgadmin" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace "kubedb.test" | compact | join "." | quote }} {{- end }} {{- define "image.dockerHub" -}} diff --git a/charts/phpmyadmin/templates/_helpers.tpl b/charts/phpmyadmin/templates/_helpers.tpl index 4ca0b1e1..82f2f216 100644 --- a/charts/phpmyadmin/templates/_helpers.tpl +++ b/charts/phpmyadmin/templates/_helpers.tpl @@ -65,7 +65,7 @@ Create the name of the service account to use Fake keda hostname */}} {{- define "keda.hostname" -}} -{{- printf "%s.%s.%s.%s.kubedb.test" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace | quote }} +{{- list "phpmyadmin" .Values.bind.name .Values.bind.namespace .Values.app.service.name .Values.app.service.namespace "kubedb.test" | compact | join "." | quote }} {{- end }} {{- define "image.dockerHub" -}}