-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Simon Behar <[email protected]>
- Loading branch information
Showing
316 changed files
with
2,273 additions
and
2,260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,22 +79,22 @@ ALWAYS_OFFLOAD_NODE_STATUS := true | |
endif | ||
|
||
override LDFLAGS += \ | ||
-X github.com/argoproj/argo.version=$(VERSION) \ | ||
-X github.com/argoproj/argo.buildDate=${BUILD_DATE} \ | ||
-X github.com/argoproj/argo.gitCommit=${GIT_COMMIT} \ | ||
-X github.com/argoproj/argo.gitTreeState=${GIT_TREE_STATE} | ||
-X github.com/argoproj/argo/v2.version=$(VERSION) \ | ||
-X github.com/argoproj/argo/v2.buildDate=${BUILD_DATE} \ | ||
-X github.com/argoproj/argo/v2.gitCommit=${GIT_COMMIT} \ | ||
-X github.com/argoproj/argo/v2.gitTreeState=${GIT_TREE_STATE} | ||
|
||
ifeq ($(STATIC_BUILD), true) | ||
override LDFLAGS += -extldflags "-static" | ||
endif | ||
|
||
ifneq ($(GIT_TAG),) | ||
override LDFLAGS += -X github.com/argoproj/argo.gitTag=${GIT_TAG} | ||
override LDFLAGS += -X github.com/argoproj/argo/v2.gitTag=${GIT_TAG} | ||
endif | ||
|
||
ARGOEXEC_PKGS := $(shell echo cmd/argoexec && go list -f '{{ join .Deps "\n" }}' ./cmd/argoexec/ | grep 'argoproj/argo' | cut -c 26-) | ||
CLI_PKGS := $(shell echo cmd/argo && go list -f '{{ join .Deps "\n" }}' ./cmd/argo/ | grep 'argoproj/argo' | cut -c 26-) | ||
CONTROLLER_PKGS := $(shell echo cmd/workflow-controller && go list -f '{{ join .Deps "\n" }}' ./cmd/workflow-controller/ | grep 'argoproj/argo' | cut -c 26-) | ||
ARGOEXEC_PKGS := $(shell echo cmd/argoexec && go list -f '{{ join .Deps "\n" }}' ./cmd/argoexec/ | grep 'argoproj/argo/v2/' | cut -c 29-) | ||
CLI_PKGS := $(shell echo cmd/argo && go list -f '{{ join .Deps "\n" }}' ./cmd/argo/ | grep 'argoproj/argo/v2/' | cut -c 29-) | ||
CONTROLLER_PKGS := $(shell echo cmd/workflow-controller && go list -f '{{ join .Deps "\n" }}' ./cmd/workflow-controller/ | grep 'argoproj/argo/v2/' | cut -c 29-) | ||
MANIFESTS := $(shell find manifests -mindepth 2 -type f) | ||
E2E_MANIFESTS := $(shell find test/e2e/manifests -mindepth 2 -type f) | ||
E2E_EXECUTOR ?= pns | ||
|
@@ -132,6 +132,8 @@ define protoc | |
--grpc-gateway_out=logtostderr=true:${GOPATH}/src \ | ||
--swagger_out=logtostderr=true,fqn_for_swagger_name=true:. \ | ||
$(1) 2>&1 | grep -v 'warning: Import .* is unused' | ||
perl -i -pe 's|argoproj/argo/|argoproj/argo/v2/|g' `echo "$(1)" | sed 's/proto/pb.go/g'` | ||
|
||
endef | ||
# docker_build,image_name,binary_name,marker_file_name | ||
define docker_build | ||
|
@@ -313,12 +315,14 @@ $(GOPATH)/bin/goimports: | |
|
||
pkg/apis/workflow/v1alpha1/generated.proto: $(GOPATH)/bin/go-to-protobuf $(PROTO_BINARIES) $(TYPES) | ||
[ -e vendor ] || go mod vendor | ||
[ -e v2 ] || ln -s . v2 | ||
${GOPATH}/bin/go-to-protobuf \ | ||
--go-header-file=./hack/custom-boilerplate.go.txt \ | ||
--packages=github.com/argoproj/argo/pkg/apis/workflow/v1alpha1 \ | ||
--packages=github.com/argoproj/argo/v2/pkg/apis/workflow/v1alpha1 \ | ||
--apimachinery-packages=+k8s.io/apimachinery/pkg/util/intstr,+k8s.io/apimachinery/pkg/api/resource,k8s.io/apimachinery/pkg/runtime/schema,+k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/api/core/v1,k8s.io/api/policy/v1beta1 \ | ||
--proto-import ./vendor 2>&1 | grep -v 'warning: Import .* is unused' | ||
touch pkg/apis/workflow/v1alpha1/generated.proto | ||
rm -rf v2 | ||
|
||
# this target will also create a .pb.go and a .pb.gw.go file, but in Make 3 we cannot use _grouped target_, instead we must choose | ||
# on file to represent all of them | ||
|
@@ -486,19 +490,24 @@ clean: | |
# swagger | ||
|
||
pkg/apis/workflow/v1alpha1/openapi_generated.go: $(GOPATH)/bin/openapi-gen $(TYPES) | ||
[ -e v2 ] || ln -s . v2 | ||
openapi-gen \ | ||
--go-header-file ./hack/custom-boilerplate.go.txt \ | ||
--input-dirs github.com/argoproj/argo/pkg/apis/workflow/v1alpha1 \ | ||
--output-package github.com/argoproj/argo/pkg/apis/workflow/v1alpha1 \ | ||
--input-dirs github.com/argoproj/argo/v2/pkg/apis/workflow/v1alpha1 \ | ||
--output-package github.com/argoproj/argo/v2/pkg/apis/workflow/v1alpha1 \ | ||
--report-filename pkg/apis/api-rules/violation_exceptions.list | ||
rm -rf v2 | ||
|
||
|
||
# generates many other files (listers, informers, client etc). | ||
pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go: $(TYPES) | ||
[ -e v2 ] || ln -s . v2 | ||
bash ${GOPATH}/pkg/mod/k8s.io/[email protected]/generate-groups.sh \ | ||
"deepcopy,client,informer,lister" \ | ||
github.com/argoproj/argo/pkg/client github.com/argoproj/argo/pkg/apis \ | ||
github.com/argoproj/argo/v2/pkg/client github.com/argoproj/argo/v2/pkg/apis \ | ||
workflow:v1alpha1 \ | ||
--go-header-file ./hack/custom-boilerplate.go.txt | ||
rm -rf v2 | ||
|
||
dist/kubernetes.swagger.json: | ||
@mkdir -p dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.