forked from tomkiin/mosquitto-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (33 loc) · 915 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
35
36
37
38
39
40
41
IMG ?= manager:0.0.1
.PHONY: all
all: help
.PHONY: build
build:
go build -o bin/manager main.go
.PHONY: run
run:
go run main.go
.PHONY: docker-build
docker-build:
docker build -t ${IMG} .
.PHONY: docker-push
docker-push:
docker push ${IMG}
.PHONY: deploy
deploy:
kubectl apply -f deploy/manifest.yaml
kubectl -n mosquitto-operator set image deploy mosquitto-operator *=${IMG}
.PHONY: undeploy
undeploy:
kubectl delete -f deploy/manifest.yaml --ignore-not-found=true
.PHONY: help
help:
@echo
@echo ' * help Show help'
@echo ' * build Build Manager binary'
@echo ' * run Run Manager host'
@echo ' * docker-build Build Manager image, IMG=manager:0.0.1 (default)'
@echo ' * docker-push Push Manager image, IMG=manager:0.0.1 (default)'
@echo ' * deploy Deploy Manager in k8s'
@echo ' * undeploy Undeploy Manager in k8s'
@echo