Skip to content

Commit

Permalink
feat: provide a better CN for registry-adapter
Browse files Browse the repository at this point in the history
Originally registry-adapter's default CN uses rancher's default setting.
In this commit, the installation namespace will be used to generate the
certificate.
  • Loading branch information
holyspectral authored and venkateshjayagopal committed Dec 19, 2024
1 parent 40bb735 commit 563a95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/core/templates/registry-adapter-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $cert = (dict "Key" .Values.cve.adapter.certificate.key "Cert" .Values.cve.adapter.certificate.certificate ) }}
{{- else }}
{{- $cn := "neuvector" }}
{{- $cert = genSelfSignedCert $cn nil (list $cn "neuvector-service-registry-adapter.cattle-neuvector-system.svc.cluster.local" "neuvector-service-registry-adapter") (.Values.defaultValidityPeriod | int) -}}
{{- $cert = genSelfSignedCert $cn nil (list $cn (print "neuvector-service-registry-adapter." (default "neuvector" .Release.Namespace) ".svc.cluster.local") "neuvector-service-registry-adapter") (.Values.defaultValidityPeriod | int) -}}
{{- end }}

apiVersion: v1
Expand Down

0 comments on commit 563a95d

Please sign in to comment.