Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for SetMode (0.16 sec)

  1. pkg/serviceaccount/claims_test.go

    	if f.secret == nil {
    		return nil, apierrors.NewNotFound(schema.GroupResource{Group: "", Resource: "secrets"}, name)
    	}
    	return f.secret, nil
    }
    func (f fakeGetter) GetNode(name string) (*v1.Node, error) {
    	if f.node == nil {
    		return nil, apierrors.NewNotFound(schema.GroupResource{Group: "", Resource: "nodes"}, name)
    	}
    	return f.node, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/noderesources/fit.go

    func isFit(pod *v1.Pod, node *v1.Node) bool {
    	if node == nil {
    		return false
    	}
    	nodeInfo := framework.NewNodeInfo()
    	nodeInfo.SetNode(node)
    	return len(Fits(pod, nodeInfo)) == 0
    }
    
    // Filter invoked at the filter extension point.
    // Checks if a node has sufficient resources, such as cpu, memory, gpu, opaque int resources etc to run a pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go

    		addLimitToNode()
    		addDriversCSINode(true)
    	case "csinode-with-no-limit":
    		addDriversCSINode(false)
    	case "no-csi-driver":
    		initCSINode()
    	default:
    		// Do nothing.
    	}
    
    	nodeInfo.SetNode(node)
    	return nodeInfo, csiNode
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  4. pkg/kube/inject/inject.go

    		imageType = it
    	}
    
    	return imageURL(global.GetHub(), imageName, tag, imageType)
    }
    
    func InboundTrafficPolicyMode(meshConfig *meshconfig.MeshConfig) string {
    	switch meshConfig.GetInboundTrafficPolicy().GetMode() {
    	case meshconfig.MeshConfig_InboundTrafficPolicy_LOCALHOST:
    		return "localhost"
    	case meshconfig.MeshConfig_InboundTrafficPolicy_PASSTHROUGH:
    		return "passthrough"
    	}
    	return "passthrough"
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/cluster.go

    		port := int(instance.Port.TargetPort)
    		clustersToBuild[port] = append(clustersToBuild[port], instance)
    	}
    
    	bind := actualLocalHosts[0]
    	if cb.req.Push.Mesh.GetInboundTrafficPolicy().GetMode() == meshconfig.MeshConfig_InboundTrafficPolicy_PASSTHROUGH {
    		bind = ""
    	}
    	// For each workload port, we will construct a cluster
    	for epPort, instances := range clustersToBuild {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 33K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_node_status.go

    			kl.containerRuntimeReadyExpected = true
    		}
    	}()
    
    	if timeout {
    		klog.ErrorS(nil, "Node not becoming ready in time after startup")
    		return true
    	}
    
    	originalNode, err := kl.GetNode()
    	if err != nil {
    		klog.ErrorS(err, "Error getting the current node from lister")
    		return false
    	}
    
    	readyIdx, originalNodeReady := nodeutil.GetNodeCondition(&originalNode.Status, v1.NodeReady)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/types_test.go

    				t.Errorf("expected: %#v, got: %#v", test.expectedNodeInfo, ni)
    			}
    		})
    	}
    }
    
    func fakeNodeInfo(pods ...*v1.Pod) *NodeInfo {
    	ni := NewNodeInfo(pods...)
    	ni.SetNode(&v1.Node{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "test-node",
    		},
    	})
    	return ni
    }
    
    type hostPortInfoParam struct {
    	protocol, ip string
    	port         int32
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/gateway.go

    		// based on the match port/server port and the gateway name
    		for _, tcp := range vsvc.Tcp {
    			if l4MultiMatch(tcp.Match, server, gateway) {
    				includeMx := server.GetTls().GetMode() == networking.ServerTLSSettings_ISTIO_MUTUAL
    				return lb.buildOutboundNetworkFilters(tcp.Route, port, v.Meta, includeMx)
    			}
    		}
    	}
    
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 46.4K bytes
    - Viewed (0)
Back to top