Skip to content

feat(helm): allow specifying --set multiple times - #1817

Merged
technosophos merged 1 commit into
helm:masterfrom
frodenas:multiple-set-flag
Jan 13, 2017
Merged

technosophos merged 1 commit into
helm:masterfrom
frodenas:multiple-set-flag

Conversation

@frodenas

Copy link
Copy Markdown
Contributor

This PR adds support to specify multiple --set flags on install and upgrade commands. The comma-separated behavior doesn't change, even when specifying comma-separated key-values in multiple --set flags.

This PR fixes #1751.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 12, 2017
@technosophos

Copy link
Copy Markdown
Member

Manually tested, and looks awesome!

⇒  helm install --dry-run --debug docs/examples/alpine --set foo=bar --set bar=baz,baz=lurman --set foo=banana
SERVER: "localhost:44134"
CHART PATH: /Users/mattbutcher/Code/Go/src/k8s.io/helm/docs/examples/alpine
NAME:   masked-monkey
REVISION: 1
RELEASED: Thu Jan 12 17:09:07 2017
CHART: alpine-0.1.0
USER-SUPPLIED VALUES:
bar: baz
baz: lurman
foo: banana

COMPUTED VALUES:
Name: my-alpine
bar: baz
baz: lurman
foo: banana
...

As expected, the last --set overrode the first --set.

@technosophos technosophos added this to the 2.2.0 milestone Jan 13, 2017
@technosophos
technosophos merged commit 672d014 into helm:master Jan 13, 2017
@frodenas
frodenas deleted the multiple-set-flag branch January 13, 2017 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support specifying --set multiple times

3 participants