Exemplo n.º 1
0
// ValidateUpdate is the default update validation for an end user.
func (networkStrategy) ValidateUpdate(ctx api.Context, obj, old runtime.Object) field.ErrorList {
	errorList := validation.ValidateNetwork(obj.(*api.Network))
	return append(errorList, validation.ValidateNetworkUpdate(obj.(*api.Network), old.(*api.Network))...)
}
Exemplo n.º 2
0
// Validate validates a new network.
func (networkStrategy) Validate(ctx api.Context, obj runtime.Object) field.ErrorList {
	network := obj.(*api.Network)
	return validation.ValidateNetwork(network)
}