forked from openshift/ptp-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (34 loc) · 972 Bytes
/
Makefile
File metadata and controls
41 lines (34 loc) · 972 Bytes
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
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif
all: bin
deps-update:
go mod tidy && \
go mod vendor
bin:
hack/build.sh
image:
docker build -t openshift.io/ptp-operator -f Dockerfile.rhel7 .
clean:
rm -rf build/_output/bin/ptp-operator
deploy-setup:
hack/deploy-setup.sh
undeploy:
hack/undeploy.sh
functests:
hack/run-functests.sh
generate-client:
bash vendor/k8s.io/code-generator/generate-groups.sh client \
github.com/openshift/ptp-operator/pkg/client \
github.com/openshift/ptp-operator/pkg/apis \
ptp:v1 --go-header-file hack/boilerplate.go.txt
generate: operator-sdk
$(GOBIN)/operator-sdk generate k8s
$(GOBIN)/operator-sdk generate crds
# find or download controller-gen
# download controller-gen if necessary
operator-sdk:
go install ./vendor/github.com/operator-framework/operator-sdk/cmd/operator-sdk