Fix extraEnvVarsSecret on exporter (#14397)

Signed-off-by: Sébastien GLON <sebastien.glon@ubble.ai>

Signed-off-by: Sébastien GLON <sebastien.glon@ubble.ai>
Co-authored-by: Sébastien GLON <sebastien.glon@ubble.ai>
This commit is contained in:
Sébastien GLON
2023-01-20 11:10:44 +01:00
committed by GitHub
parent 432aea69f9
commit 5ed67f6956
2 changed files with 5 additions and 1 deletions

View File

@@ -36,4 +36,4 @@ sources:
- https://github.com/bitnami/containers/tree/main/bitnami/harbor-registry
- https://github.com/bitnami/containers/tree/main/bitnami/harbor-registryctl
- https://goharbor.io/
version: 16.3.0
version: 16.3.1

View File

@@ -115,6 +115,10 @@ spec:
name: "{{ include "harbor.exporter" . }}-envvars"
- secretRef:
name: "{{ include "harbor.exporter" . }}-envvars"
{{- if .Values.exporter.extraEnvVarsSecret }}
- secretRef:
name: {{ include "common.tplvalues.render" (dict "value" .Values.exporter.extraEnvVarsSecret "context" $) }}
{{- end }}
ports:
- containerPort: {{ .Values.exporter.containerPorts.metrics }}
name: metrics