build(cozyplane): vendoring recipe for the Cilium CRDs

The two policy CRDs were copied by hand with nothing recording where
from, so they would drift from the cilium package's upstream bumps
with no signal. The Makefile pins the Cilium release (the in-tree
files are byte-identical to its upstream CRDs) and make update
re-fetches them.

Assisted-by: LLM
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
This commit is contained in:
Timofei Larkin committed 2026-11-19 12:04:16 +01:00
1 parent 673cd43d28
commit 2149b53070
1 file changed
+15
@@ -0,0 +1,15 @@
export NAME=cozyplane-cilium-crds
export NAMESPACE=cozy-system
include ../../../hack/package.mk
# Pinned to the Cilium release the CRDs were vendored from (byte-identical to
# the upstream files). Keep it in step with the cilium package's upstream
# version when bumping: these CRDs exist so stock charts' CiliumNetworkPolicy
# manifests apply on the cozyplane variant, and a schema older than what those
# charts emit would reject their objects.
CILIUM_VERSION=1.19.5
update:
curl -sSL https://raw.githubusercontent.com/cilium/cilium/v$(CILIUM_VERSION)/pkg/k8s/apis/cilium.io/client/crds/v2/ciliumnetworkpolicies.yaml -o templates/ciliumnetworkpolicies.yaml
curl -sSL https://raw.githubusercontent.com/cilium/cilium/v$(CILIUM_VERSION)/pkg/k8s/apis/cilium.io/client/crds/v2/ciliumclusterwidenetworkpolicies.yaml -o templates/ciliumclusterwidenetworkpolicies.yaml