diff --git a/pkg/controller/template/render.go b/pkg/controller/template/render.go index 00015549a4..b8e9c4f080 100644 --- a/pkg/controller/template/render.go +++ b/pkg/controller/template/render.go @@ -309,7 +309,6 @@ func renderTemplate(config RenderConfig, path string, b []byte) ([]byte, error) funcs["onPremPlatformAPIServerInternalIP"] = onPremPlatformAPIServerInternalIP funcs["onPremPlatformIngressIP"] = onPremPlatformIngressIP funcs["onPremPlatformShortName"] = onPremPlatformShortName - funcs["onPremPlatformKeepalivedEnableUnicast"] = onPremPlatformKeepalivedEnableUnicast funcs["urlHost"] = urlHost funcs["urlPort"] = urlPort tmpl, err := template.New(path).Funcs(funcs).Parse(string(b)) @@ -424,19 +423,6 @@ func onPremPlatformShortName(cfg RenderConfig) interface{} { } } -func onPremPlatformKeepalivedEnableUnicast(cfg RenderConfig) (interface{}, error) { - if cfg.Infra.Status.PlatformStatus != nil { - switch cfg.Infra.Status.PlatformStatus.Type { - case configv1.BareMetalPlatformType: - return "yes", nil - default: - return "no", nil - } - } else { - return "no", nil - } -} - //nolint:dupl func onPremPlatformIngressIP(cfg RenderConfig) (interface{}, error) { if cfg.Infra.Status.PlatformStatus != nil { diff --git a/pkg/operator/render.go b/pkg/operator/render.go index 70ac6b9b5d..9040b5b24c 100644 --- a/pkg/operator/render.go +++ b/pkg/operator/render.go @@ -62,7 +62,6 @@ func (a *assetRenderer) addTemplateFuncs() { funcs["onPremPlatformAPIServerInternalIP"] = onPremPlatformAPIServerInternalIP funcs["onPremPlatformIngressIP"] = onPremPlatformIngressIP funcs["onPremPlatformShortName"] = onPremPlatformShortName - funcs["onPremPlatformKeepalivedEnableUnicast"] = onPremPlatformKeepalivedEnableUnicast a.tmpl = a.tmpl.Funcs(funcs) } @@ -242,19 +241,6 @@ func onPremPlatformShortName(cfg mcfgv1.ControllerConfigSpec) interface{} { } } -func onPremPlatformKeepalivedEnableUnicast(cfg mcfgv1.ControllerConfigSpec) (interface{}, error) { - if cfg.Infra.Status.PlatformStatus != nil { - switch cfg.Infra.Status.PlatformStatus.Type { - case configv1.BareMetalPlatformType: - return "yes", nil - default: - return "no", nil - } - } else { - return "no", nil - } -} - //nolint:dupl func onPremPlatformIngressIP(cfg mcfgv1.ControllerConfigSpec) (interface{}, error) { if cfg.Infra.Status.PlatformStatus != nil {