Skip to content

Commit

Permalink
Update from component 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 aa286c3 commit 994204f
Show file tree
Hide file tree
Showing 4 changed files with 9 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": {
Expand Down
2 changes: 2 additions & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
parameters:
metallb:
=_metadata:
multi_tenant: true
namespace: syn-metallb
name: metallb
memberlist_secretkey: ?{vaultkv:${cluster:tenant}/${cluster:name}/metallb-memberlist/secretkey}
Expand Down
2 changes: 1 addition & 1 deletion class/metallb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ parameters:
- input_paths:
- metallb/component/app.jsonnet
input_type: jsonnet
output_path: apps/
output_path: .
- input_paths:
- metallb/component/main.jsonnet
input_type: jsonnet
Expand Down
6 changes: 5 additions & 1 deletion component/app.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ local app = argocd.App('metallb', params.namespace) {
},
};

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

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

0 comments on commit 994204f

Please sign in to comment.