-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KOGITO-9417] Introduce workflowproj-apiserver
Signed-off-by: Ricardo Zanini <[email protected]>
- Loading branch information
1 parent
27c0542
commit dbfe4cc
Showing
128 changed files
with
6,631 additions
and
624 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
ifeq (,$(shell go env GOBIN)) | ||
GOBIN=$(shell go env GOPATH)/bin | ||
else | ||
GOBIN=$(shell go env GOBIN) | ||
endif | ||
|
||
## Tool binaries | ||
CLIENT_GEN ?= $(GOBIN)/client-gen | ||
CONVERSION_GEN ?= $(GOBIN)/conversion-gen | ||
|
||
## Tool versions | ||
CLIENT_GEN_VERSION ?= v0.27.3 | ||
CONVERSION_GEN_VERSION ?= v0.27.3 | ||
|
||
.PHONY: client-gen | ||
client-gen: $(CLIENT_GEN) ## Download client-gen locally if necessary. | ||
$(CLIENT_GEN): $(GOBIN) | ||
test -s $(GOBIN)/client-gen || GO111MODULE=on go install k8s.io/code-generator/cmd/client-gen@$(CLIENT_GEN_VERSION) | ||
|
||
.PHONY: conversion-gen | ||
conversion-gen: $(CONVERSION_GEN) | ||
$(CONVERSION_GEN): $(GOBIN) | ||
test -s $(GOBIN)/conversion-gen || GO111MODULE=on go install k8s.io/code-generator/cmd/conversion-gen@$(CONVERSION_GEN_VERSION) | ||
|
||
.PHONY: generate | ||
generate: client-gen conversion-gen ## Generate code | ||
$(CLIENT_GEN) --go-header-file="../hack/boilerplate.go.txt" --clientset-name="clientset" --input-base="github.com/apache/incubator-kie-kogito-serverless-operator/api" --input="sonataflow/v1alpha08" --output-package="github.com/apache/incubator-kie-kogito-serverless-operator/api/generated" | ||
#$(CONVERSION_GEN) --go-header-file="../hack/boilerplate.go.txt" -O zz_generated.conversion --output-base="github.com/apache/incubator-kie-kogito-serverless-operator/api" --input-dirs="github.com/apache/incubator-kie-kogito-serverless-operator/api" | ||
|
||
.PHONY: test | ||
test: | ||
go test $(shell go list ./... | grep -v /test/) -coverprofile cover.out |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.