Commit d44b7ada authored by Matthew Fisher's avatar Matthew Fisher

document toYaml syntax in --set for annotations

parent 1512a332
...@@ -270,6 +270,15 @@ a backslash to escape the characters; `--set name=value1\,value2` will become: ...@@ -270,6 +270,15 @@ a backslash to escape the characters; `--set name=value1\,value2` will become:
name: "value1,value2" name: "value1,value2"
``` ```
Similarly, you can escape dot sequences as well, which may come in handy when charts use the
`toYaml` function to parse annotations, labels and node selectors. The syntax for
`--set nodeSelector."kubernetes\.io/role"=master` becomes:
```yaml
nodeSelector:
kubernetes.io/role: master
```
The `--set` syntax is not as expressive as YAML, especially when it comes to The `--set` syntax is not as expressive as YAML, especially when it comes to
collections. And there is currently no method for expressing things such as "set collections. And there is currently no method for expressing things such as "set
the third item in a list to...". the third item in a list to...".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment