diff --git a/pyproject.toml b/pyproject.toml index ba6ffd6..27bc42c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,7 @@ name = "commodore-config-package-template" version = "0.1.0" description = "" authors = ["VSHN AG "] +package-mode = false [tool.poetry.dependencies] python = "^3.8" diff --git a/{{ cookiecutter.slug }}/component/app.jsonnet b/{{ cookiecutter.slug }}/component/app.jsonnet index 8f01a60..18eb8c2 100644 --- a/{{ cookiecutter.slug }}/component/app.jsonnet +++ b/{{ cookiecutter.slug }}/component/app.jsonnet @@ -6,7 +6,7 @@ local argocd = import 'lib/argocd.libjsonnet'; local app = argocd.App('{{ cookiecutter.slug }}', params.namespace); local appPath = - local project = std.get(app, 'spec', { project: 'syn' }).project; + local project = std.get(std.get(app, 'spec', {}), 'project', 'syn'); if project == 'syn' then 'apps' else 'apps-%s' % project; {