From b25c4fcd0e2661d1b18e3bc018ac957d4193448c Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Fri, 14 Jun 2024 02:35:04 -0500 Subject: [PATCH] Update Cassandra host URLs to remove the ".cluster.local" suffix (#485) * Update Cassandra host URLs to remove the ".cluster.local" suffix --- charts/temporal/templates/_helpers.tpl | 4 ++-- charts/temporal/values/values.cassandra.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/temporal/templates/_helpers.tpl b/charts/temporal/templates/_helpers.tpl index 35897f9e..0862ac4a 100644 --- a/charts/temporal/templates/_helpers.tpl +++ b/charts/temporal/templates/_helpers.tpl @@ -350,7 +350,7 @@ All Cassandra hosts. {{- define "cassandra.hosts" -}} {{- range $i := (until (int .Values.cassandra.config.cluster_size)) }} {{- $cassandraName := include "call-nested" (list $ "cassandra" "cassandra.fullname") -}} -{{- printf "%s.%s.svc.cluster.local," $cassandraName $.Release.Namespace -}} +{{- printf "%s.%s.svc," $cassandraName $.Release.Namespace -}} {{- end }} {{- end -}} @@ -359,7 +359,7 @@ The first Cassandra host in the stateful set. */}} {{- define "cassandra.host" -}} {{- $cassandraName := include "call-nested" (list . "cassandra" "cassandra.fullname") -}} -{{- printf "%s.%s.svc.cluster.local" $cassandraName .Release.Namespace -}} +{{- printf "%s.%s.svc" $cassandraName .Release.Namespace -}} {{- end -}} {{/* diff --git a/charts/temporal/values/values.cassandra.yaml b/charts/temporal/values/values.cassandra.yaml index 8c9f532a..03db1111 100644 --- a/charts/temporal/values/values.cassandra.yaml +++ b/charts/temporal/values/values.cassandra.yaml @@ -27,7 +27,7 @@ server: # ResourceExhausted: 0.15 cassandra: - hosts: ["cassandra.default.svc.cluster.local"] + hosts: ["cassandra.default.svc"] port: 9042 keyspace: temporal user: "user"