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 ```
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
.DEFAULT_GOAL=help
|
|
.PHONY=help show diff apply delete update image
|
|
|
|
help: ## Show this help.
|
|
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
|
|
|
show: check ## Show output of rendered templates
|
|
cozyhr show -n $(NAMESPACE) $(NAME)
|
|
|
|
apply: check suspend ## Apply Helm release to a Kubernetes cluster
|
|
cozyhr apply -n $(NAMESPACE) $(NAME)
|
|
|
|
diff: check ## Diff Helm release against objects in a Kubernetes cluster
|
|
cozyhr diff -n $(NAMESPACE) $(NAME)
|
|
|
|
suspend: check ## Suspend reconciliation for an existing Helm release
|
|
cozyhr suspend -n $(NAMESPACE) $(NAME)
|
|
|
|
resume: check ## Resume reconciliation for an existing Helm release
|
|
cozyhr resume -n $(NAMESPACE) $(NAME)
|
|
|
|
delete: check suspend ## Delete Helm release from a Kubernetes cluster
|
|
cozyhr delete -n $(NAMESPACE) $(NAME)
|
|
|
|
check:
|
|
@if [ -z "$(NAME)" ]; then echo "env NAME is not set!" >&2; exit 1; fi
|
|
@if [ -z "$(NAMESPACE)" ]; then echo "env NAMESPACE is not set!" >&2; exit 1; fi
|
|
|
|
clean:
|
|
rm -rf charts/
|
|
|
|
%-update:
|
|
helm repo add $(REPO_NAME) $(REPO_URL)
|
|
helm repo update $(REPO_NAME)
|
|
helm pull $(REPO_NAME)/$(CHART_NAME) --untar --untardir charts --version "$(CHART_VERSION)"
|