- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for GetProxyWorkloadLabels (0.38 sec)
-
pilot/pkg/serviceregistry/memory/discovery.go
WantGetProxyServiceTargets []model.ServiceTarget InstancesError error Controller model.Controller ClusterID cluster.ID // Used by GetProxyWorkloadLabels ip2workloadLabels map[string]labels.Instance addresses map[string]model.AddressInfo // XDSUpdater will push EDS changes to the ADS model. XdsUpdater model.XDSUpdater
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 23:10:01 UTC 2024 - 12.4K bytes - Viewed (0) -
pilot/pkg/serviceregistry/aggregate/controller.go
} return out } func (c *Controller) GetProxyWorkloadLabels(proxy *model.Proxy) labels.Instance { clusterID := nodeClusterID(proxy) for _, r := range c.GetRegistries() { // If proxy clusterID unset, we may find incorrect workload label. // This can not happen in k8s env. if clusterID == "" || clusterID == r.Cluster() { lbls := r.GetProxyWorkloadLabels(proxy) if lbls != nil { return lbls }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 13.5K bytes - Viewed (0) -
pilot/pkg/serviceregistry/aggregate/controller_test.go
// This ensures callers can distinguish between no labels, and labels not found. aggregateCtl := buildMockController() instances := aggregateCtl.GetProxyWorkloadLabels(&model.Proxy{IPAddresses: []string{mock.HelloInstanceV0}}) if instances != nil { t.Fatalf("expected nil workload labels, got: %v", instances) } } func TestAddRegistry(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 14.5K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/controller.go
out = append(out, model.ServiceInstanceToTarget(i)) } } } return out } func (s *Controller) GetProxyWorkloadLabels(proxy *model.Proxy) labels.Instance { s.mutex.RLock() defer s.mutex.RUnlock() for _, ip := range proxy.IPAddresses { instances := s.serviceInstances.getByIP(ip) for _, i := range instances {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 36.8K bytes - Viewed (0) -
pilot/pkg/model/context.go
// If this is VM proxy, do not override labels at all, because in istio test we use pod to simulate VM. if node.IsVM() { node.Labels = node.Metadata.Labels return } labels := env.GetProxyWorkloadLabels(node) if labels != nil { node.Labels = make(map[string]string, len(labels)+len(node.Metadata.StaticLabels)) // we can't just equate proxy workload labels to node meta labels as it may be customized by user
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 03 08:29:05 UTC 2024 - 33.6K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/controller.go
Port: model.ServiceInstancePort{ ServicePort: svcPort, TargetPort: uint32(tp.Port), }, }) } } return out } 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 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 41.2K bytes - Viewed (0) -
pilot/pkg/model/service.go
// determine the intended destination of a connection without a Host header on the request. GetProxyServiceTargets(*Proxy) []ServiceTarget GetProxyWorkloadLabels(*Proxy) labels.Instance // MCSServices returns information about the services that have been exported/imported via the // Kubernetes Multi-Cluster Services (MCS) ServiceExport API. Only applies to services in
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 02:03:58 UTC 2024 - 46.3K bytes - Viewed (0) -
pilot/pkg/model/push_context_test.go
panic("implement me") } func (l *localServiceDiscovery) GetProxyServiceTargets(*Proxy) []ServiceTarget { panic("implement me") } func (l *localServiceDiscovery) GetProxyWorkloadLabels(*Proxy) labels.Instance { panic("implement me") } func (l *localServiceDiscovery) GetIstioServiceAccounts(*Service) []string { return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 95.3K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/controller_test.go
IPAddresses: []string{"128.0.0.1"}, ID: "pod1.nsa", DNSDomain: "nsa.svc.cluster.local", Metadata: &model.NodeMetadata{Namespace: "nsa", ClusterID: clusterID}, } got := controller.GetProxyWorkloadLabels(proxy) if pod.Spec.NodeName != got[labelutil.LabelHostname] { t.Fatalf("expected node name %v, got %v", pod.Spec.NodeName, got[labelutil.LabelHostname]) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 85K bytes - Viewed (0)