Skip to content

Commit

Permalink
specify k8s namespace for k8s pod operator
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Jun 14, 2024
1 parent 69236ac commit 55fdb14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions dataverk_airflow/kubernetes_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def on_failure(context):
on_finish_action=on_finish_action,
annotations={"allowlist": ",".join(allowlist)},
image=image,
namespace=namespace,
env_vars=env_vars(is_composer, extra_envs),
env_from=[env_from_secret(secret) for secret in env_from_secrets],
config_file=config_file(is_composer),
Expand Down
2 changes: 2 additions & 0 deletions tests-integration/dbt/k8s_resources/oracle-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spec:
value: usah
- name: APP_USER_PASSWORD
value: pass
- name: ORACLE_RANDOM_PASSWORD
value: "true"
---
apiVersion: v1
kind: Service
Expand Down
3 changes: 3 additions & 0 deletions tests-integration/knada.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@
dag=dag,
name="dbt-build",
repo="navikt/dataverk-airflow",
branch="dbt-operator",
dbt_cmd="dbt build --profiles-dir tests-integration/dbt --project-dir tests-integration/dbt/nada_dbt_test",
image="ghcr.io/navikt/knada/dataverk-airflow-test:v1",
retries=0,
env_from_secrets=["dbt-secret"],
startup_timeout_seconds=60,
delete_on_finish=False,
)

# py_op
Expand Down

0 comments on commit 55fdb14

Please sign in to comment.