Skip to content

Commit

Permalink
Merge pull request #37 from DataFloz/connector-refactor
Browse files Browse the repository at this point in the history
fix k8s enviroments
  • Loading branch information
ofirelarat authored Jul 24, 2023
2 parents f447175 + 2a4d3fb commit 4871fe5
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 4871fe5

Please sign in to comment.