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
feat: add & remove default filter(s) to analyze. #161
feat: add & remove default filter(s) to analyze. #161
Conversation
5b107fd
to
59e01b7
Compare
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
59e01b7
to
32ddf66
Compare
|
It looks like this would be a breaking change, we would have to ask people to regenerate their k8sgpt.yaml? |
ecbbbb6
to
3e1555b
Compare
No breaking change. I handle the fact that the |
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
3e1555b
to
30faf84
Compare
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
This error is correct. You are trying to remove a filter that is not defined in your configuration file.
|
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
Okay, so maybe this is a DX issue. As a user when I run K8sGPT I'll have some sensible defaults enabled e.g.
Let's say I actually don't find Ingress information useful and just spammy in my cluster.
Maybe I didn't articulate this, but it seems we have the "built in" concept vs the "user defined default list" WDYT? |
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
@AlexsJones That's very clear and makes sense. I'll make you an implementation proposal. |
934911c
to
39d46f3
Compare
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
39d46f3
to
3ed545f
Compare
@AlexsJones New version available. I have taken your requests into account. Below you will find my tests:
I also took the opportunity to rename the concept of |
This is an awesome contribution thank you @matthisholleville |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ππ½
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Closes #158
π Description
This MR allows the addition of custom default filters. As discussed here #158, it would be interesting for the user to have the possibility to manage the analyzers they are interested in and for example not have to execute PDB analyzers when they do not use them.
β Checks
βΉ Additional Information
I have done a lot of testing of adding/removing filters in the configuration file and have not found any side effects. If you would like me to perform additional tests, please let me know which ones.
This version does not include a breaking change.