Repository navigation
fix(helm): improve --set parser - #1576
Merged
Merged
Conversation
Member
Author
|
You should be able to do things like this now: $ helm install docs/examples/alpine -f _scratch/foo.yaml --set=foobar.bar=baz,imagePullPolicy=always,ver=20161115.1,port=1234,foostr=foo\\,pair
NAME: intentional-puffin
LAST DEPLOYED: Mon Nov 21 19:38:50 2016
NAMESPACE: default
STATUS: DEPLOYED
RESOURCES:
==> v1/Pod
NAME READY STATUS RESTARTS AGE
intentional-puffin-my-alpine 0/1 ContainerCreating 0 6m
$ helm get values intentional-puffin
foobar:
bar: baz
foo: bar
foostr: foo,pair
imagePullPolicy: always
port: 1234
ver: "20161115.1"Note that we have to use |
technosophos
commented
Nov 22, 2016
| type parser struct { | ||
| sc *bytes.Buffer | ||
| data map[string]interface{} | ||
| carryOn bool |
technosophos
force-pushed
the
feat/set-parser
branch
3 times, most recently
from
November 23, 2016 18:10
9ea185e to
5eced02
Compare
Member
Author
|
Based on @adamreese 's feedback, also added support for lists: |
technosophos
force-pushed
the
feat/set-parser
branch
from
November 23, 2016 18:55
5eced02 to
6a1aab7
Compare
Member
Author
|
Cherry-picking to 2.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This replaces the old
--setparser with a brand new one. This also changesthe internal algorithm from duplicating YAML to merging YAML, which
might solve a problem one user reported in chat, but which was never
captured in an issue because it is difficult to reproduce.
Closes #1540
Closes #1556
Closes #1558
This change is