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 ef4a6fa commit 240b57e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dags_airflow_fede_k8sexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import os

import pendulum

from airflow.configuration import conf
from airflow.decorators import task
from airflow.example_dags.libs.helper import print_stuff
Expand Down Expand Up @@ -206,18 +205,18 @@ def other_namespace_task():
# Define config for task: pod with image
#############################################################

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

kube_exec_config_image = {
"pod_override": k8s.V1Pod(
spec=k8s.V1PodSpec(
containers=[
k8s.V1Container(
name="base",
image=f"{worker_container_repository}:{worker_container_tag}",
image=f"{repository}:{tag}",
),
]
)
Expand Down

0 comments on commit 240b57e

Please sign in to comment.