Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ValidateRoleUpdate (0.15 sec)

  1. pkg/registry/rbac/role/strategy.go

    func (strategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	newObj := obj.(*rbac.Role)
    	errorList := validation.ValidateRole(newObj)
    	return append(errorList, validation.ValidateRoleUpdate(newObj, old.(*rbac.Role))...)
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    func (strategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  2. pkg/apis/rbac/validation/validation.go

    		if err := ValidatePolicyRule(rule, true, field.NewPath("rules").Index(i)); err != nil {
    			allErrs = append(allErrs, err...)
    		}
    	}
    	if len(allErrs) != 0 {
    		return allErrs
    	}
    	return nil
    }
    
    func ValidateRoleUpdate(role *rbac.Role, oldRole *rbac.Role) field.ErrorList {
    	allErrs := ValidateRole(role)
    	allErrs = append(allErrs, validation.ValidateObjectMetaUpdate(&role.ObjectMeta, &oldRole.ObjectMeta, field.NewPath("metadata"))...)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:48:21 UTC 2022
    - 10.4K bytes
    - Viewed (0)
Back to top