Skip to content

Commit

Permalink
Merge pull request #51 from projectsyn/fix-kapitan-call
Browse files Browse the repository at this point in the history
Explicitly disable check mode for subprocess.run in kapitan_compile
  • Loading branch information
Simon Rüegg authored Mar 4, 2020
2 parents bb936ba + 0d4f0a9 commit d9a5f57
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 35 deletions.
73 changes: 40 additions & 33 deletions Pipfile.lock

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

2 changes: 1 addition & 1 deletion commodore/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def compile(config, cluster_id):

p = kapitan_compile()
if p.returncode != 0:
raise click.ClickException(f"Catalog compilation failed")
raise click.ClickException(f"Kapitan catalog compilation failed.")

postprocess_components(kapitan_inventory, target_name, config.get_components())

Expand Down
2 changes: 1 addition & 1 deletion commodore/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def kapitan_compile():
click.secho('Compiling catalog...', bold=True)
return subprocess.run( # nosec
shlex.split('kapitan compile --fetch -J . dependencies --refs-path ./catalog/refs'),
check=True)
check=False)


def rm_tree_contents(basedir):
Expand Down

0 comments on commit d9a5f57

Please # to comment.