X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-platform%2F50-RIC-Platform%2Fhelm%2Fcommon%2Ftemplates%2F_helmrepo.tpl;fp=ric-platform%2F50-RIC-Platform%2Fhelm%2Fcommon%2Ftemplates%2F_helmrepo.tpl;h=4143ce3567862b5e76a239f6b9ba8858935e3768;hb=72069511cae9028d54b8d99fa373b5f4f691e981;hp=30846dc4e384a7078fa1312b0113263b2ca3155a;hpb=7f1e409379856025977fc8a6ea04ddb215f21a13;p=it%2Fdep.git diff --git a/ric-platform/50-RIC-Platform/helm/common/templates/_helmrepo.tpl b/ric-platform/50-RIC-Platform/helm/common/templates/_helmrepo.tpl index 30846dc4..4143ce35 100644 --- a/ric-platform/50-RIC-Platform/helm/common/templates/_helmrepo.tpl +++ b/ric-platform/50-RIC-Platform/helm/common/templates/_helmrepo.tpl @@ -167,3 +167,15 @@ {{- end -}} {{- end -}} {{- end -}} + +{{/* +Generate certificates for the helm repo +*/}} +{{- define "common.helmrepository.gen-certs" -}} +{{- $altNames := list ( printf "helm.%s" .Values.ingress.hostpostfix ) -}} +{{- $ca := genCA "helm-repository-ca" 365 -}} +{{- $cert := genSignedCert ( include "nexus.name" . ) nil $altNames 365 $ca -}} +tls.crt: {{ $cert.Cert | b64enc }} +tls.key: {{ $cert.Key | b64enc }} +{{- end -}} +