Files
cozystack/packages/system/multus/patches/customize-deployment.patch
T
Aleksei Sviridkin c50b73fd9c chore(packages/system/multus): bump multus-cni to v4.3.0
Re-vendors the multus-cni thick-mode daemonset from upstream v4.2.3 to v4.3.0
and rebuilds the cozystack image (multi-arch, golang:1.26 builder; v4.3.0's
go.mod and the published security fixes warrant the stdlib bump from 1.24). The
fix-del-without-cache and customize-deployment patches both re-apply cleanly to
v4.3.0. The rebuilt image is pinned by digest in the daemonset.

Folds the previously hand-edited `multusMasterCNI: "05-cilium.conflist"`
CNI-ordering fix into customize-deployment.patch so it survives every make
update (it was a raw daemonset edit that the re-vendor would otherwise wipe,
re-introducing the kube-ovn-before-cilium startup race).

Adds helm-unittest coverage (the package shipped none): asserts the daemonset
runs the cozystack-built image and that the daemon-config pins multusMasterCNI
to the cilium conflist.

Adaptations:
- images/multus-cni/Dockerfile: builder golang:1.24 -> 1.26, ARG VERSION v4.2.3 -> v4.3.0
- templates/multus-daemonset-thick.yml: re-vendored v4.3.0 + customize patch; pin rebuilt multi-arch image
- patches/customize-deployment.patch: carry the multusMasterCNI CNI-ordering fix
- Makefile: add test target
- tests/multus_test.yaml: new helm-unittest coverage

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-06-23 14:39:14 +03:00

56 lines
1.3 KiB
Diff

--- a/packages/system/multus/templates/multus-daemonset-thick.yml
+++ b/packages/system/multus/templates/multus-daemonset-thick.yml
@@ -94,19 +94,19 @@
subjects:
- kind: ServiceAccount
name: multus
- namespace: kube-system
+ namespace: cozy-multus
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: multus
- namespace: kube-system
+ namespace: cozy-multus
---
kind: ConfigMap
apiVersion: v1
metadata:
name: multus-daemon-config
- namespace: kube-system
+ namespace: cozy-multus
labels:
tier: node
app: multus
@@ -120,14 +120,15 @@
"cniConfigDir": "/host/etc/cni/net.d",
"multusAutoconfigDir": "/host/etc/cni/net.d",
"multusConfigFile": "auto",
+ "multusMasterCNI": "05-cilium.conflist",
"socketDir": "/host/run/multus/"
}
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
- name: kube-multus-ds
- namespace: kube-system
+ name: cozy-multus
+ namespace: cozy-multus
labels:
tier: node
app: multus
@@ -160,10 +161,9 @@
resources:
requests:
cpu: "100m"
- memory: "50Mi"
+ memory: "100Mi"
limits:
cpu: "100m"
- memory: "50Mi"
securityContext:
privileged: true
terminationMessagePolicy: FallbackToLogsOnError