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 d779475 commit 5da2b86
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 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": "95d2dbb90105a97114f46c9192b7ae146cbfaec0",
"commit": "98d16f99766e6c6d97322dbe42e058f0e2bf73d0",
"checkout": "main",
"context": {
"cookiecutter": {
Expand Down
4 changes: 2 additions & 2 deletions class/cilium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ parameters:
- input_paths:
- ${_base_directory}/component/app.jsonnet
input_type: jsonnet
output_path: apps/
output_path: .

- input_paths:
- ${_base_directory}/component/olm.jsonnet
Expand Down Expand Up @@ -43,7 +43,7 @@ parameters:
- input_paths:
- ${_base_directory}/component/app.jsonnet
input_type: jsonnet
output_path: apps/
output_path: .

- input_paths:
- ${_base_directory}/component/helm-namespace.jsonnet
Expand Down
3 changes: 2 additions & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
parameters:
cilium:
=_metadata: {}
=_metadata:
multi_tenant: true
=_namespace: cilium
release_name: cilium

Expand Down
6 changes: 5 additions & 1 deletion component/app.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ local argocd = import 'lib/argocd.libjsonnet';

local app = argocd.App('cilium', params._namespace);

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

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

0 comments on commit 5da2b86

Please sign in to comment.