Skip to content

Commit

Permalink
Update dags_airflow_fede_rucio_k8sexecutor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leggerf authored Feb 6, 2024
1 parent 5a9813d commit f80a8a2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions dags_airflow_fede_rucio_k8sexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,26 @@
# Define config for pod with data access at CNAF and rucio
#############################################################

# repo = "leggerf/rucio-intertwin"
# tag = "0.0.0"
repo = "leggerf/rucio-intertwin"
tag = "0.0.0"

# use image from worker node as example
repo = conf.get("kubernetes_executor", "worker_container_repository")
tag = conf.get("kubernetes_executor", "worker_container_tag")
# repo = conf.get("kubernetes_executor", "worker_container_repository")
# tag = conf.get("kubernetes_executor", "worker_container_tag")

kube_exec_config_rucio = {
"pod_override": k8s.V1Pod(
spec=k8s.V1PodSpec(
containers=[
k8s.V1Container(
name="base", # the image must be named base
image=f"{repo}:{tag}",
# image=f"{repo}:{tag}",
# command=["./get-token.sh"],
# image_pull_policy="Always",
),
k8s.V1Container(
name="sidecar",
image="ubuntu",
image=f"{repo}:{tag}",
args=['echo "Hello"'],
command=["bash", "-cx"],
),
Expand Down

0 comments on commit f80a8a2

Please sign in to comment.