Skip to content

Commit

Permalink
Add K8sPod as a task target option (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
Katrina Rogan authored May 26, 2021
1 parent 8d40b20 commit 260de26
Show file tree
Hide file tree
Showing 29 changed files with 6,483 additions and 319 deletions.
2 changes: 1 addition & 1 deletion flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc

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

2 changes: 1 addition & 1 deletion flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc

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

2 changes: 1 addition & 1 deletion flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc

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

1,340 changes: 1,276 additions & 64 deletions flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc

Large diffs are not rendered by default.

533 changes: 532 additions & 1 deletion flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc

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

288 changes: 209 additions & 79 deletions flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go

Large diffs are not rendered by default.

167 changes: 167 additions & 0 deletions flyteidl/gen/pb-go/flyteidl/core/tasks.pb.validate.go

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

37 changes: 37 additions & 0 deletions flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5090,6 +5090,40 @@
},
"description": "Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.\nIf no conditions were satisfied, the else_node or the error will execute."
},
"coreK8sObjectMetadata": {
"type": "object",
"properties": {
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Optional labels to add to the pod definition."
},
"annotations": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Optional annotations to add to the pod definition."
}
},
"description": "Metadata for building a kubernetes object when a task is executed."
},
"coreK8sPod": {
"type": "object",
"properties": {
"metadata": {
"$ref": "#/definitions/coreK8sObjectMetadata",
"description": "Contains additional metadata for building a kubernetes pod."
},
"pod_spec": {
"$ref": "#/definitions/protobufStruct",
"title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in \n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py"
}
},
"description": "Defines a pod spec and additional pod metadata that is created when a task is executed."
},
"coreKeyValuePair": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5714,6 +5748,9 @@
"container": {
"$ref": "#/definitions/coreContainer"
},
"k8s_pod": {
"$ref": "#/definitions/coreK8sPod"
},
"task_type_version": {
"type": "integer",
"format": "int32",
Expand Down
2 changes: 2 additions & 0 deletions flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ Class | Method | HTTP request | Description
- [CoreIfBlock](docs/CoreIfBlock.md)
- [CoreIfElseBlock](docs/CoreIfElseBlock.md)
- [CoreIoStrategy](docs/CoreIoStrategy.md)
- [CoreK8sObjectMetadata](docs/CoreK8sObjectMetadata.md)
- [CoreK8sPod](docs/CoreK8sPod.md)
- [CoreKeyValuePair](docs/CoreKeyValuePair.md)
- [CoreLiteral](docs/CoreLiteral.md)
- [CoreLiteralCollection](docs/CoreLiteralCollection.md)
Expand Down
Loading

0 comments on commit 260de26

Please sign in to comment.