fix: explicit pki durations to match resulting objects

When using a GitOps deployment model, these resources are always
considered "out of sync", as the resulting Certificate object's
'duration' field also specifies minutes & seconds.

These changes are essentially a no-op, but match the object, for
GitOps compatability.
This commit is contained in:
cmacrae 2020-08-25 09:36:52 +01:00
parent 1bb8d33395
commit 0acec981b3
No known key found for this signature in database
GPG key ID: 53922D7E54A14F5D

View file

@ -29,7 +29,7 @@ metadata:
heritage: {{ .Release.Service }}
spec:
secretName: {{ include "dnsimple-webhook.rootCACertificate" . }}
duration: 43800h # 5y
duration: 43800h0m0s # 5y
issuerRef:
name: {{ include "dnsimple-webhook.selfSignedIssuer" . }}
commonName: "ca.dnsimple-webhook.cert-manager"
@ -67,7 +67,7 @@ metadata:
heritage: {{ .Release.Service }}
spec:
secretName: {{ include "dnsimple-webhook.servingCertificate" . }}
duration: 8760h # 1y
duration: 8760h0m0s # 1y
issuerRef:
name: {{ include "dnsimple-webhook.rootCAIssuer" . }}
dnsNames: