forked from kubernetes-sigs/descheduler
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
34 lines (28 loc) · 987 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
all: build
.PHONY: all
GO=GO111MODULE=on GOFLAGS=-mod=vendor go
# 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=v20240119-v0.28.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
clean:
$(RM) -r ./apiserver.local.config
$(RM) -r ./_output
.PHONY: clean