Skip to content

Commit

Permalink
Fix/remove couler (#11)
Browse files Browse the repository at this point in the history
* remove couler from config files

* refacto v2 using local submiter
  • Loading branch information
lgrosjean authored Sep 4, 2023
1 parent 437e940 commit cb0b9bb
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 140 deletions.
137 changes: 3 additions & 134 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ dbt-argo = "dbt_argo.v2.cli:cli"
[tool.poetry.dependencies]
python = ">=3.9,<3.12.0"
click = "^8.1.6"
couler = { git = "https://github.com/couler-proj/couler" }
hera = "^5.6.0"
croniter = "^1.4.1"
kubernetes = "^27.2.0"

[tool.poetry.group.dev]
optional = true
Expand Down
7 changes: 4 additions & 3 deletions src/dbt_argo/v2/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

import click
import yaml
from couler.argo_submitter import ArgoSubmitter # pylint: disable=import-error
from dbt.cli.main import dbtRunner, dbtRunnerResult
from dbt.contracts.graph.manifest import Manifest

from .submitter import ArgoSubmitter # pylint: disable=import-error
from .utils import copy_dir_to_gcs
from .workflows import create_dbt_cronworkflow, create_dbt_workflow

Expand Down Expand Up @@ -144,12 +144,13 @@ def create_cron(

@cli.command(name="submit")
@click.option("-f", "--filename")
@click.option("-n", "--namespace", default="default")
@click.option("--dry-run", is_flag=True)
def submit_workflow(filename, dry_run):
def submit_workflow(filename, namespace, dry_run):
"""dbt-argo deploy {FILE}"""
click.echo(f" Deploying {filename}!")

submitter = ArgoSubmitter(namespace="omni-leogrosjean")
submitter = ArgoSubmitter(namespace=namespace)

with open(filename, encoding="utf8") as file:
workflow_yaml = yaml.safe_load(file)
Expand Down
Loading

0 comments on commit cb0b9bb

Please sign in to comment.