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 | |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 18 | {{ include "common.service" . }} |
| 19 | --- |
| 20 | {{ include "common.headlessService" . }} |
Andreas Geissler | ba1200c | 2022-04-07 17:02:59 +0200 | [diff] [blame] | 21 | {{- if (include "common.onServiceMesh" .) }} |
| 22 | {{- if eq (default "istio" .Values.global.serviceMesh.engine) "istio" }} |
| 23 | --- |
| 24 | apiVersion: security.istio.io/v1beta1 |
| 25 | kind: PeerAuthentication |
| 26 | metadata: |
| 27 | name: {{ include "common.servicename" . }} |
| 28 | namespace: {{ include "common.namespace" . }} |
| 29 | spec: |
| 30 | selector: |
| 31 | matchLabels: |
| 32 | app: {{ include "common.servicename" . }} |
| 33 | portLevelMtls: |
| 34 | {{ .Values.service.internalPort }}: |
| 35 | mode: DISABLE |
| 36 | {{- end}} |
| 37 | {{- end}} |