Commit Graph

20 Commits

Author SHA1 Message Date
Nathan Baulch ff9dd262e3
Fix typos
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:29:56 +10:00
Martin Hickey b6fef6c466 Fix backwards compatibility
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2022-12-08 16:00:45 +00:00
Martin Hickey a59e584684 Update string handling
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2022-11-25 18:16:43 +00:00
Martin Hickey 8199db309a
Merge pull request #10693 from lucadirocco/feat/--set-json
feat: add --set-json flag to set json values.
2022-08-31 21:40:19 +01:00
Matt Farina 225f8d7732 Updating index handling
Signed-off-by: Matt Farina <matt@mattfarina.com>
2022-08-17 13:42:28 -04:00
Luca Di Rocco 11e7d0cd73 feat: add --set-json flag to set json values.
When used with helm install, helm template, helm upgrade, it enables
to set json values (scalars/objects/arrays) from the command line.

Closes #10428

Signed-off-by: Luca Di Rocco <lucadirocco@gmail.com>
2022-03-07 13:12:18 +00:00
zwwhdls 1b39857ac3 add test case
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
2020-07-01 20:34:13 +08:00
zwwhdls c41c72cee9 add test case
Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
2020-07-01 20:33:50 +08:00
Matt Farina 6857da251e
Catching a potential panic in strval parsing
Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-05-15 16:52:04 -04:00
Matt Farina bade6478fc
Fixing error with strvals parsing
Closes #8140

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-05-15 15:24:22 -04:00
Guangwen Feng 2f705f94b6 Add corresponding unit test to the function in parser.go
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
2020-01-09 16:27:56 +08:00
Matthew Fisher b30467c2e5
fix(strvals): port #3912, #4142, #4682, and #5151 to Helm 3
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-11-12 09:57:23 -08:00
Taylor Thomas 7599c5d489 feat(*): Ports `--set-file` flag to v3
I made a few modifications from the original code to fit in with the new
code layout and to clarify a few things. This is a port of #3758

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-24 12:43:43 -06:00
Oleg Sidorov ec440d446d Replaced ghodss/yaml with sigs.k8s.io/yaml
This commit replaces usage of github.com/ghodss/yaml with it's forked
version maintained by SIG community. The replaced library has
low-to-none support activity unlike the latter. We believe the new
Helm branch could benefit from using the community-supported version on
a long-term run as yaml parser is a key component of Helm chart rendering
engine.

This commit locks sigs.k8s.io/yaml dependency version on 1.1.0 which
is backwards compatible with ghodss/yaml 1.0.0.

This change also resolves the outdated dependency version lock for
ghodss/yaml (currently 1.0.0) and makes it possible to port changes from
https://github.com/helm/helm/pull/6010 to dev-v3.

Signed-off-by: Oleg Sidorov <oleg.sidorov@booking.com>
2019-07-12 16:52:15 +02:00
Adam Reese 4f26b658d8
change copyright to "Copyright The Helm Authors" 2018-08-24 12:03:55 -07:00
Erik Sundell 05a1f7f46c Updated tests for PR #3837 2018-04-06 00:59:22 +02:00
Arturo Contreras a615f80c92 Adding --set-string flag to force string values. 2018-03-20 13:35:42 -06:00
Sam Leavens 609e72b357 fix(pkg/strvals): preserve leading zeros in vals
When passing values with "helm install --set" values with leading zeros are
preserved and not parsed as ints.

Closes #2693
2017-07-26 17:16:39 -07:00
Matt Butcher c01c7318ab
feat(helm): support array index format for --set.
This adds support for specifying list position with an array index using
`--set`. For example, this now works: `--set servers[0].port=8080`
2017-06-08 12:15:03 -06:00
Matthew Fisher 1aee50f5db move pkg cmd/helm/strvals to pkg/strvals
This is another useful package outside of cmd/helm.
2017-03-09 14:05:33 -08:00