-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathMakefile.core.mk
More file actions
54 lines (41 loc) · 2.77 KB
/
Copy pathMakefile.core.mk
File metadata and controls
54 lines (41 loc) · 2.77 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
49
50
51
52
53
54
# Copyright Istio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
repo_root = $(shell git rev-parse --show-toplevel)
lint: lint-all
fmt: format-go tidy-go
test:
@go test -race ./...
@go test -race ./... -- -prowPath=../aws/config.yaml -jobPath=../aws/jobs.yaml
@(cd tools/prowgen; go test -race ./...)
@(cd authentikos; go test -race ./...)
gen: generate-config generate-config-aws fmt mirror-licenses
gen-check: gen check-clean-repo
# Generate the canonical (GKE) job config. Jobs are cloud-agnostic; this tree is the source of truth.
generate-config:
@rm -fr prow/gcp/cluster/jobs/*/*/*.gen.yaml
@(cd tools/prowgen/cmd/prowgen; go run main.go --input-dir=$(repo_root)/prow/gcp/config/jobs --output-dir=$(repo_root)/prow/gcp/cluster/jobs write)
@go run tools/prowtrans/cmd/prowtrans/main.go --requirement-presets=./prow/gcp/config/jobs/.base.yaml --configs=./prow/gcp/config/istio-private_jobs --input=./prow/gcp/config/jobs
@go run tools/prowtrans/cmd/prowtrans/main.go --requirement-presets=./prow/gcp/config/jobs/.base.yaml --configs=./prow/gcp/config/experimental --input=./prow/gcp/config/jobs
# Mirror the canonical job config into the EKS (AWS) cluster tree consumed by the -aws deploy targets.
# EKS has no separate arm cluster: arm64 is a node group inside the default build cluster (prow-build).
generate-config-aws: generate-config
@rm -fr prow/aws/cluster/jobs/*/*/*.gen.yaml
@(cd tools/prowgen/cmd/prowgen; go run main.go --input-dir=$(repo_root)/prow/aws/config/jobs --output-dir=$(repo_root)/prow/aws/cluster/jobs write)
@go run tools/prowtrans/cmd/prowtrans/main.go --requirement-presets=./prow/aws/config/jobs/.base.yaml --configs=./prow/aws/config/istio-private_jobs --input=./prow/aws/config/jobs
@go run tools/prowtrans/cmd/prowtrans/main.go --requirement-presets=./prow/aws/config/jobs/.base.yaml --configs=./prow/aws/config/experimental --input=./prow/aws/config/jobs
diff-config:
@(cd tools/prowgen/cmd/prowgen; GOARCH=$(GOARCH) GOOS=$(GOOS) go run main.go --input-dir=$(repo_root)/prow/gcp/config/jobs --output-dir=$(repo_root)/prow/gcp/cluster/jobs diff)
diff-config-aws:
@(cd tools/prowgen/cmd/prowgen; GOARCH=$(GOARCH) GOOS=$(GOOS) go run main.go --input-dir=$(repo_root)/prow/aws/config/jobs --output-dir=$(repo_root)/prow/aws/cluster/jobs diff)
include common/Makefile.common.mk