Skip to content

Commit

Permalink
Cleanup makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke committed Apr 9, 2024
1 parent f0401af commit 900e66c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 39 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ include ${PROJECT_ROOT}/hack/help.mk
include ${PROJECT_ROOT}/hack/k3d.mk

##@ Installation
.PHONY: install-serverless-main
install-serverless-main: ## Install dockerregistry with operator using default dockerregistry cr
.PHONY: install-dockerregistry-main
install-dockerregistry-main: ## Install dockerregistry with operator using default dockerregistry cr
make -C ${OPERATOR_ROOT} deploy-main apply-default-dockerregistry-cr check-dockerregistry-installation

.PHONY: install-serverless-custom-operator
install-serverless-custom-operator: ## Install dockerregistry with operator from IMG env using default dockerregistry cr
.PHONY: install-dockerregistry-custom-operator
install-dockerregistry-custom-operator: ## Install dockerregistry with operator from IMG env using default dockerregistry cr
$(call check-var,IMG)
make -C ${OPERATOR_ROOT} deploy apply-default-dockerregistry-cr check-dockerregistry-installation

.PHONY: install-serverless-latest-release
install-serverless-latest-release: ## Install serverless from latest release
.PHONY: install-dockerregistry-latest-release
install-dockerregistry-latest-release: ## Install dockerregistry from latest release
kubectl create namespace kyma-system || true
kubectl apply -f https://github.com/kyma-project/serverless-manager/releases/latest/download/serverless-operator.yaml
kubectl apply -f https://github.com/kyma-project/serverless-manager/releases/latest/download/dockerregistry-operator.yaml
kubectl apply -f https://github.com/kyma-project/serverless-manager/releases/latest/download/default-dockerregistry-cr.yaml -n kyma-system
make -C ${OPERATOR_ROOT} check-dockerregistry-installation

.PHONY: remove-dockerregistry
remove-dockerregistry: ## Remove dockerregistry-cr and serverless operator
remove-dockerregistry: ## Remove dockerregistry-cr and dockerregistry operator
make -C ${OPERATOR_ROOT} remove-dockerregistry undeploy

.PHONY: run
run: create-k3d install-serverless-main ## Create k3d cluster and install serverless from main
run: create-k3d install-dockerregistry-main ## Create k3d cluster and install dockerregistry from main

check-var = $(if $(strip $($1)),,$(error "$1" is not defined))

30 changes: 0 additions & 30 deletions hack/Makefile

This file was deleted.

0 comments on commit 900e66c

Please sign in to comment.