Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for IsClusterScoped (0.19 sec)

  1. pkg/config/schema/resource/schema.go

    	GroupVersionKind() config.GroupVersionKind
    
    	// GroupVersionResource of the resource.
    	GroupVersionResource() schema.GroupVersionResource
    
    	// IsClusterScoped indicates that this resource is scoped to a particular namespace within a cluster.
    	IsClusterScoped() bool
    
    	// IsBuiltin indicates that this resource is builtin (not a CRD)
    	IsBuiltin() bool
    
    	// Identifier returns a unique identifier for the resource
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. pkg/config/schema/codegen/templates/gvr.go.tmpl

    	{{$entry.Resource.Identifier}}_{{$alias}} = schema.GroupVersionResource{Group: "{{$entry.Resource.Group}}", Version: "{{$alias}}", Resource: "{{$entry.Resource.Plural}}"}
        {{- end }}
    {{- end }}
    )
    
    func IsClusterScoped(g schema.GroupVersionResource) bool {
    	switch g {
    {{- range $entry := .Entries }}
    	{{- if not $entry.Resource.Synthetic }}
    	case {{$entry.Resource.Identifier}}:
    		return {{$entry.Resource.ClusterScoped}}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 03:54:51 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/schema/validation_test.go

    	}
    }
    
    func schemaWithValidateFn(validateFn func(cfg config.Config) (validation.Warning, error)) resource2.Schema {
    	original := collections.VirtualService
    	return resource2.Builder{
    		ClusterScoped: original.IsClusterScoped(),
    		Kind:          original.Kind(),
    		Plural:        original.Plural(),
    		Group:         original.Group(),
    		Version:       original.Version(),
    		Proto:         original.Proto(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/crdclient/client_test.go

    		name := r.Kind()
    		t.Run(name, func(t *testing.T) {
    			configMeta := config.Meta{
    				GroupVersionKind: r.GroupVersionKind(),
    				Name:             configName,
    			}
    			if !r.IsClusterScoped() {
    				configMeta.Namespace = configNamespace
    			}
    			pb := createResource(t, store, r, configMeta)
    
    			// Kubernetes is eventually consistent, so we allow a short time to pass before we get
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 02:58:52 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. pkg/config/schema/gvr/resources.gen.go

    	WorkloadGroup_v1               = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1", Resource: "workloadgroups"}
    )
    
    func IsClusterScoped(g schema.GroupVersionResource) bool {
    	switch g {
    	case ServiceExport:
    		return false
    	case ServiceImport:
    		return false
    	case AuthorizationPolicy:
    		return false
    	case AuthorizationPolicy_v1:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. pilot/test/mock/config.go

    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			configMeta := config2.Meta{
    				GroupVersionKind: c.schema.GroupVersionKind(),
    				Name:             c.configName,
    			}
    			if !c.schema.IsClusterScoped() {
    				configMeta.Namespace = namespace
    			}
    
    			if _, err := store.Create(config2.Config{
    				Meta: configMeta,
    				Spec: c.spec,
    			}); err != nil {
    				t.Errorf("Post(%v) => got %v", c.name, err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  7. pkg/kube/kclient/client.go

    		return name
    	}
    	return namespace + "/" + name
    }
    
    func ToOpts(c kube.Client, gvr schema.GroupVersionResource, filter Filter) kubetypes.InformerOptions {
    	ns := filter.Namespace
    	if !istiogvr.IsClusterScoped(gvr) && ns == "" {
    		ns = features.InformerWatchNamespace
    	}
    	return kubetypes.InformerOptions{
    		LabelSelector:   filter.LabelSelector,
    		FieldSelector:   filter.FieldSelector,
    		Namespace:       ns,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. pilot/pkg/config/kube/crdclient/client.go

    	var extraFilter func(obj any) bool
    	if of, f := cl.filtersByGVK[resourceGVK]; f && of.ObjectFilter != nil {
    		extraFilter = of.ObjectFilter.Filter
    	}
    
    	var namespaceFilter kubetypes.DynamicObjectFilter
    	if !s.IsClusterScoped() {
    		namespaceFilter = kube.FilterIfEnhancedFilteringEnabled(cl.client)
    	}
    	filter := kubetypes.Filter{ObjectFilter: composeFilters(namespaceFilter, cl.inRevision, extraFilter)}
    
    	var kc kclient.Untyped
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. pilot/pkg/config/file/store.go

    	// If namespace is blank and we have a default set, fill in the default
    	// (This mirrors the behavior if you kubectl apply a resource without a namespace defined)
    	// Don't do this for cluster scoped resources
    	if !schema.IsClusterScoped() {
    		if objMeta.GetNamespace() == "" && s.defaultNs != "" {
    			scope.Debugf("KubeSource.parseChunk: namespace not specified for %q, using %q", objMeta.GetName(), s.defaultNs)
    			objMeta.SetNamespace(string(s.defaultNs))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top