K8s/Playlists: Only dual write when an external storage is configured (#82015)

This commit is contained in:
Ryan McKinley 2024-02-06 12:09:33 -08:00 committed by GitHub
parent 315eb5acc3
commit a052dab7bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,7 +113,7 @@ func (b *PlaylistAPIBuilder) GetAPIGroupInfo(
storage[resource.StoragePath()] = legacyStore storage[resource.StoragePath()] = legacyStore
// enable dual writes if a RESTOptionsGetter is provided // enable dual writes if a RESTOptionsGetter is provided
if optsGetter != nil { if optsGetter != nil && dualWrite {
store, err := newStorage(scheme, optsGetter, legacyStore) store, err := newStorage(scheme, optsGetter, legacyStore)
if err != nil { if err != nil {
return nil, err return nil, err