[MARIADB][COMMON] Add support for mariadb-operator
[oom.git] / kubernetes / common / cassandra / templates / service.yaml
index 0b91076..8b2e534 100644 (file)
@@ -1,3 +1,4 @@
+{{/*
 # Copyright © 2018 Amdocs, AT&T, Bell Canada
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,5 +12,8 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+*/}}
 
+{{- if not .Values.global.cassandra.useOperator }}
 {{ include "common.headlessService" . }}
+{{- end }}
\ No newline at end of file