Skip to content

Commit

Permalink
fix: wrong certificates validity duration (#517)
Browse files Browse the repository at this point in the history
Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
  • Loading branch information
jvanz authored Sep 5, 2024
1 parent ec3c44b commit 4cbc72c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/kubewarden-controller/templates/webhooks.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# generate certificates
{{ $dnsName := printf "%s-webhook-service.%s.svc" (include "kubewarden-controller.fullname" .) .Release.Namespace }}
{{ $ca := genCAWithKey "kubewarden-controller-ca" 365 (genPrivateKey "ecdsa") }}
{{ $cert := genSignedCertWithKey $dnsName nil ( list $dnsName ) 3650 $ca (genPrivateKey "ecdsa") }}
{{ $ca := genCAWithKey "kubewarden-controller-ca" 3650 (genPrivateKey "ecdsa") }}
{{ $cert := genSignedCertWithKey $dnsName nil ( list $dnsName ) 365 $ca (genPrivateKey "ecdsa") }}
{{ $caCert := ($ca.Cert | b64enc) }}
{{ $oldCaCert := "" }}
{{ $caBundle := $caCert }}
Expand Down

0 comments on commit 4cbc72c

Please sign in to comment.