Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 287 for NamespaceId (0.27 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    		requestedNamespace string
    		recursive          bool
    		fieldSelector      fields.Selector
    		indexFields        []string
    		watchTests         []*testWatchStruct
    	}{
    		{
    			name:          "namespaced watch, request without name, request without namespace, without field selector",
    			recursive:     true,
    			fieldSelector: fields.Everything(),
    			watchTests: []*testWatchStruct{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/visitor.go

    			i.Mapping.GroupVersionKind.String())
    		return fmt.Sprint(mappingInfo, "\n", basicInfo)
    	}
    	return basicInfo
    }
    
    // Namespaced returns true if the object belongs to a namespace
    func (i *Info) Namespaced() bool {
    	if i.Mapping != nil {
    		// if we have RESTMapper info, use it
    		return i.Mapping.Scope.Name() == meta.RESTScopeNameNamespace
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 21.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_dispatcher.go

    		if paramInformer == nil {
    			return nil, fmt.Errorf("paramKind kind `%v` not known",
    				paramKind.String())
    		}
    
    		// Set up cluster-scoped, or namespaced access to the params
    		// "default" if not provided, and paramKind is namespaced
    		paramStore = paramInformer.Lister()
    		if paramScope.Name() == meta.RESTScopeNameNamespace {
    			paramsNamespace := namespace
    			if len(paramRef.Namespace) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. pkg/controller/namespace/deletion/namespaced_resources_deleter_test.go

    		{
    			GroupVersion: "v1",
    			APIResources: []metav1.APIResource{
    				{
    					Name:       "pods",
    					Namespaced: true,
    					Kind:       "Pod",
    					Verbs:      []string{"get", "list", "delete", "deletecollection", "create", "update"},
    				},
    				{
    					Name:       "services",
    					Namespaced: true,
    					Kind:       "Service",
    					Verbs:      []string{"get", "list", "delete", "deletecollection", "create", "update"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 07:34:23 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller_test.go

    	require.Equal(t, value, object3)
    
    	value, err = myController.Informer().Namespaced(namespacedObject1.GetNamespace()).Get(namespacedObject1.GetName())
    	require.NoError(t, err)
    	require.Equal(t, value, namespacedObject1)
    
    	_, err = myController.Informer().Get("fakeobjectname")
    	require.True(t, k8serrors.IsNotFound(err))
    
    	_, err = myController.Informer().Namespaced("test").Get("fakeobjectname")
    	require.True(t, k8serrors.IsNotFound(err))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  6. pkg/controller/garbagecollector/garbagecollector_test.go

    					APIResources: []metav1.APIResource{
    						{Name: "pods", Namespaced: true, Kind: "Pod", Verbs: metav1.Verbs{"delete", "list", "watch"}},
    						{Name: "services", Namespaced: true, Kind: "Service"},
    					},
    				},
    				{
    					// Invalid GroupVersion, should be ignored
    					GroupVersion: "foo//whatever",
    					APIResources: []metav1.APIResource{
    						{Name: "bars", Namespaced: true, Kind: "Bar", Verbs: metav1.Verbs{"delete", "list", "watch"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  7. api/openapi-spec/v3/apis__authentication.k8s.io__v1alpha1_openapi.json

                "default": "",
                "description": "name is the plural name of the resource.",
                "type": "string"
              },
              "namespaced": {
                "default": false,
                "description": "namespaced indicates if a resource is namespaced or not.",
                "type": "boolean"
              },
              "shortNames": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:25 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller.go

    		}
    
    		apiResourcesForDiscovery = append(apiResourcesForDiscovery, metav1.APIResource{
    			Name:               crd.Status.AcceptedNames.Plural,
    			SingularName:       crd.Status.AcceptedNames.Singular,
    			Namespaced:         crd.Spec.Scope == apiextensionsv1.NamespaceScoped,
    			Kind:               crd.Status.AcceptedNames.Kind,
    			Verbs:              verbs,
    			ShortNames:         crd.Status.AcceptedNames.ShortNames,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 21 11:40:03 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  9. pkg/controller/garbagecollector/garbagecollector.go

    	// deleted during a cluster upgrade.
    	resource, namespaced, err := gc.apiResource(reference.APIVersion, reference.Kind)
    	if err != nil {
    		return false, nil, err
    	}
    	if !namespaced {
    		absentOwnerCacheKey.Namespace = ""
    	}
    
    	if len(item.identity.Namespace) == 0 && namespaced {
    		// item is a cluster-scoped object referring to a namespace-scoped owner, which is not valid.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  10. api/openapi-spec/v3/apis__authentication.k8s.io__v1beta1_openapi.json

                "default": "",
                "description": "name is the plural name of the resource.",
                "type": "string"
              },
              "namespaced": {
                "default": false,
                "description": "namespaced indicates if a resource is namespaced or not.",
                "type": "boolean"
              },
              "shortNames": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:25 UTC 2023
    - 31.5K bytes
    - Viewed (0)
Back to top