Skip to content

Commit

Permalink
Change secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
cayod committed Feb 23, 2024
1 parent cba7887 commit ec92286
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion dags/stellar_etl_airflow/build_elementary_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,19 @@ def elementary_task(
task_name,
resource_cfg="default",
):
secret_env = Secret(
deploy_type="env",
deploy_target="SLACK_TOKEN",
secret="slack-token-elementary",
key="token",
)

args = [
"monitor --override-dbt-project-config --slack-token $SLACK_TOKEN --slack-channel-name {{ var.value.slack_elementary_channel }} --suppression-interval 0"
"monitor",
"--override-dbt-project-config",
"--slack-token $SLACK_TOKEN",
"--slack-channel-name {{ var.value.slack_elementary_channel }}",
"--suppression-interval 0",
]
namespace = conf.get("kubernetes", "NAMESPACE")

Expand Down Expand Up @@ -62,6 +73,7 @@ def elementary_task(
image=dbt_image,
cmds=["edr"],
arguments=args,
secrets=[secret_env],
dag=dag,
do_xcom_push=True,
is_delete_operator_pod=True,
Expand Down

0 comments on commit ec92286

Please sign in to comment.