mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
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:
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
|
||||
Reference in new issue
Block a user