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>
pull/7661/head
Yuxing Deng 2023-05-30 15:07:24 +08:00 committed by Brad Davidson
parent f58b7bd9e2
commit b64a226ebd
1 changed files with 5 additions and 2 deletions

View File

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