Skip to content

Conversation

brb
Copy link
Member

@brb brb commented Jun 5, 2025

Instead introduce a minimal version of DaemonConfig for the feature detection.

The new struct is used to work around situations where we want to introduce a breaking change to DaemonConfig. CLI is required to work with all stable Cilium versions. So, the breaking change could break CLI for some versions.

In any case, it is prefered to NOT do feature detection based on the runtime config, as it was never meant to provide a stable "API".

Suggested-by: Sebastian Wicki sebastian@isovalent.com

@brb brb added 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 Jun 5, 2025
@github-actions github-actions bot added cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Jun 5, 2025
@brb brb force-pushed the pr/brb/cli-no-feat-detection-from-daemonconfig branch 2 times, most recently from 47a1232 to c83f366 Compare June 5, 2025 06:18
@brb
Copy link
Member Author

brb commented Jun 5, 2025

/test

@brb brb marked this pull request as ready for review June 5, 2025 06:28
@brb brb requested a review from a team as a code owner June 5, 2025 06:28
@brb brb requested review from christarazi and gandro June 5, 2025 06:28
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Thank you!

Instead introduce a minimal version of DaemonConfig for the feature
detection.

The new struct is used to work around situations where we want to
introduce a breaking change to DaemonConfig. CLI is required to work
with all stable Cilium versions. So, the breaking change could break CLI
for some versions.

In any case, it is preferred to NOT do feature detection based on the
runtime config, as it was never meant to provide a stable "API".

Suggested-by: Sebastian Wicki <sebastian@isovalent.com>
Signed-off-by: Martynas Pumputis <martynas@isovalent.com>
@brb brb force-pushed the pr/brb/cli-no-feat-detection-from-daemonconfig branch from c83f366 to 88112b5 Compare June 5, 2025 07:43
@brb
Copy link
Member Author

brb commented Jun 5, 2025

/test

@brb brb enabled auto-merge June 5, 2025 12:09
@brb brb added this pull request to the merge queue Jun 5, 2025
@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 5, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 5, 2025
@brb brb added this pull request to the merge queue Jun 6, 2025
Merged via the queue into main with commit 7042f0e Jun 6, 2025
268 of 269 checks passed
@brb brb deleted the pr/brb/cli-no-feat-detection-from-daemonconfig branch June 6, 2025 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Impacts the command line interface of any command in the repository. cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary 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.

3 participants