mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-08 21:14:56 +09:00
Every foundationdb/fdb-kubernetes-monitor 7.1.x tag is a single amd64 image, so on arm64 the operator's 7.1 init container fails with exec format error and the operator pod never starts. No multi-arch 7.1 monitor exists to bump to, and upstream already swaps its own 7.1 client for 7.3 when building the operator for arm64. The vendoring recipe now deletes the 7.1 entry from the upstream chart values, and the committed chart matches its output. A null override in the package values was rejected: Helm 4.2 and later ignore a null the parent chart sets for a subchart key when no user-supplied values reach that subchart (helm/helm#32132), and the platform passes this package none. helm-unittest renders with Helm 3, so the override would stop working on a Flux bump without any test noticing. The app defaults to 7.3.63, which keeps its init container, as does 7.4. BREAKING CHANGE: the operator no longer carries the 7.1 fdbcli and client library, so it can neither manage nor upgrade a FoundationDB cluster pinned to a 7.1.x version. Upgrade such clusters to 7.3 before installing this release. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
28 lines
1.4 KiB
Makefile
28 lines
1.4 KiB
Makefile
export NAME=foundationdb-operator
|
|
export NAMESPACE=cozy-$(NAME)
|
|
|
|
include ../../../hack/package.mk
|
|
|
|
test:
|
|
helm unittest .
|
|
|
|
update:
|
|
rm -rf charts tmp-repo
|
|
git clone --depth 1 --branch v2.30.0 https://github.com/FoundationDB/fdb-kubernetes-operator.git tmp-repo
|
|
mkdir -p charts
|
|
cp -r tmp-repo/charts/fdb-operator charts/
|
|
# Remove symlinked CRDs and replace with actual files
|
|
rm -f charts/fdb-operator/crds/apps.foundationdb.org_foundationdbbackups.yaml
|
|
rm -f charts/fdb-operator/crds/apps.foundationdb.org_foundationdbclusters.yaml
|
|
rm -f charts/fdb-operator/crds/apps.foundationdb.org_foundationdbrestores.yaml
|
|
cp tmp-repo/config/crd/bases/apps.foundationdb.org_foundationdbbackups.yaml charts/fdb-operator/crds/
|
|
cp tmp-repo/config/crd/bases/apps.foundationdb.org_foundationdbclusters.yaml charts/fdb-operator/crds/
|
|
cp tmp-repo/config/crd/bases/apps.foundationdb.org_foundationdbrestores.yaml charts/fdb-operator/crds/
|
|
rm -rf tmp-repo
|
|
rm -rf charts/fdb-operator/charts
|
|
# Every fdb-kubernetes-monitor 7.1.x image is amd64-only, so the 7.1 init
|
|
# container keeps the operator from starting on arm64; upstream itself
|
|
# swaps its 7.1 client for 7.3 there. A null in the package values would
|
|
# not do: Helm 4.2 and later ignore it when no user-supplied values reach
|
|
# the subchart (helm/helm#32132), and the platform supplies none.
|
|
yq -i 'del(.initContainers."7.1")' charts/fdb-operator/values.yaml
|