Skip to content

Commit

Permalink
Add PlacementAPISpecCore version of validate functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dprince authored and gibizer committed Mar 8, 2024
1 parent 88d8105 commit 91e9a07
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion api/v1beta1/placementapi_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,14 @@ func (r PlacementAPISpec) ValidateUpdate(old PlacementAPISpec, basePath *field.P
return r.ValidateDefaultConfigOverwrite(basePath)
}

func (r PlacementAPISpec) ValidateDefaultConfigOverwrite(
func (r PlacementAPISpecCore) ValidateCreate(basePath *field.Path) field.ErrorList {
return r.ValidateDefaultConfigOverwrite(basePath)
}

func (r PlacementAPISpecCore) ValidateUpdate(old PlacementAPISpec, basePath *field.Path) field.ErrorList {
return r.ValidateDefaultConfigOverwrite(basePath)
}
func (r PlacementAPISpecCore) ValidateDefaultConfigOverwrite(
basePath *field.Path,
) field.ErrorList {
var errors field.ErrorList
Expand Down

0 comments on commit 91e9a07

Please sign in to comment.