Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KubernetesPodOperator & DockerOperator management #133

Merged
merged 44 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
fed5801
add dockeroperator management
juldrixx Feb 7, 2023
016192f
add kubernetespodoperator management
juldrixx Feb 8, 2023
e5acce6
Merge branch 'main' into add_container_operator
juldrixx Feb 8, 2023
03d51f4
normalize docs
juldrixx Feb 8, 2023
f1d8ae8
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Feb 8, 2023
2ffe266
fix lines too long
juldrixx Feb 8, 2023
6a0a6f9
Merge branch 'add_container_operator' of github.com:juldrixx/astronom…
juldrixx Feb 8, 2023
116a623
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Feb 8, 2023
a36bc24
resolve conflict with main
juldrixx Feb 9, 2023
e833069
resolve conflict with main
juldrixx Feb 9, 2023
fdadecd
Merge branch 'main' into add_container_operator
juldrixx Feb 10, 2023
ce46043
Makes conn_id optional for k8s and docker
juldrixx Feb 10, 2023
76a641a
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Feb 10, 2023
90e0052
Merge branch 'main' into add_container_operator
juldrixx Feb 13, 2023
e3152cf
New class to make the code as generic as possible
juldrixx Feb 13, 2023
5bbaf2f
Fix needed attribute and add log to show the built command
juldrixx Feb 13, 2023
bd11701
Add attributes to configure profiles_dir for all the execution mode
juldrixx Feb 13, 2023
9efe890
resolve conflict
juldrixx Feb 13, 2023
977df80
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Feb 13, 2023
ede6e92
Remove k8s cmds set to not override entrypoint command
juldrixx Feb 17, 2023
62f3faf
patch logging
juldrixx Feb 17, 2023
771a2d2
Remove env local variables fetching for container mode
juldrixx Feb 17, 2023
29cec95
Patch K8S args
juldrixx Feb 17, 2023
58a6667
Fix missing default value
juldrixx Feb 17, 2023
7eaf8ee
Resolve conflict
juldrixx Feb 20, 2023
1d8d5a5
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Feb 20, 2023
cbea8c5
Rebase on master && refactore code structure
juldrixx Mar 18, 2023
37705e6
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Mar 18, 2023
5128fd5
fix lint
juldrixx Mar 18, 2023
8f5cf97
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
pre-commit-ci[bot] Mar 18, 2023
cd2c55d
patch test
juldrixx Mar 18, 2023
6bd2cfd
Add tests for dbt docker
dimberman Mar 19, 2023
b653589
Add kubernetes tests
dimberman Mar 19, 2023
c6cd38a
Add full pod k8s tests
dimberman Mar 19, 2023
8460df2
Add environment variable to kubernetes test
dimberman Mar 20, 2023
4f4f708
Fix to airflow version in kubernetes test
dimberman Mar 20, 2023
5da361b
Fix build_docs to point to correct path with new classes included in …
dimberman Mar 20, 2023
6f04cb6
Merge branch 'main' into add_container_operator
dimberman Mar 20, 2023
02735e8
Add airflow_version to test since mock.ANY seems to cause a failure
dimberman Mar 20, 2023
ff4912c
Merge branch 'add_container_operator' of https://github.com/juldrixx/…
dimberman Mar 20, 2023
42e5c60
Merge branch 'main' of https://github.com/astronomer/astronomer-cosmo…
dimberman Mar 20, 2023
38b93c1
Manually set the dbt executable path, since we will assume the comman…
dimberman Mar 20, 2023
fe231a5
doc fix 1
dimberman Mar 20, 2023
f48ed09
switch to using autoapi for generating reference docs
dimberman Mar 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added cosmos/core/__init__.py
Empty file.
Empty file added cosmos/core/graph/__init__.py
Empty file.
53 changes: 39 additions & 14 deletions cosmos/providers/dbt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,53 @@
dbt support for Airflow. Contains dags, task groups, and operators.
"""

from cosmos.providers.dbt.core.operators.docker import (
DbtLSDockerOperator,
DbtRunDockerOperator,
DbtRunOperationDockerOperator,
DbtSeedDockerOperator,
DbtTestDockerOperator,
)
from cosmos.providers.dbt.core.operators.kubernetes import (
DbtLSKubernetesOperator,
DbtRunKubernetesOperator,
DbtRunOperationKubernetesOperator,
DbtSeedKubernetesOperator,
DbtTestKubernetesOperator,
)

# re-export the operators
from .core.operators import (
DbtLSOperator,
DbtRunOperationOperator,
DbtRunOperator,
DbtSeedOperator,
DbtTestOperator,
from cosmos.providers.dbt.core.operators.local import (
DbtLSLocalOperator,
DbtRunLocalOperator,
DbtRunOperationLocalOperator,
DbtSeedLocalOperator,
DbtTestLocalOperator,
)

# re-export user facing utilities
from .core.utils.data_aware_scheduling import get_dbt_dataset
from cosmos.providers.dbt.core.utils.data_aware_scheduling import get_dbt_dataset

# re-export the dag and task group
from .dag import DbtDag
from .task_group import DbtTaskGroup
from cosmos.providers.dbt.dag import DbtDag
from cosmos.providers.dbt.task_group import DbtTaskGroup

__all__ = [
DbtLSOperator,
DbtRunOperationOperator,
DbtRunOperator,
DbtSeedOperator,
DbtTestOperator,
DbtLSLocalOperator,
DbtRunOperationLocalOperator,
DbtRunLocalOperator,
DbtSeedLocalOperator,
DbtTestLocalOperator,
DbtLSDockerOperator,
DbtRunOperationDockerOperator,
DbtRunDockerOperator,
DbtSeedDockerOperator,
DbtTestDockerOperator,
DbtLSKubernetesOperator,
DbtRunOperationKubernetesOperator,
DbtRunKubernetesOperator,
DbtSeedKubernetesOperator,
DbtTestKubernetesOperator,
get_dbt_dataset,
DbtDag,
DbtTaskGroup,
Expand Down
Loading