mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
address-controller v0.3.0 gives IPAddressClass a status: the class's provisioner reports the loadBalancerClass a Service consuming one of its claims must carry in status.loadBalancerClass, and sets an Accepted condition for the class's generation. The value means something only while Accepted is True, and auto-claim waits for it. metallb-iad v0.3.0 writes that status (its --lb-class, empty for the cluster default), sets Accepted to False with reason PoolRefused when the class's pool is unusable, and requires the v0.3.0 CRD, so the two move together. Cozystack runs metallb-iad with an empty --lb-class, and its classes name a pool, so this upgrades in place. The driver's ClusterRole and binding are named after the release namespace, which Helm handles on upgrade. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
24 lines
842 B
Makefile
24 lines
842 B
Makefile
export NAME=address-controller
|
|
export NAMESPACE=cozy-$(NAME)
|
|
|
|
include ../../../hack/package.mk
|
|
|
|
# Upstream publishes no chart artifact, so the chart is taken from the
|
|
# repository at a pinned commit. Bump together with the image in values.yaml,
|
|
# which must carry the same controller code: upstream's release job tags each
|
|
# main build as main-<short sha>, and the digest is in that job's log or from
|
|
# `crane digest`.
|
|
ADDRESS_CONTROLLER_REPO ?= https://github.com/cozystack/address-controller.git
|
|
ADDRESS_CONTROLLER_REF ?= 10c701bd74fd085cf50968c756a2b93fd028954f
|
|
|
|
test:
|
|
helm unittest .
|
|
|
|
update:
|
|
rm -rf charts tmp-repo
|
|
git clone --filter=tree:0 --no-checkout $(ADDRESS_CONTROLLER_REPO) tmp-repo
|
|
git -C tmp-repo checkout --quiet $(ADDRESS_CONTROLLER_REF)
|
|
mkdir -p charts
|
|
cp -r tmp-repo/chart/address-controller charts/
|
|
rm -rf tmp-repo
|