mirror of
https://github.com/bitnami/charts.git
synced 2026-03-10 15:07:49 +08:00
[bitnami/harbor] Added tpl to externalURL (#31940)
* add tpl to externalURL Signed-off-by: Neev Geffen <133771232+neevnuv@users.noreply.github.com> * Update Chart.yaml Signed-off-by: Neev Geffen <133771232+neevnuv@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> --------- Signed-off-by: Neev Geffen <133771232+neevnuv@users.noreply.github.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 24.3.1 (2025-02-17)
|
||||
|
||||
* [bitnami/harbor] Added tpl to externalURL ([#31940](https://github.com/bitnami/charts/pull/31940))
|
||||
|
||||
## 24.3.0 (2025-01-27)
|
||||
|
||||
* [bitnami/harbor] Added existingSecret parameter for external database ([#31492](https://github.com/bitnami/charts/pull/31492))
|
||||
* [bitnami/harbor] Added existingSecret parameter for external database (#31492) ([4cf7499](https://github.com/bitnami/charts/commit/4cf749975ff948cae80d961af7c75debf9fc49a3)), closes [#31492](https://github.com/bitnami/charts/issues/31492)
|
||||
|
||||
## 24.2.0 (2025-01-27)
|
||||
|
||||
|
||||
@@ -55,4 +55,4 @@ maintainers:
|
||||
name: harbor
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/harbor
|
||||
version: 24.3.0
|
||||
version: 24.3.1
|
||||
|
||||
@@ -13,14 +13,15 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
||||
Set the http prefix if the externalURl doesn't have it
|
||||
*/}}
|
||||
{{- define "harbor.externalUrl" -}}
|
||||
{{- if hasPrefix "http" .Values.externalURL -}}
|
||||
{{- print .Values.externalURL -}}
|
||||
{{- $templatedExternalUrl := tpl .Values.externalURL . -}}
|
||||
{{- if hasPrefix "http" $templatedExternalUrl -}}
|
||||
{{- print $templatedExternalUrl -}}
|
||||
{{- else if and (eq .Values.exposureType "proxy") .Values.nginx.tls.enabled -}}
|
||||
{{- printf "https://%s" .Values.externalURL -}}
|
||||
{{- printf "https://%s" $templatedExternalUrl -}}
|
||||
{{- else if and (eq .Values.exposureType "ingress") .Values.ingress.core.tls -}}
|
||||
{{- printf "https://%s" .Values.externalURL -}}
|
||||
{{- printf "https://%s" $templatedExternalUrl -}}
|
||||
{{- else -}}
|
||||
{{- printf "http://%s" .Values.externalURL -}}
|
||||
{{- printf "http://%s" $templatedExternalUrl -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user