mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-28 02:18:36 +00:00
Use https://github.com/cozystack/cozyvalues-gen for three apps: - apps/postgres - apps/virtual-machine - extra/monitoring Changes: - Add type and enum definitions to values.yaml. - Update READMEs with new information. - Update values.schema.json with definitions for children objects, allowing precise UI customization. Add regexp for specific types such as resources: CPU like `500m` and RAM like `4GiB`. - Remove direct injections with `yq` from Makefiles where they're not needed anymore. Co-authored-by: Nick Volynkin <nick.volynkin@gmail.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com> Signed-off-by: Nick Volynkin <nick.volynkin@gmail.com>
26 lines
849 B
Makefile
26 lines
849 B
Makefile
GRAFANA_TAG = $(shell awk '$$1 == "version:" {print $$2}' Chart.yaml)
|
|
|
|
NAME=monitoring
|
|
|
|
include ../../../scripts/common-envs.mk
|
|
include ../../../scripts/package.mk
|
|
|
|
generate:
|
|
cozyvalues-gen -v values.yaml -s values.schema.json -r README.md
|
|
|
|
image:
|
|
docker buildx build images/grafana \
|
|
--provenance false \
|
|
--builder=$(BUILDER) \
|
|
--platform=$(PLATFORM) \
|
|
--tag $(REGISTRY)/grafana:$(call settag,$(GRAFANA_TAG)) \
|
|
--cache-from type=registry,ref=$(REGISTRY)/grafana:latest \
|
|
--cache-to type=inline \
|
|
--metadata-file images/grafana.json \
|
|
--push=$(PUSH) \
|
|
--label "org.opencontainers.image.source=https://github.com/cozystack/cozystack" \
|
|
--load=$(LOAD)
|
|
echo "$(REGISTRY)/grafana:$(call settag,$(GRAFANA_TAG))@$$(yq e '."containerimage.digest"' images/grafana.json -o json -r)" \
|
|
> images/grafana.tag
|
|
rm -f images/grafana.json
|