Skip to content

Commit

Permalink
fix: etcd migration based on prefix (#540)
Browse files Browse the repository at this point in the history
Signed-off-by: Dario Tranchitella <dario@tranchitella.eu>
  • Loading branch information
prometherion authored Aug 12, 2024
1 parent 1731e8c commit 09310b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/datastore/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ func (e *EtcdClient) Migrate(ctx context.Context, tcp kamajiv1alpha1.TenantContr
return err
}

key := e.buildKey(fmt.Sprintf("%s_%s", tcp.GetNamespace(), tcp.GetName()))

response, err := e.Client.Get(ctx, key, etcdclient.WithPrefix())
response, err := e.Client.Get(ctx, e.buildKey(tcp.Status.Storage.Setup.Schema), etcdclient.WithPrefix())
if err != nil {
return err
}
Expand Down

0 comments on commit 09310b5

Please sign in to comment.