aboutsummaryrefslogtreecommitdiffstats
path: root/helm/ves-client/templates/certificate.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'helm/ves-client/templates/certificate.yaml')
-rw-r--r--helm/ves-client/templates/certificate.yaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/helm/ves-client/templates/certificate.yaml b/helm/ves-client/templates/certificate.yaml
new file mode 100644
index 0000000..4dc0110
--- /dev/null
+++ b/helm/ves-client/templates/certificate.yaml
@@ -0,0 +1,41 @@
+apiVersion: cert-manager.io/v1
+kind: Certificate
+{{- with .Values.certificates }}
+metadata:
+ name: {{ .name }}
+ namespace: {{ .namespace }}
+spec:
+ secretName: {{ .secretName }}
+ commonName: {{ .commonName }}
+ renewBefore: {{ .renewBefore }}
+ {{- if .duration }}
+ duration: {{ .duration }}
+ {{- end }}
+ subject:
+ organizations:
+ - {{ .subject.organization }}
+ countries:
+ - {{ .subject.country }}
+ localities:
+ - {{ .subject.locality }}
+ provinces:
+ - {{ .subject.province }}
+ organizationalUnits:
+ - {{ .subject.organizationalUnit }}
+ issuerRef:
+ group: {{ .issuerRef.group }}
+ kind: {{ .issuerRef.kind }}
+ name: {{ .issuerRef.name }}
+ {{- if .dnsNames }}
+ dnsNames:
+ {{- range $.Values.certificates.dnsNames }}
+ - {{ . }}
+ {{- end }}
+ {{- end }}
+ {{- if .ipAddresses }}
+ ipAddresses:
+ - {{ .ipAddresses }}
+ {{- end }}
+ keystores:
+ {{- toYaml .keystores | nindent 4 }}
+{{- end }}