-
Notifications
You must be signed in to change notification settings - Fork 8k
support exclude namespaces for istioctl analyze #56760
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
base: master
Are you sure you want to change the base?
Conversation
< 8000 span class="Button-content">
🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test? Courtesy of your friendly test nag. |
6e34692
to
989a817
Compare
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.
Please add both unit tests and integration tests when a new feature is introduced.
@@ -355,13 +355,22 @@ func (sa *IstiodAnalyzer) GetFiltersByGVK() map[config.GroupVersionKind]kubetype | |||
} | |||
} | |||
|
|||
func (sa *IstiodAnalyzer) AddRunningKubeSourceWithRevision(c kubelib.Client, revision string, remote bool) { | |||
func (sa *IstiodAnalyzer) AddRunningKubeSourceWithRevision(c kubelib.Client, revision string, remote bool, excludeNamespaces ...string) { |
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.
This only works for the resources in the k8s cluster. If we introduce the new flag, we also need to handle the file-based resources.
Signed-off-by: xin.li <xin.li@daocloud.io>
Please provide a description of this PR:
Fix #55504
Add support exclude namespaces for
istioctl analyze