Skip to content

Commit 3ba0008

Browse files
committed
Update from component template
Template version: main (`98d16f9`)
1 parent dab7da7 commit 3ba0008

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

.cruft.json

Lines changed: 1 addition & 1 deletion
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/csi-cloudscale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ parameters:
99
- input_paths:
1010
- ${_base_directory}/component/app.jsonnet
1111
input_type: jsonnet
12-
output_path: apps/
12+
output_path: .
1313
- input_paths:
1414
- ${_base_directory}/helmcharts/csi-cloudscale/${csi_cloudscale:charts:csi-cloudscale:version}
1515
input_type: helm

class/defaults.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
parameters:
22
csi_cloudscale:
3+
=_metadata:
4+
multi_tenant: true
35
namespace: syn-csi-cloudscale
46

57
charts:

component/app.jsonnet

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ local argocd = import 'lib/argocd.libjsonnet';
55

66
local app = argocd.App('csi-cloudscale', params.namespace, secrets=true);
77

8+
local appPath =
9+
local project = std.get(std.get(app, 'spec', {}), 'project', 'syn');
10+
if project == 'syn' then 'apps' else 'apps-%s' % project;
11+
812
{
9-
'csi-cloudscale': app,
13+
['%s/csi-cloudscale' % appPath]: app,
1014
}

0 commit comments

Comments
 (0)