Skip to content

Migrate BGP code paths from cilium.io/v2alpha1 to cilium.io/v2 #18

Description

@jr42

Summary

Operator's BGP code paths talk to cilium.io/v2alpha1 (CiliumBGPAdvertisement, CiliumCIDRGroup). Cilium has shipped cilium.io/v2 as GA since 1.16 and plans to remove v2alpha1 in a future release. The current operator emits Cilium's deprecation warning on every BGP reconcile:

INFO  cilium.io/v2alpha1 CiliumBGPAdvertisement is deprecated; use cilium.io/v2 CiliumBGPAdvertisement
INFO  cilium.io/v2alpha1 CiliumCIDRGroup is deprecated; use cilium.io/v2 CiliumCIDRGroup

Suggested fix

Migrate the BGP/CIDR-group consumer code to cilium.io/v2. The deprecated alias should still resolve during the transition; new code can target v2 directly.

Once Cilium drops v2alpha1 (no firm date but it's marked for removal), the operator will break for users on that Cilium version.

Spotted on v0.0.2 in production. Separate from #19 (log spam — even after the migration the deprecation warning shouldn't fire per-reconcile, but that's a logging concern).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions