summaryrefslogtreecommitdiffstats
path: root/robot/assets/helm/pm-https-server/templates/certificate.yaml
blob: 229ac94099655aa0dde3831ff2f6b11273c8428f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  namespace: {{ include "pmhttpsserver.namespace" . }}
  name: '{{ .Values.certificates.name }}-cert'
spec:
  commonName: {{ .Values.certificates.commonName }}
  secretName: '{{ .Values.certificates.name }}-secret'
  renewBefore: {{ .Values.certificates.renewBefore }}
  duration: {{ .Values.certificates.duration }}
  subject:
    organizations:
      - {{ .Values.certificates.subject.organization }}
    countries:
      - {{ .Values.certificates.subject.country }}
    localities:
      - {{ .Values.certificates.subject.locality }}
    provinces:
      - {{ .Values.certificates.subject.province }}
    organizationalUnits:
      - {{ .Values.certificates.subject.organizationalUnit }}
  issuerRef:
    group: {{ .Values.certificates.issuerRef.group }}
    kind: {{ .Values.certificates.issuerRef.kind }}
    name: {{ .Values.certificates.issuerRef.name }}
  dnsNames: {{ include "pmhttpsserver.dnsNames" . | indent 4 }}