Skip to content

Commit

Permalink
Update from template
Browse files Browse the repository at this point in the history
Template version: main (`f12cbb4`)
  • Loading branch information
simu committed Jan 7, 2025
1 parent 4a1aa5b commit ddf2274
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 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": "8840f87d25d97ce0d4bfed75d40173caaf4100fc",
"commit": "f12cbb49f928cf689cf39b98d8d7c9e88fb289f6",
"checkout": "main",
"context": {
"cookiecutter": {
Expand Down
2 changes: 1 addition & 1 deletion class/control-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ parameters:
- input_paths:
- control-api/component/app.jsonnet
input_type: jsonnet
output_path: apps/
output_path: .
- input_paths:
- control-api/component/main.jsonnet
input_type: jsonnet
Expand Down
3 changes: 2 additions & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
parameters:
control_api:
=_metadata: {}
=_metadata:
multi_tenant: true

namespace: appuio-control-api
invitation_store_namespace: ${control_api:namespace}-invitations
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('control-api', params.namespace);

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

{
'control-api': app,
['%s/control-api' % appPath]: app,
}

0 comments on commit ddf2274

Please sign in to comment.