https://prefect.io logo
Title
l

Lionel

05/16/2021, 8:34 AM
Hi, how do we add ENV variables when installing with Helm ? Specifically to add
GITHUB_ACCESS_TOKEN
to use GitHub as the script storage backend.
👀 1
z

Zach Schumacher

05/17/2021, 3:52 AM
l

Lionel

05/17/2021, 8:24 AM
@Zach Schumacher no they're not helpful in this case... I had to add the SECRET manually in the UI for it to work.. is there a way to pass ENV variables to the Job scheduled by Kubernetes agent??
PREFECT__CONTEXT__SECRETS__GITHUB_ACCESS_TOKEN
doesn't get passed to Jobs when set in the Agent
I'm getting ValueError('Local Secret "GITHUB_ACCESS_TOKEN" was not found.')
z

Zach Schumacher

05/17/2021, 2:01 PM
I’d either pass it in the template or pass it on startup to teh agent if every job needs it. I’m also not an expert because we use cloud, not server so we get the managed vault backend