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

sysdump: do not fail if cilium is not installed #1776

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

kkourt
Copy link
Contributor

@kkourt kkourt commented Jun 29, 2023

If Cilium is not installed, the namespace of Cilium and Cilium operator cannot be detected. This means that, unless those two parameters are set by the user, the sysdump command will return an error. This means that sysdump cannot be used in Tetragon installations where Cilium is not installed.

This patch changes the code to split the tasks cilium and tetragon tasks, and disable the cilium tasks instead of erring out when the namesapce cannot be autodetected.

If Cilium is not installed, the namespace of Cilium and Cilium operator
cannot be detected. This means that, unless those two parameters are set
by the user, the sysdump command will return an error. This means that
sysdump canmnot be used in Tetragon installations where Cilium is not
installed.

This patch changes the code to split the tasks cilium and tetragon
tasks, and disable the cilium tasks instead of erring out when the
namesapce cannot be autodetected.

Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
@kkourt kkourt temporarily deployed to ci June 29, 2023 09:13 — with GitHub Actions Inactive
@kkourt kkourt marked this pull request as ready for review June 29, 2023 09:39
@kkourt kkourt requested a review from a team as a code owner June 29, 2023 09:40
@kkourt kkourt requested a review from derailed June 29, 2023 09:40
@kkourt
Copy link
Contributor Author

kkourt commented Jun 29, 2023

Multicluster failure seems unrelated since it does not involve sysdump.

Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

Thanks

@tklauser tklauser merged commit 1b0b0ee into main Jul 12, 2023
18 of 19 checks passed
@tklauser tklauser deleted the pr/kkourt/sysdump-tetragon branch July 12, 2023 09:46
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

2 participants