You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following up form a request to the helm guys in helm/helm#9737
Here, I am using
rbi-env [ingress✗]➜ helm version
version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"dirty", GoVersion:"go1.16.3"}
I would like to use the following:
{{- if getHostByName .Values.hostName }}
annotations:
kubernetes.io/ingress.global-static-ip-name: {{ .Values.hostName | quote }}
{{- end }}
Which works when .Values.hostname is resolvable, but throws up an error, when it fails:
foo [ingress✗]➜ helm template bar --set hostName=asd.ldsjf.com
Error: template: bar/templates/ingress.yaml:1:9: executing "bar/templates/ingress.yaml" at <getHostByName .Values.hostName>: error calling getHostByName: invalid argument to Intn
Use --debug flag to render out invalid YAML
I am following up form a request to the helm guys in helm/helm#9737
Here, I am using
I would like to use the following:
Which works when .Values.hostname is resolvable, but throws up an error, when it fails:
I see this comment in the sprig code:
sprig/network.go
Lines 9 to 10 in 3ac42c7
Any chance I can get a fix for me to try this out?
Thanks,
Kannan
The text was updated successfully, but these errors were encountered: