Skip to content

Conversation

mhofstetter
Copy link
Member

@mhofstetter mhofstetter commented Nov 1, 2024

Historically, the bugtool has support for fetching system information from a Cilium Agent via Kubernetes API. In these cases, the bugtool is running outside of the agent and the flag k8s-mode=true is set.

Nowadays, Cilium CLI (e.g. cilium sysdump) is used to gather information from Cilium running in a K8s cluster. In this case, the bugtool is always running within the agent.

Therefore, this commit deprecates the flag k8s-mode (and it's related flags cilium-agent-container-name, k8s-namespace & k8s-label). It will be completely removed with Cilium 1.18.

@mhofstetter mhofstetter added kind/cleanup This includes no functional changes. area/cli Impacts the command line interface of any command in the repository. release-note/misc This PR makes changes that have no direct user impact. labels Nov 1, 2024
@mhofstetter mhofstetter requested review from a team as code owners November 1, 2024 08:37
@mhofstetter mhofstetter added the area/bugtool Impacts gathering of data for debugging purposes. label Nov 1, 2024
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/bugtool-deprecate-k8s-mode branch from bf4f75c to 791aa47 Compare November 1, 2024 08:47
@mhofstetter
Copy link
Member Author

/test

Copy link
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

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

should be good to go once tobias' comments get addressed 🚀

Copy link
Contributor

@derailed derailed left a comment

Choose a reason for hiding this comment

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

@mhofstetter Nice work!

Historically, the bugtool has support for fetching system information
from a Cilium Agent via Kubernetes API. In these cases, the bugtool is
running outside of the agent and the flag `k8s-mode=true` is set.

Nowadays, Cilium CLI (e.g. `cilium sysdump`) is used to gather information
from Cilium running in a K8s cluster. In this case, the bugtool is always
running within the agent.

Therefore, this commit deprecates the flag `k8s-mode` (and it's related flags
`cilium-agent-container-name`, `k8s-namespace` & `k8s-label`).
It will be completely removed with Cilium 1.18.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/bugtool-deprecate-k8s-mode branch from 791aa47 to 638d812 Compare November 1, 2024 15:51
@mhofstetter
Copy link
Member Author

/test

@mhofstetter mhofstetter requested a review from tklauser November 1, 2024 15:53
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 enabled auto-merge November 1, 2024 15:56
@tklauser tklauser added this pull request to the merge queue Nov 6, 2024
Merged via the queue into cilium:main with commit 63bed75 Nov 6, 2024
66 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/bugtool-deprecate-k8s-mode branch November 26, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bugtool Impacts gathering of data for debugging purposes. area/cli Impacts the command line interface of any command in the repository. kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants