DualWriter: remove RV+UID for secondary update (#105543)
This commit is contained in:
@@ -24,16 +24,6 @@ var (
|
||||
_ rest.SingularNameProvider = (DualWriter)(nil)
|
||||
)
|
||||
|
||||
type dualWriteContextKey struct{}
|
||||
|
||||
func IsDualWriteUpdate(ctx context.Context) bool {
|
||||
return ctx.Value(dualWriteContextKey{}) == true
|
||||
}
|
||||
|
||||
func WithDualWriteUpdate(ctx context.Context) context.Context {
|
||||
return context.WithValue(ctx, dualWriteContextKey{}, true)
|
||||
}
|
||||
|
||||
// Function that will create a dual writer
|
||||
type DualWriteBuilder func(gr schema.GroupResource, legacy Storage, unified Storage) (Storage, error)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user