mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-08 21:14:56 +09:00
Re-vendors the opencost chart from 1.41.0 to 2.5.23 (app 1.111.0 -> 1.120.3), crossing the 1.x -> 2.x chart-major boundary, picking up the published security fixes. The major bump's values-schema changes are additive (new clusterName, pdb, extraObjects keys; no removals), so the cozystack overrides (external prometheus vmselect endpoint, customPricing) stay valid -- confirmed by render. Pins the update target to --version 2.5.23 and drops the upstream chart's own snapshot-based helm-unittest suite (it fails in the cozystack render context). Adds cozystack helm-unittest coverage: pins the image and the prometheus endpoint wiring. Adaptations: - charts/: re-vendored via make update (helm pull opencost --version 2.5.23; upstream tests removed) - Makefile: pin --version 2.5.23; add test target; strip upstream chart tests - tests/opencost_test.yaml: new helm-unittest coverage Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
18 lines
576 B
Makefile
18 lines
576 B
Makefile
export NAME=opencost
|
|
export NAMESPACE=cozy-$(NAME)
|
|
|
|
include ../../../hack/package.mk
|
|
|
|
test:
|
|
helm unittest .
|
|
|
|
update:
|
|
rm -rf charts
|
|
helm repo add opencost-charts https://opencost.github.io/opencost-helm-chart
|
|
helm repo update opencost-charts
|
|
helm pull opencost-charts/opencost --untar --untardir charts --version 2.5.23
|
|
# Drop the upstream chart's own helm-unittest suite: it is snapshot-based
|
|
# and fails in the cozystack render context (configsChecksum can't resolve
|
|
# the custom-pricing configmap glob). cozystack ships its own tests/.
|
|
rm -rf charts/opencost/tests
|