[CONSUL] Add limits to consul chart.
[oom.git] / kubernetes / consul / resources / config / consul-agent-config / scripts / sdnc-cluster-health.sh
old mode 100644 (file)
new mode 100755 (executable)
index 3b18654..eb8127f
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 # Copyright © 2018 Amdocs
+# Modifications Copyright © 2018 AT&T
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -27,7 +28,7 @@ fi
 for instance in $(seq $count);do
   shard=member-$(( $siteId*$count + $instance ))-shard-default-config
   mbean=Category=Shards,name=$shard,type=DistributedConfigDatastore
-  url=http://{{.Release.Name}}-sdnc-$(( $instance-1 )).sdnc-cluster.{{.Release.Namespace}}:8181/jolokia/read/org.opendaylight.controller:$mbean
+  url=http://{{ include "common.release" . }}-sdnc-$(( $instance-1 )).sdnc-cluster.{{.Release.Namespace}}:8181/jolokia/read/org.opendaylight.controller:$mbean
 
   response=$( curl -s -u $USERNAME:$PASSWORD $url )
   rc=$?