-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (35 loc) · 1.58 KB
/
Copy pathMakefile
File metadata and controls
45 lines (35 loc) · 1.58 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
35
36
37
38
39
40
41
42
43
44
45
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
prepare-airgapped-cluster: ## for airgapped-tests
./scripts/dev/airgapped/prepare_airgapped_cluster.sh
.PHONY: cluster
cluster: ## creates a k3d cluster suitable for GOP
./scripts/init-cluster.sh $(RUN_ARGS)
.PHONY: keycloak
keycloak: ## installs local Keycloak test instance for OIDC
bash ./scripts/keycloak/install-keycloak.sh
.PHONY: prepare-two-registries
prepare-two-registries: ## for testing with multiple registries
./scripts/dev/registries/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"
.PHONY: gop-config-in-secrets
gop-config-in-secrets: ## creates a local cluster with test credentials stored in Kubernetes Secrets
./scripts/init-cluster.sh
kubectl create namespace gop-job --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -f ./scripts/dev/secrets/gop-secrets.yaml
echo "created cluster with GOP test credentials in Kubernetes Secrets"
%:
@: