[bitnami/harbor] Fix usage existing secret in chartmuseum (#15337)

* Fix usage existing secret in chartmuseum

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

* Remove unneeded file

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

---------

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>
This commit is contained in:
Rafael Ríos Saavedra
2023-03-06 14:19:21 +01:00
committed by GitHub
parent e979121ef5
commit 56b17c2b57
2 changed files with 7 additions and 2 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.4.2
version: 16.4.3

View File

@@ -115,10 +115,15 @@ spec:
{{- end }}
- name: BASIC_AUTH_PASS
valueFrom:
{{- if .Values.core.existingSecret }}
secretKeyRef:
name: {{ .Values.core.existingSecret }}
key: secret
{{- else }}
secretKeyRef:
# Take the password from the core component secret
name: {{ include "harbor.core" . }}
key: secret
{{- end }}
{{- if .Values.chartmuseum.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.chartmuseum.extraEnvVars "context" $) | nindent 12 }}
{{- end }}