From 201bda5427b4892b01c1b1734fa9000d3f335fa8 Mon Sep 17 00:00:00 2001 From: Lenin Mehedy Date: Mon, 23 Oct 2023 09:14:50 +1100 Subject: [PATCH] fix: store hedera-explorer chart as dependency until next official version is released (#436) Signed-off-by: Lenin Mehedy --- .../charts/hedera-explorer/.helmignore | 23 +++++++++++++++++++ .../hedera-explorer/templates/configmap.yaml | 2 +- .../charts/hedera-explorer/values.yaml | 7 ++++-- 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 charts/hedera-network/charts/hedera-explorer/.helmignore diff --git a/charts/hedera-network/charts/hedera-explorer/.helmignore b/charts/hedera-network/charts/hedera-explorer/.helmignore new file mode 100644 index 000000000..4eb90c8fc --- /dev/null +++ b/charts/hedera-network/charts/hedera-explorer/.helmignore @@ -0,0 +1,23 @@ +# OS +.DS_Store + +# VCS +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ + +# Backup +*.swp +*.bak +*.tmp +*~ + +# IDE +.project +.idea/ +.vscode/ +*.tmproj diff --git a/charts/hedera-network/charts/hedera-explorer/templates/configmap.yaml b/charts/hedera-network/charts/hedera-explorer/templates/configmap.yaml index 4f64a650d..4449bbb56 100644 --- a/charts/hedera-network/charts/hedera-explorer/templates/configmap.yaml +++ b/charts/hedera-network/charts/hedera-explorer/templates/configmap.yaml @@ -46,7 +46,7 @@ data: {{- range $path, $backend := .Values.proxyPass }} location {{ $path }} { - proxy_pass {{ $backend }}; + proxy_pass {{ tpl $backend $ }}; } {{- end }} diff --git a/charts/hedera-network/charts/hedera-explorer/values.yaml b/charts/hedera-network/charts/hedera-explorer/values.yaml index 7a36eeb9c..03302002d 100644 --- a/charts/hedera-network/charts/hedera-explorer/values.yaml +++ b/charts/hedera-network/charts/hedera-explorer/values.yaml @@ -158,10 +158,13 @@ volumes: configMap: name: '{{ include "hedera-explorer.fullname" . }}-config' -# Add custom reverse proxy configuration +# Add custom reverse proxy configuration. +# It is a key-value map where key is the path and value being a URL. # Primary use case is to allow access to mirror node api via hedera explorer url +# Note that templating is allowed in the values +# Example: +# /api: "http://{{ .Release.Name }}-rest" proxyPass: {} - # /api: http://fst-rest config: | [