Skip to content

Commit

Permalink
fix: set default storage backend for existing clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
tangcong committed Jun 6, 2022
1 parent 2dce0cf commit 0c79853
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/etcd/client/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ func GetEtcdClientProvider(
) (VersionClient, error) {
mutex.Lock()
defer mutex.Unlock()

// compatible with existing clusters
if name == "" {
name = kstonev1alpha2.EtcdStorageV3
}
f, found := providers[name]

klog.V(1).Infof("get provider name %s,status:%t", name, found)
Expand Down

0 comments on commit 0c79853

Please sign in to comment.