mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-02-05 00:15:51 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new version (2.0.0) for the Kamaji project with updated dependencies and configuration options. - Added support for a new `kamaji-etcd` dependency, enhancing datastore functionality. - Implemented comprehensive access control with a new Kubernetes ClusterRole. - Added webhook configurations for validating and mutating resources. - **Bug Fixes** - Streamlined configuration by removing outdated etcd settings and consolidating datastore configurations. - **Documentation** - Updated README.md to reflect new version and configuration options. - **Chores** - Simplified Dockerfile by using a pre-built image instead of a multi-stage build process. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
29 lines
1.1 KiB
Makefile
29 lines
1.1 KiB
Makefile
export NAME=kamaji
|
|
export NAMESPACE=cozy-$(NAME)
|
|
|
|
include ../../../scripts/common-envs.mk
|
|
include ../../../scripts/package.mk
|
|
|
|
update:
|
|
rm -rf charts
|
|
tag=$$(git ls-remote --tags --sort="v:refname" https://github.com/clastix/kamaji | grep refs/tags/edge- | awk -F'[/^]' 'END{print $$3}') && \
|
|
curl -sSL https://github.com/clastix/kamaji/archive/refs/tags/$${tag}.tar.gz | \
|
|
tar -xzvf - --strip 1 kamaji-$${tag}/charts && \
|
|
sed -i "/^FROM clastix/ s|:.*|:$${tag}|g" images/kamaji/Dockerfile
|
|
|
|
image:
|
|
docker buildx build images/kamaji \
|
|
--provenance false \
|
|
--tag $(REGISTRY)/kamaji:$(call settag,$(TAG)) \
|
|
--cache-from type=registry,ref=$(REGISTRY)/kamaji:latest \
|
|
--cache-to type=inline \
|
|
--metadata-file images/kamaji.json \
|
|
--push=$(PUSH) \
|
|
--label "org.opencontainers.image.source=https://github.com/aenix-io/cozystack"
|
|
--load=$(LOAD)
|
|
REPOSITORY="$(REGISTRY)/kamaji" \
|
|
yq -i '.kamaji.image.repository = strenv(REPOSITORY)' values.yaml
|
|
TAG=$(TAG)@$$(yq e '."containerimage.digest"' images/kamaji.json -o json -r) \
|
|
yq -i '.kamaji.image.tag = strenv(TAG)' values.yaml
|
|
rm -f images/kamaji.json
|