-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #734 from chrisdoherty4/feature/transport
Add transport implementation for agent
- Loading branch information
Showing
25 changed files
with
2,648 additions
and
301 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 |
---|---|---|
|
@@ -27,6 +27,7 @@ KUSTOMIZE := $(GO) run sigs.k8s.io/kustomize/kustomize/[email protected] | |
SETUP_ENVTEST := $(GO) run sigs.k8s.io/controller-runtime/tools/[email protected] | ||
GOLANGCI_LINT := $(GO) run github.com/golangci/golangci-lint/cmd/[email protected] | ||
YAMLFMT := $(GO) run github.com/google/yamlfmt/cmd/[email protected] | ||
MOQ := $(GO) run github.com/matryer/[email protected] | ||
|
||
# Installed tools | ||
PROTOC_GEN_GO_GRPC := google.golang.org/grpc/cmd/[email protected] | ||
|
@@ -94,11 +95,18 @@ e2e-test: ## Run e2e tests | |
$(SETUP_ENVTEST) use | ||
source <($(SETUP_ENVTEST) use -p env) && $(GO) test -v ./internal/e2e/... -tags=e2e | ||
|
||
mocks: | ||
$(MOQ) -fmt goimpots -rm -out ./internal/proto/workflow/v2/mock.go ./internal/proto/workflow/v2 WorkflowServiceClient WorkflowService_GetWorkflowsClient | ||
$(MOQ) -fmt goimports -rm -out ./internal/agent/transport/mock.go ./internal/agent/transport WorkflowHandler | ||
$(MOQ) -fmt goimports -rm -out ./internal/agent/mock.go ./internal/agent Transport ContainerRuntime | ||
$(MOQ) -fmt goimports -rm -out ./internal/agent/event/mock.go ./internal/agent/event Recorder | ||
|
||
.PHONY: generate-proto | ||
generate-proto: buf.gen.yaml buf.lock $(shell git ls-files '**/*.proto') _protoc | ||
$(BUF) mod update | ||
$(BUF) generate | ||
$(GOFUMPT) -w internal/proto/*.pb.* | ||
$(GOFUMPT) -w internal/proto/workflow/v2/*.pb.* | ||
|
||
.PHONY: generate | ||
generate: generate-proto generate-go generate-manifests ## Generate code, manifests etc. | ||
|
@@ -241,4 +249,4 @@ yamllint: $(YAMLLINT_BIN) | |
.PHONY: _protoc ## Install all required tools for use with this Makefile. | ||
_protoc: | ||
GOBIN=$${PWD}/bin $(GO) install $(PROTOC_GEN_GO) | ||
GOBIN=$${PWD}/bin $(GO) install $(PROTOC_GEN_GO_GRPC) | ||
GOBIN=$${PWD}/bin $(GO) install $(PROTOC_GEN_GO_GRPC) |
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.