Skip to content

Commit

Permalink
switch reversed old/new objects to validation
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k authored and Michal Minář committed Mar 22, 2018
1 parent 9742ee0 commit 6feafaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/image/registry/image/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (s imageStrategy) PrepareForUpdate(ctx apirequest.Context, obj, old runtime

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

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

0 comments on commit 6feafaf

Please sign in to comment.