Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for clusterScope (0.25 sec)

  1. pkg/apis/flowcontrol/validation/validation_test.go

    						APIGroups:    []string{flowcontrol.APIGroupAll},
    						Resources:    []string{flowcontrol.ResourceAll},
    						ClusterScope: true,
    					}},
    				}},
    			},
    		},
    		expectedErrors: field.ErrorList{},
    	}, {
    		name: "ClusterScope is allowed with NamespaceEvery",
    		flowSchema: &flowcontrol.FlowSchema{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "system-foo",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go

    }
    
    // Namer allows providing a custom name maker
    // By default "foo%d" is used
    func (t *Tester) Namer(namer func(int) string) *Tester {
    	t.namer = namer
    	return t
    }
    
    func (t *Tester) ClusterScope() *Tester {
    	t.clusterScope = true
    	return t
    }
    
    func (t *Tester) AllowCreateOnUpdate() *Tester {
    	t.createOnUpdate = true
    	return t
    }
    
    func (t *Tester) GeneratesName() *Tester {
    	t.generatesName = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  3. pkg/apis/flowcontrol/v1beta3/zz_generated.conversion.go

    	out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs))
    	out.APIGroups = *(*[]string)(unsafe.Pointer(&in.APIGroups))
    	out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources))
    	out.ClusterScope = in.ClusterScope
    	out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces))
    	return nil
    }
    
    // Convert_v1beta3_ResourcePolicyRule_To_flowcontrol_ResourcePolicyRule is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:41 UTC 2023
    - 53.1K bytes
    - Viewed (0)
  4. pkg/apis/flowcontrol/v1/zz_generated.conversion.go

    	out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs))
    	out.APIGroups = *(*[]string)(unsafe.Pointer(&in.APIGroups))
    	out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources))
    	out.ClusterScope = in.ClusterScope
    	out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces))
    	return nil
    }
    
    // Convert_v1_ResourcePolicyRule_To_flowcontrol_ResourcePolicyRule is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:41 UTC 2023
    - 52.4K bytes
    - Viewed (0)
  5. pkg/apis/flowcontrol/v1beta1/zz_generated.conversion.go

    	out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs))
    	out.APIGroups = *(*[]string)(unsafe.Pointer(&in.APIGroups))
    	out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources))
    	out.ClusterScope = in.ClusterScope
    	out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces))
    	return nil
    }
    
    // Convert_v1beta1_ResourcePolicyRule_To_flowcontrol_ResourcePolicyRule is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:00:06 UTC 2023
    - 53.5K bytes
    - Viewed (0)
  6. pkg/apis/flowcontrol/v1beta2/zz_generated.conversion.go

    	out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs))
    	out.APIGroups = *(*[]string)(unsafe.Pointer(&in.APIGroups))
    	out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources))
    	out.ClusterScope = in.ClusterScope
    	out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces))
    	return nil
    }
    
    // Convert_v1beta2_ResourcePolicyRule_To_flowcontrol_ResourcePolicyRule is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:00:06 UTC 2023
    - 53.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/admissionregistration/v1beta1/types.go

    type Rule = v1.Rule
    
    // ScopeType specifies a scope for a Rule.
    type ScopeType = v1.ScopeType
    
    const (
    	// ClusterScope means that scope is limited to cluster-scoped objects.
    	// Namespace objects are cluster-scoped.
    	ClusterScope ScopeType = v1.ClusterScope
    	// NamespacedScope means that scope is limited to namespaced objects.
    	NamespacedScope ScopeType = v1.NamespacedScope
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 20:14:19 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  8. pkg/apis/admissionregistration/types.go

    	//
    	// +optional
    	Scope *ScopeType
    }
    
    // ScopeType specifies the type of scope being used
    type ScopeType string
    
    const (
    	// ClusterScope means that scope is limited to cluster-scoped objects.
    	// Namespace objects are cluster-scoped.
    	ClusterScope ScopeType = "Cluster"
    	// NamespacedScope means that scope is limited to namespaced objects.
    	NamespacedScope ScopeType = "Namespaced"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 20:14:19 UTC 2024
    - 52.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/admissionregistration/v1/types.go

    }
    
    // ScopeType specifies a scope for a Rule.
    // +enum
    type ScopeType string
    
    const (
    	// ClusterScope means that scope is limited to cluster-scoped objects.
    	// Namespace objects are cluster-scoped.
    	ClusterScope ScopeType = "Cluster"
    	// NamespacedScope means that scope is limited to namespaced objects.
    	NamespacedScope ScopeType = "Namespaced"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 61.6K bytes
    - Viewed (0)
  10. pkg/apis/admissionregistration/validation/validation.go

    		allErrors = append(allErrors, field.Invalid(fldPath, resources, "if '*' is present, must not specify other resources"))
    	}
    	return allErrors
    }
    
    var validScopes = sets.NewString(
    	string(admissionregistration.ClusterScope),
    	string(admissionregistration.NamespacedScope),
    	string(admissionregistration.AllScopes),
    )
    
    func validateRule(rule *admissionregistration.Rule, fldPath *field.Path, allowSubResource bool) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 56.6K bytes
    - Viewed (0)
Back to top