GoogleContainerTools / GoogleContainerTools/skaffold

Setting nodeSelector and tolerations values with setValues or setValueTemplates

Open
#9,692 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

I'm trying to set `nodeSelector` and `tolerations` through the `setValues` and `setValueTemplates` configuration options, like this:
```
setValues:
tolerations:
- key: dedicated
operator: Equal
value: "true"
effect: NoSchedule
nodeSelector:
dedicated: "true"
```

but when running `skaffold deploy` I get the following error:
```
Error: UPGRADE FAILED: failed to create resource: Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal bool into Go struct field PodSpec.spec.template.spec.nodeSelector of type string
deploying "web-client": install: exit status 1
```

I've also tried using `setValueTemplates`, but the result is the same.

Is it possible to configure a map based value like `nodeSelector` through `setValues` or `setValueTemplates`? It works fine if I use `valuesFiles` and a seaprate values file, but I'd like to avoid that.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.