mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-03 18:47:04 +09:00
Re-vendors the FoundationDB Kubernetes operator chart from v2.13.0 to v2.30.0 (chart 0.2.0 -> 0.3.0), 17 minor releases forward, picking up the published security fixes. The CRD changes (FoundationDBCluster/Backup/Restore) are additive only -- new fields, no property removals (only the controller-gen and foundationdb.org/release version annotations change) -- so the apps/foundationdb FDB CR stays valid against the new operator. cozystack overrides (globalMode, nodeReadClusterRole) remain valid. The one removed CLI flag (genericclioption) is not used by cozystack; the chart's rbac role binding is now unconditional (previously globalMode-gated), a no-op for cozystack which sets globalMode=true. Adds helm-unittest coverage (the package shipped none): pins the operator image. Adaptations: - Makefile: clone --branch v2.13.0 -> v2.30.0; add test target - charts/: re-vendored (operator v2.30.0 + additive CRD schema) - tests/fdb-operator_test.yaml: new helm-unittest image pin Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
22 lines
979 B
Makefile
22 lines
979 B
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
|