Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 55504a6

Browse files
authored
Merge pull request #936 from iwilltry42/iwilltry42/issue915
fix: do not skip validation if image didn't change
2 parents 55cbd0f + 78fbce2 commit 55504a6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/server/registry/apps/strategy.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@ func (s *Strategy) Validate(ctx context.Context, obj runtime.Object) (result fie
9090
}
9191

9292
func (s *Strategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) (result field.ErrorList) {
93-
oldParams, newParams := old.(*apiv1.App), obj.(*apiv1.App)
94-
if oldParams.Spec.Image == newParams.Spec.Image {
95-
return nil
96-
}
93+
newParams := obj.(*apiv1.App)
9794
return s.Validate(ctx, newParams)
9895
}
9996

0 commit comments

Comments
 (0)