From cff454f350f82df5863f4368e75e0860ef755c25 Mon Sep 17 00:00:00 2001 From: Michi Mutsuzaki Date: Thu, 21 Mar 2024 02:25:59 +0000 Subject: [PATCH] defaults: Move Version and HelmRepository from const to var Make Version and HelmRepository variables instead of consts so that they can be overridden using build tags. Signed-off-by: Michi Mutsuzaki --- defaults/defaults.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/defaults/defaults.go b/defaults/defaults.go index a5da90a7bb..a7850f6b12 100644 --- a/defaults/defaults.go +++ b/defaults/defaults.go @@ -8,9 +8,6 @@ import ( ) const ( - // renovate: datasource=github-releases depName=cilium/cilium - Version = "v1.15.2" - CiliumPodSelector = "app.kubernetes.io/part-of=cilium" AgentContainerName = "cilium-agent" @@ -99,9 +96,6 @@ const ( CiliumNoScheduleLabel = "cilium.io/no-schedule" - // HelmRepository specifies Helm repository to download Cilium charts from. - HelmRepository = "https://helm.cilium.io" - // ClustermeshMaxConnectedClusters is the default number of the maximum // number of clusters that should be allowed to connect to the Clustermesh. ClustermeshMaxConnectedClusters = 255 @@ -111,6 +105,12 @@ const ( ) var ( + // renovate: datasource=github-releases depName=cilium/cilium + Version = "v1.15.2" + + // HelmRepository specifies Helm repository to download Cilium charts from. + HelmRepository = "https://helm.cilium.io" + // CiliumScheduleAffinity is the node affinity to prevent Cilium from being schedule on // nodes labeled with CiliumNoScheduleLabel. CiliumScheduleAffinity = []string{