Skip to content

Commit

Permalink
Correct ValidateUpdate for PlacementSpecCore
Browse files Browse the repository at this point in the history
Updates the function so that the type of the "old" and reciever
are the same.
  • Loading branch information
dprince authored and openshift-merge-bot[bot] committed Mar 12, 2024
1 parent 9eaa106 commit 71131dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta1/placementapi_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (r PlacementAPISpecCore) ValidateCreate(basePath *field.Path) field.ErrorLi
return ValidateDefaultConfigOverwrite(basePath, r.DefaultConfigOverwrite)
}

func (r PlacementAPISpecCore) ValidateUpdate(old PlacementAPISpec, basePath *field.Path) field.ErrorList {
func (r PlacementAPISpecCore) ValidateUpdate(old PlacementAPISpecCore, basePath *field.Path) field.ErrorList {
return ValidateDefaultConfigOverwrite(basePath, r.DefaultConfigOverwrite)
}

Expand Down

0 comments on commit 71131dc

Please sign in to comment.