Skip to content

Commit

Permalink
Fix multi-instance configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
zugao committed Oct 18, 2022
1 parent 5234bf2 commit c2f7bf3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion component/class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ parameters:
collector:
registry: 'ghcr.io'
repository: 'vshn/exoscale-metrics-collector'
tag: 'v0.2.2'
tag: 'v0.2.3'
# Times in UTC! Don't run job around midnight as exoscale API may return incomplete data
# default: Every day at minute 10 past hour 10, 16 and 20.
schedule: '10 10,16,20 * * *'
6 changes: 3 additions & 3 deletions component/component/app.jsonnet
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local kap = import 'lib/kapitan.libjsonnet';
local inv = kap.inventory();
local params = inv.parameters.exoscale_metrics_collector;
local paramsACR = inv.parameters.appuio_cloud_reporting;
local argocd = import 'lib/argocd.libjsonnet';

local app = argocd.App('exoscale-metrics-collector', paramsACR.namespace);
local instance = inv.parameters._instance;
local app = argocd.App(instance, paramsACR.namespace);

{
'exoscale-metrics-collector': app,
[instance]: app,
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
envFrom:
- secretRef:
name: credentials-collector-cloudscale-lpg-2
image: ghcr.io/vshn/exoscale-metrics-collector:v0.2.2
image: ghcr.io/vshn/exoscale-metrics-collector:v0.2.3
name: exoscale-metrics-collector-backfill
resources: {}
restartPolicy: OnFailure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
envFrom:
- secretRef:
name: credentials-exoscale-metrics-collector
image: ghcr.io/vshn/exoscale-metrics-collector:v0.2.2
image: ghcr.io/vshn/exoscale-metrics-collector:v0.2.3
name: exoscale-metrics-collector-backfill
resources: {}
restartPolicy: OnFailure
Expand Down

0 comments on commit c2f7bf3

Please sign in to comment.