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

Correct --config help string. #320

Merged
merged 2 commits into from
Sep 15, 2021
Merged

Correct --config help string. #320

merged 2 commits into from
Sep 15, 2021

Conversation

porridge
Copy link
Member

What this PR does / why we need it:

For example running kubectl-kuttl-0.11.0 test tests/upgrade in a directory with kuttl-test.yaml does not return in an error. Instead it loads the config and then overrides the testDirs with the command line argument. This works regardless of whether an explicit --config kuttl-test.yaml is specified or not.

2021/09/09 09:42:02 kutt-test config testdirs is overridden with args: [ tests/upgrade ]

This is a common convention and quite useful.

For example running `kubectl-kuttl-0.11.0 test tests/upgrade` in a directory with `kuttl-test.yaml` does not return in an error. Instead it loads the config and then overrides the `testDirs` with the command line argument.
```
2021/09/09 09:42:02 kutt-test config testdirs is overridden with args: [ tests/upgrade ]
```
This is a common convention and quite useful.

Signed-off-by: Marcin Owsiany <porridge@redhat.com>
Signed-off-by: Marcin Owsiany <porridge@redhat.com>
@porridge porridge added this to the 0.12.0 milestone Sep 13, 2021
Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woot... lgtm! thank you!

@kensipe kensipe merged commit 906c837 into main Sep 15, 2021
@kensipe kensipe deleted the porridge/config-help-fix branch September 15, 2021 18:22
This pull request was closed.
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