Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 345 for NodeName (0.34 sec)

  1. pkg/scheduler/internal/cache/snapshot.go

    	nodeNameToInfo := make(map[string]*framework.NodeInfo)
    	for _, pod := range pods {
    		nodeName := pod.Spec.NodeName
    		if _, ok := nodeNameToInfo[nodeName]; !ok {
    			nodeNameToInfo[nodeName] = framework.NewNodeInfo()
    		}
    		nodeNameToInfo[nodeName].AddPod(pod)
    	}
    	imageExistenceMap := createImageExistenceMap(nodes)
    
    	for _, node := range nodes {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. pkg/kubelet/config/file.go

    }
    
    type sourceFile struct {
    	path           string
    	nodeName       types.NodeName
    	period         time.Duration
    	store          cache.Store
    	fileKeyMapping map[string]string
    	updates        chan<- interface{}
    	watchEvents    chan *watchEvent
    }
    
    // NewSourceFile watches a config file for changes.
    func NewSourceFile(path string, nodeName types.NodeName, period time.Duration, updates chan<- interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 01 07:19:44 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  3. pkg/kubelet/config/apiserver.go

    func NewSourceApiserver(c clientset.Interface, nodeName types.NodeName, nodeHasSynced func() bool, updates chan<- interface{}) {
    	lw := cache.NewListWatchFromClient(c.CoreV1().RESTClient(), "pods", metav1.NamespaceAll, fields.OneTermEqualSelector("spec.nodeName", string(nodeName)))
    
    	// The Reflector responsible for watching pods at the apiserver should be run only after
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 21 19:46:27 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/endpoint_builder.go

    			ClusterID: c.Cluster(),
    		},
    		tlsMode:  model.GetTLSModeFromEndpointLabels(proxy.Labels),
    		nodeName: proxy.GetNodeName(),
    	}
    	var networkID network.ID
    	if len(proxy.IPAddresses) > 0 {
    		networkID = out.endpointNetwork(proxy.IPAddresses[0])
    	}
    	out.labels = labelutil.AugmentLabels(proxy.Labels, c.Cluster(), locality, out.nodeName, networkID)
    	return out
    }
    
    func (b *EndpointBuilder) buildIstioEndpoint(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/client-go/applyconfigurations/core/v1/endpointaddress.go

    	return b
    }
    
    // WithNodeName sets the NodeName field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the NodeName field is set to the value of the last call.
    func (b *EndpointAddressApplyConfiguration) WithNodeName(value string) *EndpointAddressApplyConfiguration {
    	b.NodeName = &value
    	return b
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  6. pkg/kubelet/util/nodelease.go

    		if len(lease.OwnerReferences) == 0 {
    			if node, err := c.CoreV1().Nodes().Get(context.TODO(), nodeName, metav1.GetOptions{}); err == nil {
    				lease.OwnerReferences = []metav1.OwnerReference{
    					{
    						APIVersion: corev1.SchemeGroupVersion.WithKind("Node").Version,
    						Kind:       corev1.SchemeGroupVersion.WithKind("Node").Kind,
    						Name:       nodeName,
    						UID:        node.UID,
    					},
    				}
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 07 15:47:46 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  7. pkg/apis/resource/validation/validation_resourceslice_test.go

    	"k8s.io/kubernetes/pkg/apis/resource"
    	"k8s.io/utils/ptr"
    )
    
    func testResourceSlice(name, nodeName, driverName string) *resource.ResourceSlice {
    	return &resource.ResourceSlice{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		NodeName:   nodeName,
    		DriverName: driverName,
    		ResourceModel: resource.ResourceModel{
    			NamedResources: &resource.NamedResourcesResources{},
    		},
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/phases/patchnode/patchnode.go

    // AnnotateCRISocket annotates the node with the given crisocket
    func AnnotateCRISocket(client clientset.Interface, nodeName string, criSocket string) error {
    
    	klog.V(1).Infof("[patchnode] Uploading the CRI Socket information %q to the Node API object %q as an annotation\n", criSocket, nodeName)
    
    	return apiclient.PatchNode(client, nodeName, func(n *v1.Node) {
    		annotateNodeWithCRISocket(n, criSocket)
    	})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/patchnode/patchnode_test.go

    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    
    			nodename := "node01"
    			node := &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: nodename,
    					Labels: map[string]string{
    						v1.LabelHostname: nodename,
    					},
    					Annotations: map[string]string{},
    				},
    			}
    
    			if tc.currentCRISocketAnnotation != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 12 15:15:45 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  10. pkg/kubelet/config/http.go

    type sourceURL struct {
    	url         string
    	header      http.Header
    	nodeName    types.NodeName
    	updates     chan<- interface{}
    	data        []byte
    	failureLogs int
    	client      *http.Client
    }
    
    // NewSourceURL specifies the URL where to read the Pod configuration from, then watches it for changes.
    func NewSourceURL(url string, header http.Header, nodeName types.NodeName, period time.Duration, updates chan<- interface{}) {
    	config := &sourceURL{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 01 07:19:44 UTC 2021
    - 4.1K bytes
    - Viewed (0)
Back to top