// ValidateUpdate is the default update validation for an end user. func (strategy) ValidateUpdate(ctx api.Context, obj, old runtime.Object) field.ErrorList { newObj := obj.(*rbac.ClusterRole) errorList := validation.ValidateClusterRole(newObj) return append(errorList, validation.ValidateClusterRoleUpdate(newObj, old.(*rbac.ClusterRole))...) }
// Validate validates a new ClusterRole. Validation must check for a correct signature. func (strategy) Validate(ctx api.Context, obj runtime.Object) field.ErrorList { clusterRole := obj.(*rbac.ClusterRole) return validation.ValidateClusterRole(clusterRole) }