acoustic-carpenter-78188
03/30/2023, 9:13 PMfrom flytekit import Secret, task, workflow
@task(secret_requests=[Secret(group="mainsecret", key="na", group_version="1")])
def secret_task() -> str:
with open("/etc/flyte/secrets/mainsecret/1") as f:
return f.read()
@workflow
def wf() -> str:
x = secret_task()
return x
Screenshot 2023-03-30 at 2 03 25 PM▾
key, even though the secrets plugin does not use it. @thankful-minister-83577: we may want to consider making this optional. Flytekit will also need support for including the group version in the file path when fetching secrets.
flyteorg/flytepropeller
GitHub Actions: Goreleaser
GitHub Actions: Build & Push Flytepropeller Image
GitHub Actions: Bump Version
✅ 11 other checks have passed
11/14 successful checksacoustic-carpenter-78188
03/30/2023, 9:13 PMacoustic-carpenter-78188
03/31/2023, 12:57 AM