Skip to content

Commit

Permalink
Add tink server-worker workflow v2 proto
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Doherty <[email protected]>
  • Loading branch information
chrisdoherty4 committed Mar 31, 2023
1 parent f3d2cf6 commit 21feed3
Show file tree
Hide file tree
Showing 7 changed files with 1,286 additions and 37 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ 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.
Expand Down
7 changes: 3 additions & 4 deletions api/v1alpha2/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type WorkflowStatus struct {
// Actions is a list of action states.
Actions []ActionStatus `json:"actions"`

// StartedAt is the time the first action was requested. Nil indicates the Workflow has not
// StartedAt is the time the first action reports running. Nil indicates the Workflow has not
// started.
StartedAt *metav1.Time `json:"startedAt,omitempty"`

Expand All @@ -41,7 +41,7 @@ type WorkflowStatus struct {

// State describes the current state of the workflow. For the workflow to enter the
// WorkflowStateSucceeded state all actions must be in ActionStateSucceeded. The Workflow will
// enter a WorkflowStateFailed if 1 or more Actions fails.
// enter a WorkflowStateFailed if 1 or more Actions fail.
State WorkflowState `json:"state,omitempty"`

// Conditions details a set of observations about the Workflow.
Expand Down Expand Up @@ -82,8 +82,7 @@ const (
// WorkflowStatePending indicates the workflow is in a pending state.
WorkflowStatePending WorkflowState = "Pending"

// WorkflowStateRunning indicates the first Action has been requested and the Workflow is in
// progress.
// WorkflowStateRunning indicates the workflow is running.
WorkflowStateRunning WorkflowState = "Running"

// WorkflowStateSucceeded indicates all Workflow actions have successfully completed.
Expand Down
2 changes: 1 addition & 1 deletion buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 75b4300737fb4efca0831636be94e517
commit: 463926e7ee924d46ad0a726e1cf4eacd
32 changes: 0 additions & 32 deletions internal/proto/workflow.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 21feed3

Please sign in to comment.