-
Notifications
You must be signed in to change notification settings - Fork 208
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
Honor global namespace flag in sysdump command #1302
Conversation
875113a
to
e163dba
Compare
e163dba
to
fd137eb
Compare
Hey @joamaki! Any ideas if the failing test is related? I cannot understand a lot of things from the output 😞 |
Hey @tklauser, I tried to address the comment(s) here so feel free to have another look when you get the chance. |
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.
Thanks for your patience @ChrsMark. I think this is still not completely correct as it would now break the namespace auto-detection, please see my comment inline.
Hey @tklauser and thanks for the review again! I agree, what your proposed here looks more robust.
Based on this, feel free to have another look and let me know what you think :). |
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.
Looks good to me, thanks a lot @ChrsMark.
As reported at cilium#1079 the global --namespace flag is not honored in sysdump command. This PR honors the global --namespace flag in sysdump commad by making --namespace flag equivalent to the --cilium-namespace flag. If both flags are set, then the --namespace global flag comes with priority. Closes cilium#1079 Signed-off-by: ChrsMark <[email protected]>
Also log the namespaces in case they were specified on the command line. Signed-off-by: Tobias Klauser <[email protected]>
c9ed8c1
to
6a4411b
Compare
As reported at #1079 the global
--namespace
flag is not honored insysdump
command.This PR honors the global
--namespace
flag insysdump
commad by making--namespace
flag equivalent to the--cilium-namespace
flag.If both flags are set, then the
--namespace
global flag comes with priority.Closes #1079
Signed-off-by: ChrsMark [email protected]