Skip to content

Commit

Permalink
Update from component template
Browse files Browse the repository at this point in the history
Template version: main (`98d16f9`)
simu committed Jan 7, 2025
1 parent 6edbc9d commit eca6ba4
Showing 4 changed files with 8 additions and 3 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": "98d16f99766e6c6d97322dbe42e058f0e2bf73d0",
"checkout": "main",
"context": {
"cookiecutter": {
1 change: 1 addition & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ parameters:
keycloak:
=_metadata:
multi_instance: true
multi_tenant: true
# make lookup table constant to prevent changes to it through the hierarchy
=_enable_pg_chart:
# This lookup table controls whether to enable the chart depending on the value of `keycloak.database.provider`
2 changes: 1 addition & 1 deletion class/keycloak.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ parameters:
- input_paths:
- keycloak/component/app.jsonnet
input_type: jsonnet
output_path: apps/
output_path: .
- input_paths:
- keycloak/component/main.jsonnet
input_type: jsonnet
6 changes: 5 additions & 1 deletion component/app.jsonnet
Original file line number Diff line number Diff line change
@@ -18,6 +18,10 @@ local app = argocd.App(instance, params.namespace) {
},
};

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

{
[instance]: app,
['%s/%s' % [ appPath, instance ]]: app,
}

0 comments on commit eca6ba4

Please sign in to comment.