From 2149b530709c3543a189b3d239e03b8b21dbc253 Mon Sep 17 00:00:00 2001 From: Timofei Larkin Date: Fri, 2 Oct 2026 19:50:58 +0300 Subject: [PATCH] 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 --- packages/system/cozyplane-cilium-crds/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/system/cozyplane-cilium-crds/Makefile diff --git a/packages/system/cozyplane-cilium-crds/Makefile b/packages/system/cozyplane-cilium-crds/Makefile new file mode 100644 index 000000000..385fba4d0 --- /dev/null +++ b/packages/system/cozyplane-cilium-crds/Makefile @@ -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