K8s/Playlists: Only dual write when an external storage is configured (#82015)
This commit is contained in:
@@ -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