blob: 4cabde1e4d620afc039e46c768ee78a37e66823d [file] [log] [blame]
Krzysztof Opasiakc0a57f82020-03-23 15:50:13 +01001{{/*
pramod47b1b822018-08-28 15:41:45 +00002# Copyright © 2018 Amdocs, Bell Canada
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +01003# Copyright © 2020 Orange
pramod47b1b822018-08-28 15:41:45 +00004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
Krzysztof Opasiakc0a57f82020-03-23 15:50:13 +010016*/}}
pramod47b1b822018-08-28 15:41:45 +000017
Andreas Geisslercfd84342023-08-16 17:18:49 +020018{{- if not .Values.global.mariadbGalera.useOperator }}
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010019{{ include "common.service" . }}
20---
21{{ include "common.headlessService" . }}
Andreas Geisslercfd84342023-08-16 17:18:49 +020022{{- end }}
Andreas Geisslerba1200c2022-04-07 17:02:59 +020023{{- if (include "common.onServiceMesh" .) }}
Andreas Geisslercfd84342023-08-16 17:18:49 +020024{{- if eq (default "istio" .Values.global.serviceMesh.engine) "istio" }}
Andreas Geisslerba1200c2022-04-07 17:02:59 +020025---
26apiVersion: security.istio.io/v1beta1
27kind: PeerAuthentication
28metadata:
29 name: {{ include "common.servicename" . }}
30 namespace: {{ include "common.namespace" . }}
31spec:
32 selector:
33 matchLabels:
Andreas Geisslercfd84342023-08-16 17:18:49 +020034 app: {{ include "common.servicename" . }}
Andreas Geisslerba1200c2022-04-07 17:02:59 +020035 portLevelMtls:
Andreas Geisslerbc550dc2023-06-26 17:09:35 +020036 '{{ .Values.service.internalPort }}':
Andreas Geisslerba1200c2022-04-07 17:02:59 +020037 mode: DISABLE
Andreas Geisslercfd84342023-08-16 17:18:49 +020038{{- end }}
39{{- end }}