forked from helm/helm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(values): Add Support for Values Directory
New CLI flag --values-directory (or) -d for loading directory name which has the values YAML files. This flag will be used by the following commands: 1. Install 2. Lint 3. Package 4. Upgrade The values directory(s) (or the values inside the values YAML files inside the specified directory(s)) are processed first. i.e., values from other input types (--values, --set-json, --set, --set-string, --set-file, --set-literal) can all overwrite values from directories if matching keys. Fixes helm#10416 Signed-off-by: Bhargav Ravuri <[email protected]>
- Loading branch information
1 parent
f5e7b11
commit 2d3cb93
Showing
10 changed files
with
240 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
7 changes: 7 additions & 0 deletions
7
pkg/cli/values/testdata/chart-with-values-dir/values.d/non-power-users.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
non-power-users: | ||
- Zoro | ||
- Nami | ||
- Ussop | ||
- Sanji | ||
- Franky | ||
- Jinbei |
5 changes: 5 additions & 0 deletions
5
pkg/cli/values/testdata/chart-with-values-dir/values.d/power-users.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
power-users: | ||
- Luffy | ||
- Chopper | ||
- Robin | ||
- Brook |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ship: Thousand Sunny |
1 change: 1 addition & 0 deletions
1
pkg/cli/values/testdata/multi-level-values-dir/values.d/extras/crew.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
crew: Straw Hat Pirates |
1 change: 1 addition & 0 deletions
1
pkg/cli/values/testdata/multi-level-values-dir/values.d/extras/ship.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ship: Going Merry |
7 changes: 7 additions & 0 deletions
7
pkg/cli/values/testdata/multi-level-values-dir/values.d/non-power-users.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
non-power-users: | ||
- Zoro | ||
- Nami | ||
- Ussop | ||
- Sanji | ||
- Franky | ||
- Jinbei |
5 changes: 5 additions & 0 deletions
5
pkg/cli/values/testdata/multi-level-values-dir/values.d/power-users.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
power-users: | ||
- Luffy | ||
- Chopper | ||
- Robin | ||
- Brook |