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

Add support to check dnsConfig options #358

Merged
merged 6 commits into from
Jun 27, 2022

Conversation

weixiongny
Copy link
Contributor

It is for feature request #354
Add support to check dnsConfig options.
Thanks @trumant for the initial discussion.

@weixiongny weixiongny requested a review from janisz as a code owner June 8, 2022 18:22
pkg/builtinchecks/yamls/dnsconfig-options.yaml Outdated Show resolved Hide resolved
@@ -0,0 +1,12 @@
name: "dnsconfig-options"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this implementation too ndots specific? In other words, does the solution as written provide a mechanism to check other aspects of dnsConfig like nameservers and searches?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Current implementation supports matching in options field, such as ndots, timeout, attempts, etc. A full list here under options section. nameservers and searches are at the same level as options, so not supported currently.

docs/generated/checks.md Outdated Show resolved Hide resolved
weixiongny and others added 4 commits June 8, 2022 18:20
Co-authored-by: Travis Truman <trumant@gmail.com>
Co-authored-by: Mike Ball <mikedball@gmail.com>
Co-authored-by: Mike Ball <mikedball@gmail.com>
@janisz janisz requested a review from viswajithiii June 10, 2022 08:13
@janisz janisz added the enhancement New feature or request label Jun 10, 2022
Copy link
Contributor

@viswajithiii viswajithiii left a comment

Choose a reason for hiding this comment

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

Thanks @weixiongny!

@weixiongny
Copy link
Contributor Author

Hi @viswajithiii @janisz , any chance for merging this pr? Thanks!

@viswajithiii viswajithiii merged commit 2606318 into stackrox:main Jun 27, 2022
abrad3 pushed a commit to abrad3/kube-linter that referenced this pull request Sep 28, 2023

Co-authored-by: Travis Truman <trumant@gmail.com>
Co-authored-by: Mike Ball <mikedball@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants