-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 1.02 KB
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SHELL := /bin/bash
.ONESHELL:
.SHELLFLAGS = -ec
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
help:
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | \
awk -F '##' '{printf " %-15s %s\n", $$1, $$2}'
.PHONY:
prepare-airgapped-cluster: ## for airgapped-tests
./scripts/dev/prepare_airgapped_cluster.sh
.PHONY:
cluster: ## creates a k3d cluster suitable for GOP
./scripts/init-cluster.sh $(RUN_ARGS)
.PHONY:
prepare-two-registries: ## for testing with multiple registries
./scripts/dev/prepare_two_registries.sh
.PHONY: install-operator
install-operator: ## installs argocd operator via kubectl and kustomize
kubectl apply -k github.com/argoproj-labs/argocd-operator/config/default?ref=release-0.17 --server-side --force-conflicts
kubectl apply -k github.com/argoproj-labs/argocd-operator/config/crd?ref=release-0.17 --server-side --force-conflicts
.PHONY: image
image: ## builds the docker image for local testing
docker buildx prune -f && docker build . -t local/gop
echo "created docker image local/gop"
%:
@: