aboutsummaryrefslogtreecommitdiffstats
path: root/robot/assets/helm/ves-client/templates/certificate.yaml
blob: a8bbbd72c2578772d1cb8e2504a7d1dd9811813d (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
27
28
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: '{{ include "ves-client.fullname" . }}-cert'
  namespace: {{ include "ves-client.namespace" . }}
spec:
  secretName: ves-client-secret-cmpv2
  commonName: {{ include "ves-client.fullname" . }}
  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 "ves-client.dnsNames" . | indent 4 }}
  keystores:
    {{ toYaml .Values.certificates.keystores | nindent 4 }}