We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems as the hoppscotch.env_vars helper function doesn't support env values containing string.
hoppscotch.env_vars
I guess you could remove the if-statement altogether, but I might miss something.
{{/* Format env vars */}} {{- define "hoppscotch.env_vars" -}} {{- with . -}} {{- $result := list -}} {{- range $name, $value := . -}} {{- if or (kindIs "float64" $value) (kindIs "bool" $value) -}} {{- $result = append $result (dict "name" $name "value" ($value | toString)) -}} {{- else -}} {{- $result = append $result (dict "name" $name "value" $value) -}} {{- end -}} {{- end -}} {{- toYaml $result | nindent 0 -}} {{- end -}} {{- end -}}
global: env: DATABASE_URL: postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch
Error details
Error: INSTALLATION FAILED: template: hoppscotch/templates/web/deployment.yaml:44:17: executing "hoppscotch/templates/web/deployment.yaml" at <include "hoppscotch.env_vars" (deepCopy .Values.web.env | merge .Values.global.env)>: error calling include: template: hoppscotch/templates/_helpers.tpl:104:67: executing "hoppscotch.env_vars" at <tpl $value $>: error calling tpl: cannot retrieve Template.Basepath from values inside tpl function: postgresql://postgres:OwSv34O76Z@my-release-postgresql.postgres-system.svc.cluster.local:5432/hoppscotch: "BasePath" is not a value
The text was updated successfully, but these errors were encountered:
fix: string env #5
8cc4e81
No branches or pull requests
It seems as the
hoppscotch.env_vars
helper function doesn't support env values containing string.I guess you could remove the if-statement altogether, but I might miss something.
Error details
The text was updated successfully, but these errors were encountered: