Merge "[AAI] Make aai log level configurable"
[oom.git] / kubernetes / common / mariadb-galera / templates / service.yaml
index 880bc55..e1a9105 100644 (file)
 # limitations under the License.
 */}}
 
+{{- if not .Values.global.mariadbGalera.useOperator }}
 {{ include "common.service" . }}
 ---
 {{ include "common.headlessService" . }}
+{{- end }}
 {{- if (include "common.onServiceMesh" .) }}
-{{- if eq (default "istio" .Values.global.serviceMesh.engine) "istio" }}
+{{-   if eq (default "istio" .Values.global.serviceMesh.engine) "istio" }}
 ---
 apiVersion: security.istio.io/v1beta1
 kind: PeerAuthentication
@@ -31,7 +33,11 @@ spec:
     matchLabels:
       app: {{ include "common.servicename" . }}
   portLevelMtls:
-    {{ .Values.service.internalPort }}:
+    '{{ .Values.service.internalPort }}':
+{{-     if .Values.mariadbOperator.galera.enabled }}
+      mode: STRICT
+{{-     else }}
       mode: DISABLE
-{{- end}}
-{{- end}}
+{{-     end }}
+{{-   end }}
+{{- end }}