mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-21 20:23:39 +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>
46 lines
1.8 KiB
YAML
46 lines
1.8 KiB
YAML
suite: cozy-foundationdb-operator image pin
|
|
release:
|
|
name: fdb-operator
|
|
namespace: cozy-foundationdb-operator
|
|
tests:
|
|
- it: renders the operator on the pinned upstream image
|
|
template: charts/fdb-operator/templates/manager/deployment.yaml
|
|
documentSelector:
|
|
path: kind
|
|
value: Deployment
|
|
asserts:
|
|
# Pin the full image. A partial regex would also pass a wrong
|
|
# registry; assert the verbatim upstream reference instead.
|
|
- equal:
|
|
path: spec.template.spec.containers[0].image
|
|
value: foundationdb/fdb-kubernetes-operator:v2.30.0
|
|
# The CVE remediation also rides the init-monitor base images, so
|
|
# pin those too — a silent upstream retag would otherwise slip past.
|
|
# No 7.1 init container: every fdb-kubernetes-monitor 7.1.x tag is
|
|
# a single amd64 manifest, so it keeps the operator off arm64.
|
|
- lengthEqual:
|
|
path: spec.template.spec.initContainers
|
|
count: 2
|
|
- equal:
|
|
path: spec.template.spec.initContainers[0].image
|
|
value: foundationdb/fdb-kubernetes-monitor:7.3.63
|
|
- equal:
|
|
path: spec.template.spec.initContainers[1].image
|
|
value: foundationdb/fdb-kubernetes-monitor:7.4.1
|
|
|
|
- it: renders the operator image in the cozystack globalMode (the shipping config)
|
|
template: charts/fdb-operator/templates/manager/deployment.yaml
|
|
documentSelector:
|
|
path: kind
|
|
value: Deployment
|
|
set:
|
|
# cozystack ships globalMode.enabled=true (package-level values.yaml).
|
|
# The chart default is false, so without this the suite never renders
|
|
# the mode that actually deploys.
|
|
globalMode:
|
|
enabled: true
|
|
asserts:
|
|
- equal:
|
|
path: spec.template.spec.containers[0].image
|
|
value: foundationdb/fdb-kubernetes-operator:v2.30.0
|