Skip to content

Commit 947e943

Browse files
committed
Update from component template
Template version: main (`98d16f9`)
1 parent ea702f0 commit 947e943

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.cruft.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/projectsyn/commodore-component-template.git",
3-
"commit": "8840f87d25d97ce0d4bfed75d40173caaf4100fc",
3+
"commit": "98d16f99766e6c6d97322dbe42e058f0e2bf73d0",
44
"checkout": "main",
55
"context": {
66
"cookiecutter": {

class/defaults.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ parameters:
22
vcluster:
33
=_metadata:
44
multi_instance: true
5+
multi_tenant: true
56
namespace: syn-${_instance}
67
namespaceMetadata: {}
78

class/vcluster.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ parameters:
44
- input_paths:
55
- vcluster/component/app.jsonnet
66
input_type: jsonnet
7-
output_path: apps/
7+
output_path: .
88
- input_paths:
99
- vcluster/component/main.jsonnet
1010
input_type: jsonnet

component/app.jsonnet

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ local argocd = import 'lib/argocd.libjsonnet';
66

77
local app = argocd.App(instance, params.namespace);
88

9+
local appPath =
10+
local project = std.get(std.get(app, 'spec', {}), 'project', 'syn');
11+
if project == 'syn' then 'apps' else 'apps-%s' % project;
12+
913
{
10-
[instance]: app,
14+
['%s/%s' % [ appPath, instance ]]: app,
1115
}

0 commit comments

Comments
 (0)