acoustic-carpenter-78188
06/30/2023, 7:34 PMfrom flytekit import Secret, current_context, task
SECRET_GROUP = "projects/111111111111/secrets/mainsecret"
SECRET_GROUP_VERSION = "1"
@task(
secret_requests=[
Secret(group=SECRET_GROUP, group_version=SECRET_GROUP_VERSION),
],
)
def my_task() -> str:
return current_context().secrets.get(
SECRET_GROUP, group_version=SECRET_GROUP_VERSION
)
Backward compatibility with secrets in current project:
from flytekit import Secret, current_context, task
SECRET_GROUP = "mainsecret"
SECRET_GROUP_VERSION = "1"
@task(
secret_requests=[
Secret(group=SECRET_GROUP, group_version=SECRET_GROUP_VERSION),
],
)
def my_task() -> str:
return current_context().secrets.get(
SECRET_GROUP, group_version=SECRET_GROUP_VERSION
)
Type
☐ Bug Fix
☑︎ Feature
☐ Plugin
Are all requirements met?
☑︎ Code completed
☑︎ Smoke tested
☑︎ Unit tests added
☐ Code documentation added
☐ Any pending items have an associated Issue
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
_Remove the '_fixes_' keyword if there will be multiple PRs to fix the linked issue_
fixes https://github.com/flyteorg/flyte/issues/
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/
flyteorg/flytepropeller
GitHub Actions: Build & Push Flytepropeller Image
GitHub Actions: Goreleaser
GitHub Actions: Bump Version
✅ 11 other checks have passed
11/14 successful checksacoustic-carpenter-78188
06/30/2023, 7:34 PM