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>
This commit is contained in:
Yuxing Deng 2023-05-30 15:07:24 +08:00 committed by Brad Davidson
parent f58b7bd9e2
commit b64a226ebd

View File

@ -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"
)