Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for GetNodeName (0.27 sec)

  1. pilot/pkg/xds/endpoints/endpoint_builder.go

    	h.Write(Separator)
    	if len(b.failoverPriorityLabels) > 0 {
    		h.Write(b.failoverPriorityLabels)
    		h.Write(Separator)
    	}
    	if b.service.Attributes.NodeLocal {
    		h.WriteString(b.proxy.GetNodeName())
    		h.Write(Separator)
    	}
    
    	if b.push != nil && b.push.AuthnPolicies != nil {
    		h.WriteString(b.push.AuthnPolicies.GetVersion())
    	}
    	h.Write(Separator)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. cmd/kubelet/app/server.go

    	clientConfig.QPS = float32(s.KubeAPIQPS)
    	clientConfig.Burst = int(s.KubeAPIBurst)
    }
    
    // getNodeName returns the node name according to the cloud provider
    // if cloud provider is specified. Otherwise, returns the hostname of the node.
    func getNodeName(cloud cloudprovider.Interface, hostname string) (types.NodeName, error) {
    	if cloud == nil {
    		return types.NodeName(hostname), nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  3. pkg/volume/testing/volume_host.go

    	if f.nodeLabels == nil {
    		f.nodeLabels = map[string]string{"test-label": "test-value"}
    	}
    	return f.nodeLabels, nil
    }
    
    func (f *fakeVolumeHost) GetNodeName() types.NodeName {
    	return types.NodeName(f.nodeName)
    }
    
    func (f *fakeVolumeHost) GetEventRecorder() record.EventRecorder {
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocConverter.java

            List<Element> nodes = docComment.getDocbook();
            if (nodes.isEmpty()) {
                return;
            }
    
            Element firstNode = nodes.get(0);
            if (!firstNode.getNodeName().equals("para") || !(firstNode.getFirstChild() instanceof Text)) {
                return;
            }
    
            Text comment = (Text) firstNode.getFirstChild();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 29.3K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_attacher_test.go

    			}
    
    			if tc.deviceMountPath != "" {
    				tc.deviceMountPath = filepath.Join(tmpDir, tc.deviceMountPath)
    			}
    
    			nodeName := string(csiAttacher.plugin.host.GetNodeName())
    			attachID := getAttachmentName(tc.volName, testDriver, nodeName)
    
    			if tc.createAttachment {
    				// Set up volume attachment
    				attachment := makeTestAttachment(attachID, nodeName, pvName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  6. pilot/pkg/xds/ads.go

    		}
    	}
    	// add topology labels to proxy labels
    	proxy.Labels = labelutil.AugmentLabels(
    		proxy.Labels,
    		proxy.Metadata.ClusterID,
    		util.LocalityToString(proxy.Locality),
    		proxy.GetNodeName(),
    		proxy.Metadata.Network,
    	)
    }
    
    func localityFromProxyLabels(proxy *model.Proxy) *core.Locality {
    	region, f1 := proxy.Labels[labelutil.LabelTopologyRegion]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  7. pkg/controller/volume/attachdetach/attach_detach_controller.go

    	}
    }
    
    func (adc *attachDetachController) GetNodeLabels() (map[string]string, error) {
    	return nil, fmt.Errorf("GetNodeLabels() unsupported in Attach/Detach controller")
    }
    
    func (adc *attachDetachController) GetNodeName() types.NodeName {
    	return ""
    }
    
    func (adc *attachDetachController) GetEventRecorder() record.EventRecorder {
    	return nil
    }
    
    func (adc *attachDetachController) GetSubpather() subpath.Interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  8. pkg/volume/plugins.go

    	GetExec(pluginName string) exec.Interface
    
    	// Returns the labels on the node
    	GetNodeLabels() (map[string]string, error)
    
    	// Returns the name of the node
    	GetNodeName() types.NodeName
    
    	GetAttachedVolumesFromNodeStatus() (map[v1.UniqueVolumeName]string, error)
    
    	// Returns the event recorder of kubelet.
    	GetEventRecorder() record.EventRecorder
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  9. pilot/pkg/model/context.go

    	return node.Metadata.Labels[constants.TestVMLabel] != ""
    }
    
    func (node *Proxy) IsProxylessGrpc() bool {
    	return node.Metadata != nil && node.Metadata.Generator == "grpc"
    }
    
    func (node *Proxy) GetNodeName() string {
    	if node.Metadata != nil && len(node.Metadata.NodeName) > 0 {
    		return node.Metadata.NodeName
    	}
    	// fall back to get the node name from labels
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/controller.go

    func (c *Controller) GetProxyWorkloadLabels(proxy *model.Proxy) labels.Instance {
    	pod := c.pods.getPodByProxy(proxy)
    	if pod != nil {
    		var locality, nodeName string
    		locality = c.getPodLocality(pod)
    		if len(proxy.GetNodeName()) == 0 {
    			// this can happen for an "old" proxy with no `Metadata.NodeName` set
    			// in this case we set the node name in labels on the fly
    			// TODO: remove this when 1.16 is EOL?
    			nodeName = pod.Spec.NodeName
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top