Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix k8s enviroments #37

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion runner/pipeline_runner/kubernetes_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ def __init__(self, kubernetes_runner_config: PipelineKubernetesRunner):

def rollout(self, pipeline_configuration: PipelineConfig, connector: ConnectorConfig):
# create a container with environment variables

envs_dict = pipeline_configuration.as_dict()
envs_dict.update(connector.as_dict())

container = client.V1Container(
name="my-container",
image="my-image:latest",
image_pull_policy="Never",
env=[
client.V1EnvVar(name="MY_ENV_VAR", value="my value"),
client.V1EnvVar(name=env_key, value=env_value) for env_key, env_value in envs_dict.items()
]
)

Expand Down