mirror of
https://github.com/bitnami/charts.git
synced 2026-03-29 16:27:11 +08:00
[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:
committed by
GitHub
parent
e979121ef5
commit
56b17c2b57
@@ -36,4 +36,4 @@ sources:
|
|||||||
- https://github.com/bitnami/containers/tree/main/bitnami/harbor-registry
|
- https://github.com/bitnami/containers/tree/main/bitnami/harbor-registry
|
||||||
- https://github.com/bitnami/containers/tree/main/bitnami/harbor-registryctl
|
- https://github.com/bitnami/containers/tree/main/bitnami/harbor-registryctl
|
||||||
- https://goharbor.io/
|
- https://goharbor.io/
|
||||||
version: 16.4.2
|
version: 16.4.3
|
||||||
|
|||||||
@@ -115,10 +115,15 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
- name: BASIC_AUTH_PASS
|
- name: BASIC_AUTH_PASS
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
{{- if .Values.core.existingSecret }}
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.core.existingSecret }}
|
||||||
|
key: secret
|
||||||
|
{{- else }}
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
# Take the password from the core component secret
|
|
||||||
name: {{ include "harbor.core" . }}
|
name: {{ include "harbor.core" . }}
|
||||||
key: secret
|
key: secret
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.chartmuseum.extraEnvVars }}
|
{{- if .Values.chartmuseum.extraEnvVars }}
|
||||||
{{- include "common.tplvalues.render" (dict "value" .Values.chartmuseum.extraEnvVars "context" $) | nindent 12 }}
|
{{- include "common.tplvalues.render" (dict "value" .Values.chartmuseum.extraEnvVars "context" $) | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user