Skip to content

Commit

Permalink
Update from template
Browse files Browse the repository at this point in the history
Template version: main (`f12cbb4`)
  • Loading branch information
simu committed Jan 7, 2025
1 parent 27d8c24 commit 740d3c1
Show file tree
Hide file tree
Showing 4 changed files with 8 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": "dc2c2fa3a08a3c439793708b742377f0fa831b7f",
"commit": "f12cbb49f928cf689cf39b98d8d7c9e88fb289f6",
"checkout": "main",
"context": {
"cookiecutter": {
Expand Down
1 change: 1 addition & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ parameters:
library_aliases:
prom.libsonnet: openshift4-monitoring-prom.libsonnet
alert-patching.libsonnet: openshift4-monitoring-alert-patching.libsonnet
multi_tenant: true
namespace: openshift-monitoring
manifests_version: release-4.15
# no release branches newer than 4.9 exist
Expand Down
2 changes: 1 addition & 1 deletion class/openshift4-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ parameters:
- input_paths:
- openshift4-monitoring/component/app.jsonnet
input_type: jsonnet
output_path: apps/
output_path: .
- input_paths:
- openshift4-monitoring/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 @@ -5,6 +5,10 @@ local argocd = import 'lib/argocd.libjsonnet';

local app = argocd.App('openshift4-monitoring', params.namespace);

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

{
'openshift4-monitoring': app,
['%s/openshift4-monitoring' % appPath]: app,
}

0 comments on commit 740d3c1

Please sign in to comment.