blob: 1220ad35a94d78b58029eb2bf0b1d5f4cfedbf15 [file] [log] [blame]
Piotr Marcinkiewicz32672932021-03-26 13:06:35 +01001{{/*
2 # Copyright © 2021, Nokia
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15*/}}
16
Andreas Geissler9794a7b2022-07-26 13:51:08 +020017{{- if .Values.global.cmpv2Enabled }}
Piotr Marcinkiewicz32672932021-03-26 13:06:35 +010018apiVersion: cert-manager.io/v1
19kind: Issuer
20metadata:
21 name: {{ .Values.tls.issuer.selfsigning.name }}
22 namespace: {{ include "common.namespace" . }}
23spec:
24 selfSigned: {}
25---
26apiVersion: cert-manager.io/v1
27kind: Issuer
28metadata:
29 name: {{ .Values.tls.issuer.ca.name }}
30 namespace: {{ include "common.namespace" . }}
31spec:
32 ca:
Andreas Geissler9794a7b2022-07-26 13:51:08 +020033 secretName: {{ .Values.tls.issuer.ca.secret.name }}
34{{- end -}}
35
36{{- if (include "common.onServiceMesh" .) }}
37---
38apiVersion: cert-manager.io/v1
39kind: Issuer
40metadata:
41 name: {{ .Values.tls.issuer.ingressSelfsigned.name }}
42 namespace: {{ .Values.tls.issuer.ingressSelfsigned.namespace }}
43spec:
44 selfSigned: {}
45---
46apiVersion: cert-manager.io/v1
47kind: Issuer
48metadata:
49 name: {{ .Values.tls.issuer.ingressCa.name }}
50 namespace: {{ .Values.tls.issuer.ingressCa.namespace }}
51spec:
52 ca:
53 secretName: {{ .Values.tls.issuer.ingressCa.secret.name }}
54{{- end -}}