Skip to content

l7lb: fix registration of flag loadbalancer-l7 #35623

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

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

mhofstetter
Copy link
Member

@mhofstetter mhofstetter commented Oct 29, 2024

Currently, the flag loadbalancer-l7 isn't properly registered.

Even though it's working fine when reading the config property from the Cilium Configmap, it's not working when trying to use the flag as Go flag.

2024-10-29T16:24:26Z debug layer=debugger Adding target 23 "/usr/bin/cilium-operator-generic-bin --config-dir=/tmp/cilium/config-map --debug=true --loadbalancer-l7=envoy"
Error: unknown flag: --loadbalancer-l7

Therefore, this commit is moving the config property into the respective Hive Cell where it gets properly registered.

Reported-by: André Martins andre@cilium.io

Note: The initial PR that moved this logic and flags into a Hive Cell probably skipped moving the config flag loadbalancer-l7 as there might be multiple cells that implement L7 loadbalancing functionality in the future. While this might be true, IMO it's ok to move if for the time being and deal with this later.

Currently, the flag `loadbalancer-l7` isn't properly registered.

Even though it's working fine when reading the config property from
the Cilium Configmap, it's not working when trying to use the
flag as Go flag.

```
2024-10-29T16:24:26Z debug layer=debugger Adding target 23 "/usr/bin/cilium-operator-generic-bin --config-dir=/tmp/cilium/config-map --debug=true --loadbalancer-l7=envoy"
Error: unknown flag: --loadbalancer-l7
```

Therefore, this commit is moving the config property into the respective
Hive Cell where it gets properly registered.

Reported-by: André Martins <andre@cilium.io>
Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter added kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium. area/servicemesh GH issues or PRs regarding servicemesh labels Oct 29, 2024
@mhofstetter
Copy link
Member Author

/test

@mhofstetter mhofstetter marked this pull request as ready for review October 29, 2024 17:04
@mhofstetter mhofstetter requested review from a team as code owners October 29, 2024 17:04
@mhofstetter mhofstetter added needs-backport/1.15 needs-backport/1.16 This PR / issue needs backporting to the v1.16 branch labels Oct 29, 2024
Copy link
Member

@sayboras sayboras left a comment

Choose a reason for hiding this comment

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

Good findings both ✔️

@sayboras sayboras enabled auto-merge October 30, 2024 00:36
@sayboras sayboras added this pull request to the merge queue Oct 30, 2024
Merged via the queue into cilium:main with commit 40f2d3f Oct 30, 2024
74 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/l7lb-fix-flag branch October 30, 2024 07:35
@joamaki joamaki mentioned this pull request Nov 5, 2024
4 tasks
@joamaki joamaki added backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. and removed needs-backport/1.15 labels Nov 5, 2024
@joamaki joamaki mentioned this pull request Nov 5, 2024
23 tasks
@joamaki joamaki added backport-pending/1.16 The backport for Cilium 1.16.x for this PR is in progress. and removed needs-backport/1.16 This PR / issue needs backporting to the v1.16 branch labels Nov 5, 2024
@github-actions github-actions bot added backport-done/1.16 The backport for Cilium 1.16.x for this PR is done. backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. and removed backport-pending/1.16 The backport for Cilium 1.16.x for this PR is in progress. backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/servicemesh GH issues or PRs regarding servicemesh backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. backport-done/1.16 The backport for Cilium 1.16.x for this PR is done. kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants