From b0da493f0872cf592bd67f1201a88f387f5d64d9 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Wed, 2 Aug 2023 12:37:24 +0200 Subject: [PATCH] tools/chart: add CUE tag for interval Signed-off-by: Hidde Beydals --- tools/charts/main_tool.cue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/charts/main_tool.cue b/tools/charts/main_tool.cue index 2a19052..9196aea 100644 --- a/tools/charts/main_tool.cue +++ b/tools/charts/main_tool.cue @@ -13,6 +13,7 @@ import ( vars: { top: *5 | string @tag(top) + interval: *"10m" | string @tag(interval) namespace: *"flux-system" | string @tag(namespace) out: *"yaml" | "list|yaml" | string @tag(out) } @@ -34,7 +35,7 @@ command: fetch: { metadata: namespace: vars.namespace spec: { url: r.repository.url - interval: "10m" + interval: vars.interval timeout: "1m" } } @@ -44,7 +45,7 @@ command: fetch: { metadata: name: "\(r.name)-\(strings.Split(r.package_id, "-")[0])" metadata: namespace: vars.namespace spec: { - interval: "10m" + interval: vars.interval chart: r.name version: "*" sourceRef: {