Skip to content

operator/ipam: Remove placeholders file#43726

Merged
aanm merged 1 commit intocilium:mainfrom
pippolo84:pr/pippolo84/operator-remove-placeholders
Jan 23, 2026
Merged

operator/ipam: Remove placeholders file#43726
aanm merged 1 commit intocilium:mainfrom
pippolo84:pr/pippolo84/operator-remove-placeholders

Conversation

@pippolo84
Copy link
Copy Markdown
Member

@pippolo84 pippolo84 commented Jan 13, 2026

Cilium operator supports multiple IPAM allocator providers depending on the build tags enabled and the IPAM mode selected.
Using the init function in each provider specific package it is possible to add the allocator module only if the related build tag is enabled, decreasing the operator binary size. This allows to remove the *_placeholder files in package ipam, but requires to build the operator hive through a function, not as a plain global variable.

Blocked on #43628 and #43693

@pippolo84 pippolo84 added area/operator Impacts the cilium-operator component release-note/misc This PR makes changes that have no direct user impact. area/modularization Relates to code modularization and maintenance. area/ipam IP address management, including cloud IPAM labels Jan 13, 2026
@pippolo84 pippolo84 force-pushed the pr/pippolo84/operator-remove-placeholders branch from 5b1b35c to db7b136 Compare January 13, 2026 15:05
@pippolo84 pippolo84 added the dont-merge/blocked Another PR must be merged before this one. label Jan 13, 2026
@joestringer joestringer added the dont-merge/wait-until-release Freeze window for current release is blocking non-bugfix PRs label Jan 14, 2026
@aanm aanm removed the dont-merge/wait-until-release Freeze window for current release is blocking non-bugfix PRs label Jan 14, 2026
@pippolo84 pippolo84 force-pushed the pr/pippolo84/operator-remove-placeholders branch from db7b136 to 79413eb Compare January 21, 2026 15:31
Cilium operator supports multiple IPAM allocator providers depending on
the build tags enabled and the IPAM mode selected. Using the init
function in each provider specific package it is possible to add the
allocator module only if the related build tag is enabled, decreasing
the operator binary size. This allows to remove the *_placeholder files
in package ipam, but requires to build the operator hive through a
function, not as a plain global variable.

Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
@pippolo84 pippolo84 force-pushed the pr/pippolo84/operator-remove-placeholders branch from 79413eb to c2f85ee Compare January 23, 2026 11:19
@pippolo84 pippolo84 removed the dont-merge/blocked Another PR must be merged before this one. label Jan 23, 2026
@pippolo84 pippolo84 marked this pull request as ready for review January 23, 2026 11:23
@pippolo84 pippolo84 requested review from a team as code owners January 23, 2026 11:23
@pippolo84
Copy link
Copy Markdown
Member Author

/test

Copy link
Copy Markdown
Member

@HadrienPatte HadrienPatte left a comment

Choose a reason for hiding this comment

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

Thanks, looks much cleaner now 👍

@aanm aanm enabled auto-merge January 23, 2026 13:25
@aanm aanm added this pull request to the merge queue Jan 23, 2026
@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 Jan 23, 2026
Merged via the queue into cilium:main with commit c8bd7d3 Jan 23, 2026
92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ipam IP address management, including cloud IPAM area/modularization Relates to code modularization and maintenance. area/operator Impacts the cilium-operator component 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