I wanted to use skaffold dev, after temporarily removing some defaults in the Helm template.
(e.g. nodeSelector)
In the skaffold.yaml below,
Expected behavior is that the nodeSelector statement is deleted, when null or {} is assigned to deploy.helm.releases.[0].setValueTemplates.nodeSelector.
Actual behavior
"null", "" works correctly
null, {}, "{}" doesn't work
Information
Skaffold version: v2.6.0-1-gb25a5ed52
Operating system: Ubuntu 22 LTS
Installed via: Cloud Code
Contents of skaffold.yaml:
# my helm template
(...)
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
(...)
# my default helm values
(...)
nodeSelector:
my-node: worker
(...)
Expected behavior
I wanted to use
skaffold dev
, after temporarily removing some defaults in the Helm template. (e.g.nodeSelector
)In the skaffold.yaml below, Expected behavior is that the nodeSelector statement is deleted, when
null
or{}
is assigned todeploy.helm.releases.[0].setValueTemplates.nodeSelector
.Actual behavior
"null"
,""
works correctlynull
,{}
,"{}"
doesn't workInformation
Contents of skaffold.yaml:
P.S.