Files
cozystack/packages/system/kilo/Makefile
Aleksei Sviridkin 1b4c8b6246 chore(kilo): rebuild kilo image on current upstream and alpine 3.24
Rebuilds the first-party kilo image to clear the published libpng advisories
carried by the stale pinned layers and to pick up current upstream:

- ARG VERSION: squat/kilo main fbce60d8 -> 944dff57 (the rebuild also refreshes
  the golang:1.25 stdlib compiled into the kg / kgctl binaries)
- runtime and cni base: alpine 3.23 -> 3.24, which clears the libpng16-16 /
  libpng advisories pulled in through the graphviz / font-noto chain
- CNI plugins: v1.9.0 -> v1.9.1
- values.yaml: re-pinned to the rebuilt multi-arch digest; the tag handle moves
  from latest to v<version> to match the sibling first-party images

The in-repo cross-mesh-granularity feature patch still applies cleanly on the
new HEAD and is verified in the built binary (kg --mesh-granularity lists
`cross`). Adds the package's first helm-unittest coverage, pinning the image
ref and the default mesh-arg wiring.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-06-23 14:39:53 +03:00

25 lines
743 B
Makefile

export NAME=kilo
export NAMESPACE=cozy-$(NAME)
include ../../../hack/common-envs.mk
include ../../../hack/package.mk
test:
helm unittest .
update:
sha=$$(git ls-remote https://github.com/squat/kilo refs/heads/main | awk '{print $$1}') && \
sed -i "/ARG VERSION/ s|=.*|=$${sha}|g" images/kilo/Dockerfile
image:
docker buildx build images/kilo \
$(call image-tags,kilo,v$(COZYSTACK_VERSION)) \
$(call cache-args,kilo) \
--metadata-file images/kilo.json \
$(BUILDX_ARGS)
REPOSITORY="$(REGISTRY)/kilo" \
yq -i '.kilo.image.repository = strenv(REPOSITORY)' values.yaml
TAG=$(IMAGE_TAG)@$$(yq e '."containerimage.digest"' images/kilo.json -o json -r) \
yq -i '.kilo.image.tag = strenv(TAG)' values.yaml
rm -f images/kilo.json