From b64a226ebde3d46cb5a6f2063e490fbc956589d4 Mon Sep 17 00:00:00 2001 From: Yuxing Deng Date: Tue, 30 May 2023 15:07:24 +0800 Subject: [PATCH] Make LB image configurable when compiling k3s It is no way we can configure the lb image because it is a const value. It would be better that we make it variable value and we can override the value like the `helm-controller` job image when compiling k3s/rke2 Signed-off-by: Yuxing Deng --- pkg/cloudprovider/servicelb.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/cloudprovider/servicelb.go b/pkg/cloudprovider/servicelb.go index 478212dd6a..d0b5be97ab 100644 --- a/pkg/cloudprovider/servicelb.go +++ b/pkg/cloudprovider/servicelb.go @@ -41,8 +41,11 @@ var ( ) const ( - Ready = condition.Cond("Ready") - DefaultLBNS = meta.NamespaceSystem + Ready = condition.Cond("Ready") + DefaultLBNS = meta.NamespaceSystem +) + +var ( DefaultLBImage = "rancher/klipper-lb:v0.4.4" )