generated from replicatedhq/krew-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
41 lines (32 loc) · 758 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
OOMER := "https://raw.githubusercontent.com/jdockerty/oomer/main/oomer.yaml"
export GO111MODULE=on
.PHONY: test
test:
go test ./pkg/... ./cmd/... -coverprofile cover.out
.PHONY: bin
bin: fmt vet
go build -o bin/oomd github.com/jdockerty/kubectl-oomd/cmd/plugin
.PHONY: fmt
fmt:
go fmt ./pkg/... ./cmd/...
.PHONY: vet
vet:
go vet ./pkg/... ./cmd/...
.PHONY: kubernetes-deps
kubernetes-deps:
go get k8s.io/client-go@v11.0.0
go get k8s.io/api@kubernetes-1.14.0
go get k8s.io/apimachinery@kubernetes-1.14.0
go get k8s.io/cli-runtime@kubernetes-1.14.0
.PHONY: setup
setup:
make -C setup
.PHONY: force-oom
force-oom:
@kubectl apply -f $(OOMER)
.PHONY: cleanup
cleanup:
@kubectl delete -f $(OOMER)
.PHONY: workflows-local
workflows-local:
@act