Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 108 for NamespaceId (0.21 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go

    //	sample is the sample Go type for response type.
    func (b *builder) buildRoute(root, path, httpMethod, actionVerb, operationVerb string, sample interface{}) *restful.RouteBuilder {
    	var namespaced string
    	if b.namespaced {
    		namespaced = "Namespaced"
    	}
    	route := b.ws.Method(httpMethod).
    		Path(root+path).
    		To(func(req *restful.Request, res *restful.Response) {}).
    		Doc(b.descriptionFor(path, operationVerb)).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 22.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. 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)
  7. 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)
  8. 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)
  9. 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)
  10. api/openapi-spec/v3/apis__authentication.k8s.io__v1_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
    - 41.5K bytes
    - Viewed (0)
Back to top