k3s/pkg/dqlite/reset.go

16 lines
277 B
Go
Raw Normal View History

2019-10-31 02:05:40 +00:00
package dqlite
import (
"context"
"github.com/canonical/go-dqlite/client"
"github.com/sirupsen/logrus"
)
func (d *DQLite) Reset(ctx context.Context) error {
2019-11-11 22:19:00 +00:00
logrus.Infof("Resetting cluster to single master")
return d.node.Recover([]client.NodeInfo{
d.NodeInfo,
})
2019-10-31 02:05:40 +00:00
}