Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for newActions (0.17 sec)

  1. cmd/kube-proxy/app/server_linux_test.go

    			detectLocal:         "NodeCIDR",
    			expectedDetectLocal: proxyconfigapi.LocalModeNodeCIDR,
    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			options := NewOptions()
    			config := &proxyconfigapi.KubeProxyConfiguration{
    				Mode:            tc.mode,
    				DetectLocalMode: tc.detectLocal,
    			}
    
    			options.platformApplyDefaults(config)
    			if config.Mode != tc.expectedMode {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. pkg/client/tests/remotecommand_test.go

    			stdoutData:   stdoutData,
    			stderrData:   stderrData,
    			expectStdin:  len(stdinData) > 0,
    			tty:          tty,
    			messageCount: messageCount,
    			exec:         exec,
    		}
    
    		opts, err := remotecommand.NewOptions(req)
    		require.NoError(t, err)
    		if exec {
    			cmd := req.URL.Query()[api.ExecCommandParam]
    			remotecommand.ServeExec(w, req, executor, "pod", "uid", "container", cmd, opts, 0, 10*time.Second, serverProtocols)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  3. cmd/kube-apiserver/app/options/options_test.go

    			ProxyClientKeyFile:      "/var/run/kubernetes/proxy.key",
    			ProxyClientCertFile:     "/var/run/kubernetes/proxy.crt",
    			Metrics:                 &metrics.Options{},
    			Logs:                    logs.NewOptions(),
    			Traces: &apiserveroptions.TracingOptions{
    				ConfigFile: "/var/run/kubernetes/tracing_config.yaml",
    			},
    			AggregatorRejectForwardingRedirects: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. cmd/kube-scheduler/app/server_test.go

    			for k, v := range tc.restoreFeatures {
    				featuregatetesting.SetFeatureGateDuringTest(t, feature.DefaultFeatureGate, k, v)
    			}
    
    			fs := pflag.NewFlagSet("test", pflag.PanicOnError)
    			opts := options.NewOptions()
    
    			// use listeners instead of static ports so parallel test runs don't conflict
    			opts.SecureServing.Listener = makeListener(t)
    			defer opts.SecureServing.Listener.Close()
    
    			nfs := opts.Flags
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. cmd/kube-scheduler/app/server.go

    type Option func(runtime.Registry) error
    
    // NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions
    func NewSchedulerCommand(registryOptions ...Option) *cobra.Command {
    	opts := options.NewOptions()
    
    	cmd := &cobra.Command{
    		Use: "kube-scheduler",
    		Long: `The Kubernetes scheduler is a control plane process which assigns
    Pods to Nodes. The scheduler determines which Nodes are valid placements for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. src/text/template/parse/node.go

    type ActionNode struct {
    	NodeType
    	Pos
    	tr   *Tree
    	Line int       // The line number in the input. Deprecated: Kept for compatibility.
    	Pipe *PipeNode // The pipeline in the action.
    }
    
    func (t *Tree) newAction(pos Pos, line int, pipe *PipeNode) *ActionNode {
    	return &ActionNode{tr: t, NodeType: NodeAction, Pos: pos, Line: line, Pipe: pipe}
    }
    
    func (a *ActionNode) String() string {
    	var sb strings.Builder
    	a.writeTo(&sb)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  7. cmd/kube-proxy/app/server.go

    	if err != nil {
    		panic(fmt.Sprintf("Unable to create default config: %v", err))
    	}
    
    	return internalConfig.(*kubeproxyconfig.KubeProxyConfiguration)
    }
    
    // NewOptions returns initialized Options
    func NewOptions() *Options {
    	return &Options{
    		config:      newKubeProxyConfiguration(),
    		healthzPort: ports.ProxyHealthzPort,
    		metricsPort: ports.ProxyStatusPort,
    		errCh:       make(chan error),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  8. pkg/kubelet/server/server.go

    // getAttach handles requests to attach to a container.
    func (s *Server) getAttach(request *restful.Request, response *restful.Response) {
    	params := getExecRequestParams(request)
    	streamOpts, err := remotecommandserver.NewOptions(request.Request)
    	if err != nil {
    		utilruntime.HandleError(err)
    		response.WriteError(http.StatusBadRequest, err)
    		return
    	}
    	pod, ok := s.host.GetPodByName(params.podNamespace, params.podName)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  9. src/text/template/parse/parse.go

    	case itemTemplate:
    		return t.templateControl()
    	case itemWith:
    		return t.withControl()
    	}
    	t.backup()
    	token := t.peek()
    	// Do not pop variables; they persist until "end".
    	return t.newAction(token.pos, token.line, t.pipeline("command", itemRightDelim))
    }
    
    // Break:
    //
    //	{{break}}
    //
    // Break keyword is past.
    func (t *Tree) breakControl(pos Pos, line int) Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  10. cmd/kube-controller-manager/app/options/options_test.go

    			AlwaysAllowGroups:            []string{"system:masters"},
    		},
    		Master:  "192.168.4.20",
    		Metrics: &metrics.Options{},
    		Logs:    logs.NewOptions(),
    	}
    
    	// Sort GCIgnoredResources because it's built from a map, which means the
    	// insertion order is random.
    	sort.Sort(sortedGCIgnoredResources(expected.GarbageCollectorController.GCIgnoredResources))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top