mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Add a REST hook for post-validation canonicalize
This is a simple hook that only Endpoints uses for now.
This commit is contained in:
@@ -81,6 +81,10 @@ func (rcStrategy) Validate(ctx api.Context, obj runtime.Object) fielderrors.Vali
|
||||
return validation.ValidateReplicationController(controller)
|
||||
}
|
||||
|
||||
// Canonicalize normalizes the object after validation.
|
||||
func (rcStrategy) Canonicalize(obj runtime.Object) {
|
||||
}
|
||||
|
||||
// AllowCreateOnUpdate is false for replication controllers; this means a POST is
|
||||
// needed to create one.
|
||||
func (rcStrategy) AllowCreateOnUpdate() bool {
|
||||
|
||||
Reference in New Issue
Block a user