provider-rke2/main.go

22 lines
475 B
Go
Raw Normal View History

2022-08-18 17:28:57 +00:00
package main
import (
"github.com/c3os-io/c3os/provider-rke2/pkg/provider"
"github.com/kairos-io/kairos-sdk/clusterplugin"
"github.com/mudler/go-pluggable"
2022-08-18 17:28:57 +00:00
"github.com/sirupsen/logrus"
)
func main() {
plugin := clusterplugin.ClusterPlugin{
Provider: provider.ClusterProvider,
2022-08-18 17:28:57 +00:00
}
if err := plugin.Run(pluggable.FactoryPlugin{
EventType: clusterplugin.EventClusterReset,
PluginHandler: provider.HandleClusterReset,
}); err != nil {
2022-08-18 17:28:57 +00:00
logrus.Fatal(err)
}
}