Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for create_node (0.24 sec)

  1. hack/make-rules/test-cmd.sh

    # and name get wiped, there were be no field managers tracking any fields.
    #
    # Exports:
    #   SUPPORTED_RESOURCES(Array of all resources supported by the apiserver).
    function create_node() {
      kubectl create -f - << __EOF__
    {
      "kind": "Node",
      "apiVersion": "v1",
      "metadata": {
        "name": "127.0.0.1",
        "annotations": {
          "save-managers": "true"
        }
      },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 09:10:14 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. fastapi/exceptions.py

                    """
                ),
            ] = None,
        ) -> None:
            super().__init__(code=code, reason=reason)
    
    
    RequestErrorModel: Type[BaseModel] = create_model("Request")
    WebSocketErrorModel: Type[BaseModel] = create_model("WebSocket")
    
    
    class FastAPIError(RuntimeError):
        """
        A generic, FastAPI-specific error.
        """
    
    
    class ValidationException(Exception):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. pkg/controller/testutil/test_utils.go

    			nodes = append(nodes, m.Existing[i])
    		}
    	}
    	for i := 0; i < len(m.CreatedNodes); i++ {
    		if !contains(m.CreatedNodes[i], m.DeletedNodes) && !contains(m.CreatedNodes[i], nodes) {
    			nodes = append(nodes, m.CreatedNodes[i])
    		}
    	}
    	nodeList := &v1.NodeList{}
    	for _, node := range nodes {
    		nodeList.Items = append(nodeList.Items, *node)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  4. pkg/scheduler/extender_test.go

    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    
    			cache := internalcache.New(ctx, time.Duration(0))
    			for _, name := range test.nodes {
    				cache.AddNode(logger, createNode(name))
    			}
    			fwk, err := tf.NewFramework(
    				ctx,
    				test.registerPlugins, "",
    				runtime.WithClientSet(client),
    				runtime.WithInformerFactory(informerFactory),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  5. fastapi/utils.py

        PydanticSchemaGenerationError,
        Undefined,
        UndefinedType,
        Validator,
        lenient_issubclass,
    )
    from fastapi.datastructures import DefaultPlaceholder, DefaultType
    from pydantic import BaseModel, create_model
    from pydantic.fields import FieldInfo
    from typing_extensions import Literal
    
    if TYPE_CHECKING:  # pragma: nocover
        from .routing import APIRoute
    
    # Cache for `create_cloned_field`
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. pkg/registry/registrytest/node.go

    }
    
    func (r *NodeRegistry) ListNodes(ctx context.Context, options *metainternalversion.ListOptions) (*api.NodeList, error) {
    	r.Lock()
    	defer r.Unlock()
    	return &r.Nodes, r.Err
    }
    
    func (r *NodeRegistry) CreateNode(ctx context.Context, node *api.Node) error {
    	r.Lock()
    	defer r.Unlock()
    	r.Node = node.Name
    	r.Nodes.Items = append(r.Nodes.Items, *node)
    	return r.Err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 23:13:50 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. src/internal/profile/graph.go

    	if id < uint64(len(l.s)) {
    		return l.s[id]
    	} else {
    		return l.m[id]
    	}
    }
    
    // CreateNodes creates graph nodes for all locations in a profile. It
    // returns set of all nodes, plus a mapping of each location to the
    // set of corresponding nodes (one per location.Line).
    func CreateNodes(prof *Profile, o *Options) (Nodes, locationMap) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 20:59:15 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. src/syscall/syscall_windows.go

    		sa = makeInheritSa()
    	}
    	var createmode uint32
    	switch {
    	case mode&(O_CREAT|O_EXCL) == (O_CREAT | O_EXCL):
    		createmode = CREATE_NEW
    	case mode&(O_CREAT|O_TRUNC) == (O_CREAT | O_TRUNC):
    		createmode = CREATE_ALWAYS
    	case mode&O_CREAT == O_CREAT:
    		createmode = OPEN_ALWAYS
    	case mode&O_TRUNC == O_TRUNC:
    		createmode = TRUNCATE_EXISTING
    	default:
    		createmode = OPEN_EXISTING
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  9. fastapi/_compat.py

        Sequence,
        Set,
        Tuple,
        Type,
        Union,
    )
    
    from fastapi.exceptions import RequestErrorModel
    from fastapi.types import IncEx, ModelNameMap, UnionType
    from pydantic import BaseModel, create_model
    from pydantic.version import VERSION as P_VERSION
    from starlette.datastructures import UploadFile
    from typing_extensions import Annotated, Literal, get_args, get_origin
    
    # Reassign variable to make it reexported for mypy
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationRoleUsageIntegrationTest.groovy

            succeeds 'help'
        }
    
        def "locked configurations' usage can not be updated with all"() {
            given:
            buildFile << """
                configurations {
                    $createCode
                }
    
                configurations.all {
                    canBeResolved = !canBeResolved
                    canBeConsumed = !canBeConsumed
                    canBeDeclared = !canBeDeclared
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 01:42:49 UTC 2024
    - 27.5K bytes
    - Viewed (0)
Back to top