forked from kubernetes-sigs/descheduler
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.28 KB
/
Makefile
File metadata and controls
48 lines (38 loc) · 1.28 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
46
47
48
all: build
.PHONY: all
GO=GO111MODULE=on GOFLAGS=-mod=vendor go
# Version to use when bumping Dockerfile versions
VERSION ?= 5.4.0
# Include the library makefile
include $(addprefix ./vendor/github.com/openshift/build-machinery-go/make/, \
golang.mk \
targets/openshift/images.mk \
)
# Exclude e2e tests from unit testing
GO_TEST_PACKAGES :=./pkg/... ./cmd/...
GO_BUILD_FLAGS :=-tags strictfipsruntime
GO_LD_EXTRAFLAGS :=-X sigs.k8s.io/descheduler/pkg/version.version=v20260219-v0.35.0
IMAGE_REGISTRY :=registry.svc.ci.openshift.org
# This will call a macro called "build-image" which will generate image specific targets based on the parameters:
# $0 - macro name
# $1 - target name
# $2 - image ref
# $3 - Dockerfile path
# $4 - context directory for image build
$(call build-image,descheduler,$(CI_IMAGE_REGISTRY)/ocp/4.12:descheduler,./images/ci/Dockerfile,.)
test-e2e: GO_TEST_PACKAGES :=./test/e2e
test-e2e: GO_TEST_FLAGS :=-v
test-e2e: test-unit
.PHONY: test-e2e
update-version:
./hack/update-version.sh $(VERSION)
.PHONY: update-version
verify-version:
./hack/verify-version.sh $(VERSION)
.PHONY: verify-version
# Extend the verify target from vendor/github.com/openshift/build-machinery-go
verify: verify-version
clean:
$(RM) -r ./apiserver.local.config
$(RM) -r ./_output
.PHONY: clean