Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AlwaysDiscoverable (0.23 sec)

  1. pilot/pkg/serviceregistry/kube/controller/serviceexportcache.go

    			// If the service is exported in this cluster, allow the endpoints in this cluster to be discoverable
    			// anywhere in the mesh.
    			if ec.isExported(namespacedNameForService(svc)) {
    				return model.AlwaysDiscoverable
    			}
    
    			// Otherwise, endpoints are only discoverable from within the same cluster.
    			return model.DiscoverableFromSameCluster
    		}
    
    		// Set the discoverability policy for the cluster.local host.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/conversion.go

    	if svc.Attributes.ExternalName == "" {
    		return nil
    	}
    	out := make([]*model.IstioEndpoint, 0, len(svc.Ports))
    
    	discoverabilityPolicy := model.AlwaysDiscoverable
    	if features.EnableMCSServiceDiscovery {
    		// MCS spec does not allow export of external name services.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/pod.go

    	if len(pc.c.handlers.GetWorkloadHandlers()) == 0 {
    		return
    	}
    	// fire instance handles for workload
    	ep := pc.c.NewEndpointBuilder(pod).buildIstioEndpoint(pod.Status.PodIP, 0, "", model.AlwaysDiscoverable, model.Healthy)
    	workloadInstance := &model.WorkloadInstance{
    		Name:      pod.Name,
    		Namespace: pod.Namespace,
    		Kind:      model.PodKind,
    		Endpoint:  ep,
    		PortMap:   getPortMap(pod),
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. pilot/pkg/model/service.go

    	return []cmp.Option{endpointDiscoverabilityPolicyImplCmpOpt}
    }
    
    // AlwaysDiscoverable is an EndpointDiscoverabilityPolicy that allows an endpoint to be discoverable throughout the mesh.
    var AlwaysDiscoverable EndpointDiscoverabilityPolicy = &endpointDiscoverabilityPolicyImpl{
    	name: "AlwaysDiscoverable",
    	f: func(*IstioEndpoint, *Proxy) bool {
    		return true
    	},
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    		assert.Equal(t, eps[0], &model.IstioEndpoint{
    			Address:               "foo.co",
    			ServicePortName:       "tcp-port-1",
    			EndpointPort:          1,
    			DiscoverabilityPolicy: model.AlwaysDiscoverable,
    		})
    	})
    }
    
    func TestController_ExternalNameService(t *testing.T) {
    	test.SetForTest(t, &features.EnableExternalNameAlias, false)
    	deleteWg := sync.WaitGroup{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
Back to top