Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: using index template function to handle the dash (#3279)
h3n4l8b7f5ba10ccb
diff --git a/helm-charts/bytebase/README.md b/helm-charts/bytebase/README.mdindex e3866a164b..7ae1001ad8 100644--- a/helm-charts/bytebase/README.md+++ b/helm-charts/bytebase/README.md@@ -4,7 +4,7 @@ Install the web-based schema change and version control tool [Bytebase](https://## Installing-`helm -n <YOUR_NAMESPACE> --set bytebase.option.port={PORT} --set bytebase.option.external_url={EXTERNAL_URL} --set bytebase.option.pg={PGDSN} --set bytebase.version={VERSION} install <RELEASE_NAME> helm-charts/bytebase`+`helm -n <YOUR_NAMESPACE> --set "bytebase.option.port"={PORT} --set "bytebase.option.external-url"={EXTERNAL_URL} --set "bytebase.option.pg"={PGDSN} --set "bytebase.version"={VERSION} install <RELEASE_NAME> helm-charts/bytebase`## Uninstallingdiff --git a/helm-charts/bytebase/templates/statefulset.yaml b/helm-charts/bytebase/templates/statefulset.yamlindex 6cb2b13c16..b5c418e18b 100644--- a/helm-charts/bytebase/templates/statefulset.yaml+++ b/helm-charts/bytebase/templates/statefulset.yaml@@ -1,4 +1,4 @@-{{- $external_url := .Values.bytebase.option.external_url -}}+{{- $external_url := index .Values.bytebase.option "external-url" -}}{{- $port := .Values.bytebase.option.port -}}{{- $pg := .Values.bytebase.option.pg -}}{{- $data := .Values.bytebase.option.data -}}@@ -33,7 +33,8 @@ spec:"--port",{{ $port | quote }},"--external-url",- {{ $external-url | quote }},+ # helm parser cannot handle the dash in the value, so we need to quote it, so we use $external_url instead of $external-url.+ {{ $external_url | quote }},"--pg",{{ $pg | quote}},]