generated from AlexsJones/KubeOps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (23 loc) · 850 Bytes
/
Makefile
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
VERSION=`cat VERSION`
.PHONY: publish docker install up down all test clean
all: docker publish install
rename:
gomove github.com/AlexsJones/kubeops $(NAME)
run-builtin-example:
go run examples/builtin/main.go --kubeconfig=$(HOME)/.kube/config
run-crd-example:
go run examples/crd/main.go --kubeconfig=$(HOME)/.kube/config
up:
kind create cluster --name=kind
down:
kind delete cluster --name=kind
publish:
kind load docker-image kubeops:$(VERSION) --name=kind
docker:
docker build -t kubeops:$(VERSION) .
install:
cd helm && helm install . --generate-name && cd ../
delete:
helm ls --all --short | xargs -L1 helm delete
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'