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
The below helper function is causing the Helm Chart to complain on template compilation.
If the new lines are removed, Helm lint is satisfied.
{{/*
Create the value for internal host system value from the image repository value.
*/}}
{{- define "iqserver.internalHostSystem" -}}
{{- $systems := dict
"sonatype/nexus-iq-server" "Helm+Docker"
"registry.connect.redhat.com/sonatype/nexus-iq-server" "Helm+RedHat"
-}}
{{- .Values.image.repository
| default ""
| get $systems
| default "Helm+Other"
-}}
{{- end -}}
I can ask around for other attempts at a reproduction. What platform are you using when linting? Can you be more specific about which whitespaces you'd eliminate?
I have changed the mentioned function to the below:
{{/*
Create the value for internal host system value from the image repository value.
*/}}
{{- define "iqserver.internalHostSystem" -}}
{{- $systems := dict "sonatype/nexus-iq-server" "Helm+Docker" "registry.connect.redhat.com/sonatype/nexus-iq-server" "Helm+RedHat" -}}
{{- .Values.image.repository | default "" | get $systems | default "Helm+Other" -}}
{{- end -}}
The current version of nexus-iq Helm Chart (
version: 137.0.0
,appVersion: 1.137.0
) fails with the following Helm error:How to replicate
main
reponexus-iq/helm3-charts/charts
helm lint nexus-iq/ --strict
Issue
The below helper function is causing the Helm Chart to complain on template compilation.
If the new lines are removed, Helm lint is satisfied.
Versions
Helm Version:
version.BuildInfo{Version:"v3.5.2", GitCommit:"167aac70832d3a384f65f9745335e9fb40169dc2", GitTreeState:"dirty", GoVersion:"go1.15.7"}
(also tried with latest released version of Helm 3)
The text was updated successfully, but these errors were encountered: