mirror of https://git.rancher.io/charts
21 lines
826 B
YAML
21 lines
826 B
YAML
{{- if .Values.manager.enabled -}}
|
|
{{- if eq "true" (toString .Values.autoGenerateCert) }}
|
|
{{- $cn := "neuvector" }}
|
|
{{- $cert := genSelfSignedCert $cn nil (list $cn) (.Values.defaultValidityPeriod | int) -}}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: neuvector-manager-secret
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
chart: {{ template "neuvector.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: Helm
|
|
type: Opaque
|
|
data:
|
|
ssl-cert.key: {{ include "neuvector.secrets.lookup" (dict "namespace" .Release.Namespace "secret" "neuvector-manager-secret" "key" "ssl-cert.key" "defaultValue" $cert.Key) }}
|
|
ssl-cert.pem: {{ include "neuvector.secrets.lookup" (dict "namespace" .Release.Namespace "secret" "neuvector-manager-secret" "key" "ssl-cert.pem" "defaultValue" $cert.Cert) }}
|
|
---
|
|
{{- end }}
|
|
{{- end }}
|