Skip to content

Commit

Permalink
Disable multi instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Saratura committed Dec 4, 2023
1 parent 4cbec76 commit 7ddb29b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions component/class/defaults.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
parameters:
billing_collector_cloudservices:
=_metadata:
multi_instance: true

namespace: appuio-cloud-reporting

secrets:
odoo:
credentials:
stringData:
ODOO_OAUTH_CLIENT_ID: "?{vaultkv:${cluster:tenant}/${cluster:name}/billing-collector-cloudservices/${_instance}/odoo-oauth-client-id}"
ODOO_OAUTH_CLIENT_SECRET: "?{vaultkv:${cluster:tenant}/${cluster:name}/billing-collector-cloudservices/${_instance}/odoo-oauth-client-secret}"
ODOO_OAUTH_CLIENT_ID: "?{vaultkv:${cluster:tenant}/${cluster:name}/billing-collector-cloudservices/odoo-oauth-client-id}"
ODOO_OAUTH_CLIENT_SECRET: "?{vaultkv:${cluster:tenant}/${cluster:name}/billing-collector-cloudservices/odoo-oauth-client-secret}"
exoscale:
credentials:
stringData:
Expand Down
5 changes: 3 additions & 2 deletions component/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 paramsACR = inv.parameters.appuio_cloud_reporting;
local argocd = import 'lib/argocd.libjsonnet';

local instance = inv.parameters._instance;
local app = argocd.App(instance, paramsACR.namespace);
local params = inv.parameters.billing_collector_cloudservices;

local app = argocd.App(instance, params.namespace);

{
[instance]: app,
Expand Down
1 change: 0 additions & 1 deletion component/component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ local component_name = 'billing-collector-cloudservices';
local labels = {
'app.kubernetes.io/name': component_name,
'app.kubernetes.io/managed-by': 'commodore',
'app.kubernetes.io/part-of': 'appuio-cloud-reporting',
'app.kubernetes.io/component': component_name,
};

Expand Down

0 comments on commit 7ddb29b

Please sign in to comment.