diff --git a/class/defaults.yml b/class/defaults.yml index 0472c8f7..1f65b918 100644 --- a/class/defaults.yml +++ b/class/defaults.yml @@ -15,6 +15,14 @@ parameters: "False": true cilium_helm_values: + bgpControlPlane: + secretNamespace: + # Ensure that Cilium's BGP control plane is configured to look for + # peering secrets in the same namespace where Cilium is installed. + # Without this, it's not possible to enable the BGP control plane + # when installing Cilium with OLM without patching the OLM RBAC. + # See also https://github.com/projectsyn/component-cilium/pull/117. + name: ${cilium:_namespace} cni: binPath: /var/lib/cni/bin confPath: /var/run/multus/cni/net.d diff --git a/tests/golden/olm-opensource/cilium/cilium/olm/cluster-network-07-cilium-ciliumconfig.yaml b/tests/golden/olm-opensource/cilium/cilium/olm/cluster-network-07-cilium-ciliumconfig.yaml index 964edb38..22dd73cd 100644 --- a/tests/golden/olm-opensource/cilium/cilium/olm/cluster-network-07-cilium-ciliumconfig.yaml +++ b/tests/golden/olm-opensource/cilium/cilium/olm/cluster-network-07-cilium-ciliumconfig.yaml @@ -4,6 +4,9 @@ metadata: name: cilium namespace: cilium spec: + bgpControlPlane: + secretNamespace: + name: cilium bpf: masquerade: false cni: