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

pull/81214/head^2
Ryan McKinley 1 year ago committed by GitHub
parent 315eb5acc3
commit a052dab7bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pkg/registry/apis/playlist/register.go

@ -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

Loading…
Cancel
Save