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

Check for duplicated sysctl keys #730

Merged
merged 1 commit into from
May 4, 2022

Conversation

mmirecki
Copy link
Contributor

The tuning-cni config currently allows to specif duplicated sysctls, also with conflicting values. Duplicated sysctl entries are usually not used intentionally, but are rather the result of an error in configuration.
This PR adds a check for duplicated sysctl's.

@squeed
Copy link
Member

squeed commented Apr 20, 2022

@mmirecki looks good! Can you fix DCO and go fmt? Then I can merge when CI goes green.

@squeed
Copy link
Member

squeed commented Apr 26, 2022

lgtm, will merge tomorrow

@dcbw
Copy link
Member

dcbw commented Apr 27, 2022

LGTM after the dupe check gets moved to parseConf() instead of just in cmdAdd().

@squeed
Copy link
Member

squeed commented Apr 27, 2022

@mmirecki @dcbw observes we should do this when parsing the config for CHECK too, right?

Signed-off-by: mmirecki <mmirecki@redhat.com>
@dcbw
Copy link
Member

dcbw commented May 4, 2022

/lgtm

@dcbw dcbw merged commit 9c59728 into containernetworking:main May 4, 2022
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

5 participants