Skip to content

Commit

Permalink
Add a way to passthrough env to kube executor
Browse files Browse the repository at this point in the history
  • Loading branch information
u8sand committed May 9, 2024
1 parent d4d891b commit 772406b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions appyter/execspec/implementations/kube.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ def _submit(self, job, namespace='default'):
),
job['ipynb'],
],
env=[
client.V1EnvVar(
name=key,
value=value,
)
for key, value in self.executor_options.get('env', {}).items()
],
security_context=client.V1SecurityContext(
privileged=True,
capabilities=client.V1Capabilities(
Expand Down

0 comments on commit 772406b

Please sign in to comment.