Skip to content

Commit 136a32b

Browse files
deads2kMichal Minář
authored and
Michal Minář
committed
switch reversed old/new objects to validation
1 parent 76440ba commit 136a32b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/image/registry/image/strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (s imageStrategy) PrepareForUpdate(ctx apirequest.Context, obj, old runtime
138138

139139
// ValidateUpdate is the default update validation for an end user.
140140
func (imageStrategy) ValidateUpdate(ctx apirequest.Context, obj, old runtime.Object) field.ErrorList {
141-
return validation.ValidateImageUpdate(old.(*imageapi.Image), obj.(*imageapi.Image))
141+
return validation.ValidateImageUpdate(obj.(*imageapi.Image), old.(*imageapi.Image))
142142
}
143143

144144
// removeManagedSignatureAnnotation removes deprecated annotation from image signatures. A bug in image update

0 commit comments

Comments
 (0)