K8s/Playlists: Only dual write when an external storage is configured (#82015)
This commit is contained in:
1 parent
315eb5acc3
commit
a052dab7bc
1 file changed
+1
-1
@@ -113,7 +113,7 @@ func (b *PlaylistAPIBuilder) GetAPIGroupInfo(
|
||||
storage[resource.StoragePath()] = legacyStore
|
||||
|
||||
// enable dual writes if a RESTOptionsGetter is provided
|
||||
if optsGetter != nil {
|
||||
if optsGetter != nil && dualWrite {
|
||||
store, err := newStorage(scheme, optsGetter, legacyStore)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user