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 <jxfa0043379@hotmail.com>
(cherry picked from commit b64a226ebd)
pull/7763/head
Yuxing Deng 2023-05-30 15:07:24 +08:00 committed by Brad Davidson
parent 8ca3262878
commit b36b0c4c88
1 changed files with 5 additions and 2 deletions

View File

@ -41,8 +41,11 @@ var (
) )
const ( const (
Ready = condition.Cond("Ready") Ready = condition.Cond("Ready")
DefaultLBNS = meta.NamespaceSystem DefaultLBNS = meta.NamespaceSystem
)
var (
DefaultLBImage = "rancher/klipper-lb:v0.4.4" DefaultLBImage = "rancher/klipper-lb:v0.4.4"
) )