Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 61 for addressType (0.62 sec)

  1. pilot/pkg/xds/workload.go

    				resources = append(resources, &discovery.Resource{
    					Name:     n,
    					Aliases:  aliases,
    					Resource: protoconv.MessageToAny(addr.GetWorkload()), // TODO: pre-marshal
    				})
    			}
    		case v3.AddressType:
    			resources = append(resources, &discovery.Resource{
    				Name:     n,
    				Aliases:  aliases,
    				Resource: protoconv.MessageToAny(addr), // TODO: pre-marshal
    			})
    		}
    	}
    
    	if full {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 14:14:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. pilot/pkg/config/kube/gateway/conversion_test.go

    				Addresses: []k8s.GatewayAddress{
    					{
    						Value: "abc",
    					},
    					{
    						Type: func() *k8s.AddressType {
    							t := k8s.HostnameAddressType
    							return &t
    						}(),
    						Value: "example.com",
    					},
    					{
    						Type: func() *k8s.AddressType {
    							t := k8s.IPAddressType
    							return &t
    						}(),
    						Value: "1.2.3.4",
    					},
    				},
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 20:24:52 UTC 2024
    - 34.9K bytes
    - Viewed (0)
  3. pkg/kubelet/nodestatus/setters.go

    				{Type: v1.NodeHostName, Address: hostname},
    			}
    		}
    		return nil
    	}
    }
    
    func hasAddressType(addresses []v1.NodeAddress, addressType v1.NodeAddressType) bool {
    	for _, address := range addresses {
    		if address.Type == addressType {
    			return true
    		}
    	}
    	return false
    }
    func hasAddressValue(addresses []v1.NodeAddress, addressValue string) bool {
    	for _, address := range addresses {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. pkg/proxy/iptables/number_generated_rules_test.go

    	epPort := 8080
    
    	eps := &discovery.EndpointSlice{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "ep",
    			Namespace: "namespace",
    		},
    		AddressType: discovery.AddressTypeIPv4,
    		Endpoints:   []discovery.Endpoint{},
    		Ports: []discovery.EndpointPort{{
    			Name:     ptr.To(fmt.Sprintf("%d", epPort)),
    			Port:     ptr.To(int32(epPort)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. pilot/pkg/config/kube/gateway/deploymentcontroller_test.go

    				},
    				Spec: k8s.GatewaySpec{
    					GatewayClassName: k8s.ObjectName(features.GatewayAPIDefaultGatewayClass),
    					Addresses: []k8s.GatewayAddress{{
    						Type:  func() *k8s.AddressType { x := k8s.IPAddressType; return &x }(),
    						Value: "1.2.3.4",
    					}},
    				},
    			},
    			objects:                  defaultObjects,
    			discoveryNamespaceFilter: discoveryNamespacesFilter,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. pilot/pkg/xds/delta_test.go

    	s.MemRegistry.AddServiceInfo(svcA, svcB, svcC)
    
    	// Wait until the above debounce, to ensure we can precisely check XDS responses without spurious pushes
    	s.EnsureSynced(t)
    
    	ads := s.ConnectDeltaADS().WithType(v3.AddressType).WithID("ztunnel~1.1.1.1~test.default~default.svc.cluster.local")
    	ads.Request(&discovery.DeltaDiscoveryRequest{
    		ResourceNamesSubscribe: []string{"*"},
    	})
    	resp := ads.ExpectResponse()
    	if len(resp.Resources) != 6 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/endpointslice.go

    	}
    
    	return model.UnHealthy
    }
    
    func (esc *endpointSliceController) updateEndpointCacheForSlice(hostName host.Name, slice *v1.EndpointSlice) {
    	var endpoints []*model.IstioEndpoint
    	if slice.AddressType == v1.AddressTypeFQDN {
    		// TODO(https://github.com/istio/istio/issues/34995) support FQDN endpointslice
    		return
    	}
    	svc := esc.c.GetService(hostName)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. pkg/proxy/endpointslicecache_test.go

    			Name:      fmt.Sprintf("%s-%d", serviceName, sliceNum),
    			Namespace: namespace,
    			Labels:    map[string]string{discovery.LabelServiceName: serviceName},
    		},
    		Ports:       []discovery.EndpointPort{},
    		AddressType: discovery.AddressTypeIPv4,
    		Endpoints:   []discovery.Endpoint{},
    	}
    
    	for i, portNum := range portNums {
    		endpointSlice.Ports = append(endpointSlice.Ports, discovery.EndpointPort{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  9. pkg/proxy/endpointschangetracker_test.go

    			Name:        fmt.Sprintf("%s-%d", name, slice),
    			Namespace:   namespace,
    			Annotations: map[string]string{},
    			Labels: map[string]string{
    				discovery.LabelServiceName: name,
    			},
    		},
    		AddressType: discovery.AddressTypeIPv4,
    	}
    	epsFunc(eps)
    	return eps
    }
    
    func TestUpdateEndpointsMap(t *testing.T) {
    	emptyEndpoint := func(eps *discovery.EndpointSlice) {
    		eps.Endpoints = []discovery.Endpoint{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 79.9K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/serviceregistry_test.go

    }
    
    // nolint: unparam
    func createEndpointSliceWithType(t *testing.T, c kubernetes.Interface, name, serviceName, namespace string,
    	ports []v1.EndpointPort, ips []string, addrType discovery.AddressType,
    ) {
    	esps := make([]discovery.EndpointPort, 0)
    	for _, name := range ports {
    		n := name // Create a stable reference to take the pointer from
    		esps = append(esps, discovery.EndpointPort{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
Back to top