Skip to content

Commit

Permalink
feat(workflows): add config and secrets injected input
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 23, 2023
1 parent 32c177e commit 55c4396
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bento_lib/package.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = bento_lib
version = 9.0.0a3
version = 9.0.0a4
authors = David Lougheed, Paul Pillot
author_emails = [email protected], [email protected]
17 changes: 16 additions & 1 deletion bento_lib/workflows/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,23 @@ class WorkflowDirectoryArrayInput(WorkflowBaseInput):


class WorkflowServiceUrlInput(WorkflowInjectedInput):
# service URL from the service registry, using bento.serviceKind as a lookup
type: Literal["service-url"] = "service-url"
service_kind: str


class WorkflowConfigInput(WorkflowInjectedInput):
# configuration injection from the workflow executor - stored in the database
type: Literal["config"] = "config"
key: str


class WorkflowSecretInput(WorkflowInjectedInput):
# secret injection from the workflow executor - not present in the database, passed ephemerally
type: Literal["secret"] = "secret"
key: str


WorkflowInput = (
WorkflowStringInput |
WorkflowStringArrayInput |
Expand All @@ -115,7 +128,9 @@ class WorkflowServiceUrlInput(WorkflowInjectedInput):
WorkflowFileArrayInput |
WorkflowDirectoryInput |
WorkflowDirectoryArrayInput |
WorkflowServiceUrlInput
WorkflowServiceUrlInput |
WorkflowConfigInput |
WorkflowSecretInput
)


Expand Down

0 comments on commit 55c4396

Please sign in to comment.