Commit 4d0a6134 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Fix sqlite endpoint when migrating from sqlite to etcd

Support for 'sqlite' as the endpoint was removed in https://github.com/k3s-io/kine/pull/320 and the constant removed in https://github.com/k3s-io/kine/pull/325Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit 0942e6a0) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent f8d6f06e
...@@ -837,7 +837,7 @@ func (e *ETCD) migrateFromSQLite(ctx context.Context) error { ...@@ -837,7 +837,7 @@ func (e *ETCD) migrateFromSQLite(ctx context.Context) error {
defer cancel() defer cancel()
_, err = endpoint2.Listen(ctx, endpoint2.Config{ _, err = endpoint2.Listen(ctx, endpoint2.Config{
Endpoint: endpoint2.SQLiteBackend, Endpoint: "sqlite://",
}) })
if err != nil { if err != nil {
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment