Signed-off-by: Andrei Kvapil <kvapss@gmail.com> <!-- Thank you for making a contribution! Here are some tips for you: - Start the PR title with the [label] of Cozystack component: - For system components: [platform], [system], [linstor], [cilium], [kube-ovn], [dashboard], [cluster-api], etc. - For managed apps: [apps], [tenant], [kubernetes], [postgres], [virtual-machine] etc. - For development and maintenance: [tests], [ci], [docs], [maintenance]. - If it's a work in progress, consider creating this PR as a draft. - Don't hesistate to ask for opinion and review in the community chats, even if it's still a draft. - Add the label `backport` if it's a bugfix that needs to be backported to a previous version. --> ## What this PR does This PR renames cozypkg to cozyhr https://github.com/cozystack/cozyhr ### Release note <!-- Write a release note: - Explain what has changed internally and for users. - Start with the same [label] as in the PR title - Follow the guidelines at https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md. --> ```release-note [installer,dx] Rename cozypkg to cozyhr ```
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
NAME=platform
|
|
NAMESPACE=cozy-system
|
|
|
|
include ../../../scripts/common-envs.mk
|
|
|
|
show:
|
|
cozyhr show -n $(NAMESPACE) $(NAME) --plain
|
|
|
|
apply:
|
|
cozyhr show -n $(NAMESPACE) $(NAME) --plain | kubectl apply -f-
|
|
kubectl delete helmreleases.helm.toolkit.fluxcd.io -l cozystack.io/marked-for-deletion=true -A
|
|
|
|
reconcile: apply
|
|
|
|
namespaces-show:
|
|
cozyhr show -n $(NAMESPACE) $(NAME) --plain -s templates/namespaces.yaml
|
|
|
|
namespaces-apply:
|
|
cozyhr show -n $(NAMESPACE) $(NAME) --plain -s templates/namespaces.yaml | kubectl apply -f-
|
|
|
|
diff:
|
|
cozyhr show -n $(NAMESPACE) $(NAME) --plain | kubectl diff -f-
|
|
|
|
image: image-assets
|
|
image-assets:
|
|
docker buildx build -f images/cozystack-assets/Dockerfile ../../.. \
|
|
--tag $(REGISTRY)/cozystack-assets:$(call settag,$(TAG)) \
|
|
--cache-from type=registry,ref=$(REGISTRY)/cozystack-assets:latest \
|
|
--cache-to type=inline \
|
|
--metadata-file images/cozystack-assets.json \
|
|
$(BUILDX_ARGS)
|
|
IMAGE="$(REGISTRY)/cozystack-assets:$(call settag,$(TAG))@$$(yq e '."containerimage.digest"' images/cozystack-assets.json -o json -r)" \
|
|
yq -i '.assets.image = strenv(IMAGE)' values.yaml
|
|
rm -f images/cozystack-assets.json
|