Krzysztof Opasiak | c0a57f8 | 2020-03-23 15:50:13 +0100 | [diff] [blame] | 1 | {{/* |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 2 | # Copyright © 2018 Amdocs, Bell Canada |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 3 | # Copyright © 2020 Orange |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 4 | # |
| 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 Opasiak | c0a57f8 | 2020-03-23 15:50:13 +0100 | [diff] [blame] | 16 | */}} |
pramod | 47b1b82 | 2018-08-28 15:41:45 +0000 | [diff] [blame] | 17 | |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 18 | {{- if not .Values.global.mariadbGalera.useOperator }} |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 19 | {{ include "common.service" . }} |
| 20 | --- |
| 21 | {{ include "common.headlessService" . }} |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 22 | {{- end }} |
Andreas Geissler | ba1200c | 2022-04-07 17:02:59 +0200 | [diff] [blame] | 23 | {{- if (include "common.onServiceMesh" .) }} |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 24 | {{- if eq (default "istio" .Values.global.serviceMesh.engine) "istio" }} |
Andreas Geissler | ba1200c | 2022-04-07 17:02:59 +0200 | [diff] [blame] | 25 | --- |
| 26 | apiVersion: security.istio.io/v1beta1 |
| 27 | kind: PeerAuthentication |
| 28 | metadata: |
| 29 | name: {{ include "common.servicename" . }} |
| 30 | namespace: {{ include "common.namespace" . }} |
| 31 | spec: |
| 32 | selector: |
| 33 | matchLabels: |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 34 | app: {{ include "common.servicename" . }} |
Andreas Geissler | ba1200c | 2022-04-07 17:02:59 +0200 | [diff] [blame] | 35 | portLevelMtls: |
Andreas Geissler | bc550dc | 2023-06-26 17:09:35 +0200 | [diff] [blame] | 36 | '{{ .Values.service.internalPort }}': |
Andreas Geissler | 5faef93 | 2023-10-05 15:10:34 +0200 | [diff] [blame^] | 37 | mode: STRICT |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 38 | {{- end }} |
| 39 | {{- end }} |