Skip to content

Commit b623d37

Browse files
authored
Merge pull request #98 from projectsyn/template-sync
Update from component template
2 parents 4c70c50 + d2314a1 commit b623d37

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.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/defaults.yml

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

class/kyverno.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ parameters:
44
- input_paths:
55
- kyverno/component/app.jsonnet
66
input_type: jsonnet
7-
output_path: apps/
7+
output_path: .
88

99
# render kustomization overlay
1010
- input_paths:

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('kyverno', params.namespace);
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-
kyverno: app,
13+
['%s/kyverno' % appPath]: app,
1014
}

0 commit comments

Comments
 (0)