Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateClusterRole (0.89 sec)

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

    	clusterRole := obj.(*rbac.ClusterRole)
    	opts := validation.ClusterRoleValidationOptions{
    		AllowInvalidLabelValueInSelector: false,
    	}
    	return validation.ValidateClusterRole(clusterRole, opts)
    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    func (strategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string { return nil }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  2. pkg/apis/rbac/validation/validation.go

    	return allErrs
    }
    
    type ClusterRoleValidationOptions struct {
    	AllowInvalidLabelValueInSelector bool
    }
    
    func ValidateClusterRole(role *rbac.ClusterRole, opts ClusterRoleValidationOptions) field.ErrorList {
    	allErrs := field.ErrorList{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:48:21 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  3. pkg/apis/rbac/validation/validation_test.go

    }
    
    type ValidateClusterRoleTest struct {
    	role    rbac.ClusterRole
    	wantErr bool
    	errType field.ErrorType
    	field   string
    }
    
    func (v ValidateClusterRoleTest) test(t *testing.T) {
    	errs := ValidateClusterRole(&v.role, ClusterRoleValidationOptions{false})
    	if len(errs) == 0 {
    		if v.wantErr {
    			t.Fatal("expected validation error")
    		}
    		return
    	}
    	if !v.wantErr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 14.1K bytes
    - Viewed (0)
Back to top