mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 14:02:56 +09:00
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
export NAME=metallb
|
|
export NAMESPACE=cozy-$(NAME)
|
|
|
|
include ../../../hack/common-envs.mk
|
|
include ../../../hack/package.mk
|
|
|
|
update:
|
|
rm -rf charts
|
|
helm repo add metallb https://metallb.github.io/metallb
|
|
helm repo update metallb
|
|
helm pull metallb/metallb --version 0.16.1 --untar --untardir charts
|
|
|
|
test:
|
|
helm unittest .
|
|
|
|
image-controller image-speaker:
|
|
$(eval TARGET := $(subst image-,,$@))
|
|
$(eval VERSION := $(shell yq '.appVersion' charts/metallb/Chart.yaml))
|
|
docker buildx build images/metallb \
|
|
--platform=linux/amd64 \
|
|
--target $(TARGET) \
|
|
--build-arg VERSION=$(VERSION) \
|
|
$(call image-tags,metallb-$(TARGET),$(VERSION)) \
|
|
$(call cache-args,metallb-$(TARGET)) \
|
|
--metadata-file images/$(TARGET).json \
|
|
$(BUILDX_ARGS)
|
|
REPOSITORY="$(REGISTRY)/metallb-$(TARGET)" \
|
|
yq -i '.metallb.$(TARGET).image.repository = strenv(REPOSITORY)' values.yaml
|
|
TAG=$(IMAGE_TAG)@$$(yq e '."containerimage.digest"' images/$(TARGET).json -o json -r) \
|
|
yq -i '.metallb.$(TARGET).image.tag = strenv(TAG)' values.yaml
|
|
rm -f images/$(TARGET).json
|
|
|
|
image: image-controller image-speaker
|