@ -204,7 +204,8 @@ func createFlannelConf(nodeConfig *config.Node) error {
}
}
case config . FlannelBackendWireguard :
case config . FlannelBackendWireguard :
backendConf = strings . ReplaceAll ( wireguardBackend , "%flannelConfDir%" , filepath . Dir ( nodeConfig . FlannelConfFile ) )
backendConf = strings . ReplaceAll ( wireguardBackend , "%flannelConfDir%" , filepath . Dir ( nodeConfig . FlannelConfFile ) )
case config . FlannelBackendNativeWireguard :
logrus . Warnf ( "The wireguard backend is deprecated and will be removed in k3s v1.26, please switch to wireguard-native. Check our docs for information about how to migrate" )
case config . FlannelBackendWireguardNative :
backendConf = wireguardNativeBackend
backendConf = wireguardNativeBackend
default :
default :
return fmt . Errorf ( "Cannot configure unknown flannel backend '%s'" , nodeConfig . FlannelBackend )
return fmt . Errorf ( "Cannot configure unknown flannel backend '%s'" , nodeConfig . FlannelBackend )