Skip to content

Commit

Permalink
Update dags_airflow_fede_k8sexecutor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leggerf authored Jan 26, 2024
1 parent 240b57e commit 85aa523
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions dags_airflow_fede_k8sexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_volume_mount():
],
volumes=[
k8s.V1Volume(
name="shared-empty-dir",
name="shared-empty-dir",
empty_dir=k8s.V1EmptyDirVolumeSource(),
),
],
Expand Down Expand Up @@ -202,12 +202,10 @@ def other_namespace_task():
other_ns_task = other_namespace_task()

#############################################################
# Define config for task: pod with image
# Define config for task: pod with image
#############################################################

repository = conf.get(
"kubernetes_executor", "worker_container_repository"
)
repo = conf.get("kubernetes_executor", "worker_container_repository")
tag = conf.get("kubernetes_executor", "worker_container_tag")

kube_exec_config_image = {
Expand All @@ -216,7 +214,7 @@ def other_namespace_task():
containers=[
k8s.V1Container(
name="base",
image=f"{repository}:{tag}",
image=f"{repo}:{tag}",
),
]
)
Expand Down

0 comments on commit 85aa523

Please sign in to comment.