Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Add principal (role) for aborts (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
katrogan authored Dec 11, 2019
1 parent 7748f81 commit 4e175db
Show file tree
Hide file tree
Showing 22 changed files with 2,937 additions and 341 deletions.
628 changes: 557 additions & 71 deletions gen/pb-cpp/flyteidl/admin/execution.pb.cc

Large diffs are not rendered by default.

370 changes: 337 additions & 33 deletions gen/pb-cpp/flyteidl/admin/execution.pb.h

Large diffs are not rendered by default.

238 changes: 154 additions & 84 deletions gen/pb-go/flyteidl/admin/execution.pb.go

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions gen/pb-go/flyteidl/admin/execution.pb.validate.go

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

17 changes: 17 additions & 0 deletions gen/pb-go/flyteidl/service/admin.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2484,6 +2484,19 @@
],
"default": "UNKNOWN"
},
"adminAbortMetadata": {
"type": "object",
"properties": {
"cause": {
"type": "string",
"description": "In the case of a user-specified abort, this will pass along the user-supplied cause."
},
"principal": {
"type": "string",
"title": "Identifies the entity (if any) responsible for terminating the execution"
}
}
},
"adminAnnotations": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2567,6 +2580,10 @@
"type": "string",
"description": "In the case of a user-specified abort, this will pass along the user-supplied cause."
},
"abort_metadata": {
"$ref": "#/definitions/adminAbortMetadata",
"description": "In the case of a user-specified abort, this will pass along the user and their supplied cause."
},
"computed_inputs": {
"$ref": "#/definitions/coreLiteralMap",
"title": "Inputs computed and passed for execution.\ncomputed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan"
Expand Down
1 change: 1 addition & 0 deletions gen/pb-go/flyteidl/service/flyteadmin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Class | Method | HTTP request | Description

## Documentation For Models

- [AdminAbortMetadata](docs/AdminAbortMetadata.md)
- [AdminAnnotations](docs/AdminAnnotations.md)
- [AdminAuth](docs/AdminAuth.md)
- [AdminDomain](docs/AdminDomain.md)
Expand Down
29 changes: 29 additions & 0 deletions gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2153,6 +2153,19 @@ definitions:
- "CSV"
- "JSON"
default: "UNKNOWN"
adminAbortMetadata:
type: "object"
properties:
cause:
type: "string"
description: "In the case of a user-specified abort, this will pass along\
\ the user-supplied cause."
principal:
type: "string"
title: "Identifies the entity (if any) responsible for terminating the execution"
example:
principal: "principal"
cause: "cause"
adminAnnotations:
type: "object"
properties:
Expand Down Expand Up @@ -2240,6 +2253,9 @@ definitions:
version: "version"
computed_inputs:
literals: {}
abort_metadata:
principal: "principal"
cause: "cause"
updated_at: "2000-01-23T04:56:07.000+00:00"
started_at: "2000-01-23T04:56:07.000+00:00"
created_at: "2000-01-23T04:56:07.000+00:00"
Expand Down Expand Up @@ -2355,6 +2371,10 @@ definitions:
type: "string"
description: "In the case of a user-specified abort, this will pass along\
\ the user-supplied cause."
abort_metadata:
description: "In the case of a user-specified abort, this will pass along\
\ the user and their supplied cause."
$ref: "#/definitions/adminAbortMetadata"
computed_inputs:
title: "Inputs computed and passed for execution.\ncomputed_inputs depends\
\ on inputs in ExecutionSpec, fixed and default inputs in launch plan"
Expand Down Expand Up @@ -2404,6 +2424,9 @@ definitions:
version: "version"
computed_inputs:
literals: {}
abort_metadata:
principal: "principal"
cause: "cause"
updated_at: "2000-01-23T04:56:07.000+00:00"
started_at: "2000-01-23T04:56:07.000+00:00"
created_at: "2000-01-23T04:56:07.000+00:00"
Expand Down Expand Up @@ -2514,6 +2537,9 @@ definitions:
version: "version"
computed_inputs:
literals: {}
abort_metadata:
principal: "principal"
cause: "cause"
updated_at: "2000-01-23T04:56:07.000+00:00"
started_at: "2000-01-23T04:56:07.000+00:00"
created_at: "2000-01-23T04:56:07.000+00:00"
Expand Down Expand Up @@ -2635,6 +2661,9 @@ definitions:
version: "version"
computed_inputs:
literals: {}
abort_metadata:
principal: "principal"
cause: "cause"
updated_at: "2000-01-23T04:56:07.000+00:00"
started_at: "2000-01-23T04:56:07.000+00:00"
created_at: "2000-01-23T04:56:07.000+00:00"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* flyteidl/service/admin.proto
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: version not set
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/

package flyteadmin

type AdminAbortMetadata struct {
// In the case of a user-specified abort, this will pass along the user-supplied cause.
Cause string `json:"cause,omitempty"`
Principal string `json:"principal,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ type AdminExecutionClosure struct {
Error_ *CoreExecutionError `json:"error,omitempty"`
// In the case of a user-specified abort, this will pass along the user-supplied cause.
AbortCause string `json:"abort_cause,omitempty"`
// In the case of a user-specified abort, this will pass along the user and their supplied cause.
AbortMetadata *AdminAbortMetadata `json:"abort_metadata,omitempty"`
ComputedInputs *CoreLiteralMap `json:"computed_inputs,omitempty"`
// Most recent recorded phase for the execution.
Phase *CoreWorkflowExecutionPhase `json:"phase,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions gen/pb-go/flyteidl/service/openapi.go

Large diffs are not rendered by default.

Loading

0 comments on commit 4e175db

Please sign in to comment.