Skip to content

Conversation

mhofstetter
Copy link
Member

cec: introduce annotation to control useoriginalsourceaddress
Commit b6bcc0c0e2a introduced the label
cilium.io/use-original-source-address on the CRD CiliumEnvoyConfig - with the
intent to have fine-grained control of whether Cilium Proxy should use
the original source address.

Using a K8s label isn't consistent with the fact that all other aspects of a
CEC are configured via K8s annotations. From the description of the commit
it looks like the intention was to add an annotation instead of the label
in the first place.

Therefore, this commit introduces a new annotation cec.cilium.io/use-original-source-address
and deprecates the label.

Commit cilium@b6bcc0c0e2a introduced the label
`cilium.io/use-original-source-address` on the CRD `CiliumEnvoyConfig` - with the
intent to have fine-grained control of whether Cilium Proxy should use
the original source address.

Using a K8s label isn't consistent with the fact that all other aspects of a
CEC are configured via K8s annotations. From the description of the commit
it looks like the intention was to add an annotation instead of the label
in the first place.

Therefore, this commit introduces a new annotation `cec.cilium.io/use-original-source-address`
and deprecates the label.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter added kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. area/servicemesh GH issues or PRs regarding servicemesh labels Jul 25, 2025
This commit changes the Cilium Ingress API & Gateway API reconcilers to use
the new annotation `cec.cilium.io/use-original-source-address` instead of the
label to configure the `CiliumEnvoyConfig`.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/cec-useoriginalsourceaddress-annotation branch from db9e453 to 22b6ad8 Compare July 25, 2025 10:29
@mhofstetter
Copy link
Member Author

/test

@mhofstetter mhofstetter marked this pull request as ready for review July 25, 2025 11:20
@mhofstetter mhofstetter requested review from a team as code owners July 25, 2025 11:20
@mhofstetter mhofstetter requested a review from qmonnet July 25, 2025 11:20
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

Ack for doc change

Copy link
Contributor

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

Agreed, this should have been an annotation from the start.

@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 Jul 28, 2025
@tklauser tklauser enabled auto-merge July 29, 2025 08:51
@tklauser tklauser added this pull request to the merge queue Jul 29, 2025
Merged via the queue into cilium:main with commit aa04735 Jul 29, 2025
81 of 82 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/cec-useoriginalsourceaddress-annotation branch July 29, 2025 10:05
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 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.

5 participants