Skip to content

Commit

Permalink
Ensure conflict-free multi-instance capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Aline Abler committed Mar 6, 2023
1 parent b8702d5 commit f92b98c
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion class/openshift4-operators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ parameters:
- input_paths:
- openshift4-operators/component/main.jsonnet
input_type: jsonnet
output_path: openshift4-operators/
output_path: ${_instance}/
5 changes: 3 additions & 2 deletions component/app.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ local kap = import 'lib/kapitan.libjsonnet';
local inv = kap.inventory();
local params = inv.parameters.openshift4_operators;
local argocd = import 'lib/argocd.libjsonnet';
local instance = inv.parameters._instance;

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

{
'openshift4-operators': app,
[instance]: app,
}

0 comments on commit f92b98c

Please sign in to comment.