Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge --values-dir to --values and delete --values-dir flag to simpli… #1

Open
wants to merge 4 commits into
base: values-dir
Choose a base branch
from

Conversation

Syst3m1cAn0maly
Copy link

@Syst3m1cAn0maly Syst3m1cAn0maly commented Apr 28, 2023

…fy usage and compatibility

What this PR does / why we need it:
This PR replaces the --values-dir flag by an extension to the --values flag so it supports directories as well as files
Special notes for your reviewer:

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Bhargav-InfraCloud and others added 4 commits March 1, 2023 01:00
Addition to 5 existing flag based input methods (values,
set, set-file, set-json & set-string), the `--values-directory`
(or) `-d` in short will load a directory with values YAML
files to helm. Similar to the existing, this flag can be
used with 3 sub-commands of helm: install, lint & upgrade.

Signed-off-by: Bhargav Ravuri <[email protected]>
- Input directory to --values-directory is read recursively
for YAML files.
- 1 extra unit test to verify the same.

Signed-off-by: Bhargav Ravuri <[email protected]>
Precedence order swap for (-d/--values-directory) and
(-f/--values). A higher rank type of input when inputted
later than lower or same precedence can override values.

Eg.: `helm -d values.d -f values.yaml` will override
values from values.yaml with that of values.d
if there are common keys.

Precedence order highest to least as follows.
Earlier:
  --set-file > --set-string > --set > --set-json
  > -d/--values-directory > -f/--values
Now:
  --set-file > --set-string > --set > --set-json
  > -f/--values > -d/--values-directory

Signed-off-by: Bhargav Ravuri <[email protected]>
…fy usage and compatibility

Signed-off-by: Syst3m1An0maly <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants