mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix: helm self signed cert (#4745)
* fix: helm self signed cert Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> * release note Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> Co-authored-by: Vyankatesh Kudtarkar <vyankateshkd@gmail.com>
This commit is contained in:
parent
528bcbad6b
commit
a986a98535
2 changed files with 4 additions and 1 deletions
charts/kyverno
|
@ -36,3 +36,5 @@ annotations:
|
|||
description: Docs for generatecontrollerExtraResources.
|
||||
- kind: changed
|
||||
description: Enable autogen internals by default.
|
||||
- kind: fixed
|
||||
description: Self signed certificates not using SANs.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{{- if .Values.createSelfSignedCert }}
|
||||
{{- $ca := genCA (printf "*.%s.svc" (include "kyverno.namespace" .)) 1024 -}}
|
||||
{{- $cert := genSignedCert (printf "%s.%s.svc" (include "kyverno.serviceName" .) (include "kyverno.namespace" .)) nil nil 1024 $ca -}}
|
||||
{{- $svcName := (printf "%s.%s.svc" (include "kyverno.serviceName" .) (include "kyverno.namespace" .)) -}}
|
||||
{{- $cert := genSignedCert $svcName nil (list $svcName) 1024 $ca -}}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
|
|
Loading…
Add table
Reference in a new issue