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

[Release-1.21] Removed warning about skipping flags #4493

Merged
merged 7 commits into from Nov 15, 2021

Conversation

dereknola
Copy link
Contributor

@dereknola dereknola commented Nov 15, 2021

Proposed Changes

QA showed that the warning was confusing and unnecessary and could potentially reveal secret information.

Types of Changes

Bugfix

Verification

Same as #4464, but warning should not show value of the flag.

Linked Issues

#4481

User-Facing Change

Unknown flags in config are now silently skipped by k3s server and etcd-snapshot

Further Comments

* Made parser able to skip over subcommands
* Edge case coverage, reworked regex with groups
Signed-off-by: Derek Nola <derek.nola@suse.com>
…y used with k3s server. (k3s-io#4464)

* Enabled skipping of unknown flags from config in parser
* Added new unit test, expanded existing

Signed-off-by: Derek Nola <derek.nola@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
@dereknola dereknola requested a review from a team as a code owner November 15, 2021 17:00
Signed-off-by: Derek Nola <derek.nola@suse.com>
@dweomer dweomer merged commit 93cf545 into k3s-io:release-1.21 Nov 15, 2021
@dereknola dereknola deleted the k3s_skip_config_121 branch November 16, 2021 16:55
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.

None yet

4 participants