diff --git a/main.go b/main.go index fa44516..d2c8d74 100644 --- a/main.go +++ b/main.go @@ -53,6 +53,8 @@ import ( const dpserviceIPv6SupportVersionStr = "v0.3.1" +const bluefieldSuffix = "-bluefield" + var ( scheme = runtime.NewScheme() setupLog = ctrl.Log.WithName("setup") @@ -314,6 +316,11 @@ func main() { } defaultRouterAddr.RWMutex.Unlock() + if strings.HasSuffix(nodeName, bluefieldSuffix) { + nodeName = strings.TrimSuffix(nodeName, bluefieldSuffix) + setupLog.Info("Running on bluefield, trimming -bluefield from Nodename") + } + if err = (&controllers.NetworkReconciler{ Client: mgr.GetClient(), Scheme: mgr.GetScheme(),