Skip to content

Commit

Permalink
Update from template
Browse files Browse the repository at this point in the history
Template version: main (98d16f9)
  • Loading branch information
simu committed Jan 7, 2025
1 parent 93134f6 commit d07d9a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/projectsyn/commodore-component-template.git",
"commit": "ba0ed2c8ff147199a748e9ff12cadce32c167fc0",
"commit": "98d16f99766e6c6d97322dbe42e058f0e2bf73d0",
"checkout": "main",
"context": {
"cookiecutter": {
Expand Down
6 changes: 5 additions & 1 deletion component/app.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ local argocd = import 'lib/argocd.libjsonnet';

local app = argocd.App('rook-ceph', params.namespace);

local appPath =
local project = std.get(std.get(app, 'spec', {}), 'project', 'syn');
if project == 'syn' then 'apps' else 'apps-%s' % project;

{
'rook-ceph': app,
['%s/rook-ceph' % appPath]: app,
}

0 comments on commit d07d9a6

Please sign in to comment.