Skip to content

Conversation

mhofstetter
Copy link
Member

The method Daemon.DebugEnabled is used in two cases.

  1. In an optionChanged callback that can directly access the config property
  2. As hubble observer option that is actually no longer used

Therefore, this commit removes the unnecessary method from the daemon.

@mhofstetter mhofstetter added kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. labels Jun 12, 2024
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/daemon-rem-debugenabled branch from 2facbb5 to f86f9c8 Compare June 12, 2024 20:15
@mhofstetter
Copy link
Member Author

/test

@mhofstetter mhofstetter requested a review from joamaki June 13, 2024 12:23
@mhofstetter mhofstetter marked this pull request as ready for review June 13, 2024 12:23
@mhofstetter mhofstetter requested review from a team as code owners June 13, 2024 12:23
@mhofstetter mhofstetter requested a review from rolinh June 13, 2024 12:23
Copy link
Member

@rolinh rolinh left a comment

Choose a reason for hiding this comment

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

Nice cleanup, thanks!

The method `Daemon.DebugEnabled` is used in two cases.

1. In an optionChanged callback that can directly access the config property
2. As hubble observer option that is actually no longer used

Therefore, this commit removes the unnecessary method from the daemon.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/daemon-rem-debugenabled branch from f86f9c8 to 7ebf9ba Compare June 13, 2024 16:13
@mhofstetter
Copy link
Member Author

rebased on top of current main to resolve some conflicts.

@mhofstetter
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 13, 2024
@julianwiedmann julianwiedmann added this pull request to the merge queue Jun 14, 2024
Merged via the queue into cilium:main with commit b6f6867 Jun 14, 2024
@mhofstetter mhofstetter deleted the pr/mhofstetter/daemon-rem-debugenabled branch June 14, 2024 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup This includes no functional changes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. 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.

4 participants