Fix aai-champ service 99/55499/1
authorTomek Osinski <tomasz.osinski2@orange.com>
Wed, 27 Jun 2018 15:50:44 +0000 (17:50 +0200)
committerTomek Osinski <tomasz.osinski2@orange.com>
Wed, 27 Jun 2018 15:50:44 +0000 (17:50 +0200)
Make aai-champ run on non-rancher k8s

Change-Id: I96346202a6b204036665819f8b6a17017a3cf20a
Issue-ID: OOM-1269
Signed-off-by: osinstom <tomasz.osinski2@orange.com>
kubernetes/aai/charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml

index b3d7bc2..b2c41ec 100644 (file)
@@ -30,7 +30,7 @@ xsi:schemaLocation="
 
         {{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}}
         {{- $global := . }}
-        <entry key="storage.hostname" value="{{- range $i, $e := until $seed_size }}{{ $global.Release.Name }}-aai-cassandra-{{ $i }},{{- end }}"/>
+        <entry key="storage.hostname" value="{{- range $i, $e := until $seed_size }}{{ $global.Release.Name }}-{{$global.Values.global.cassandra.serviceName}}-{{ $i }}.{{$global.Values.global.cassandra.serviceName}},{{- end }}"/>
         <entry key="storage.port" value="9160"/>
     </util:map>