Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 174 for ports (0.18 sec)

  1. cni/pkg/plugin/sidecar_redirect.go

    }
    
    func validatePortList(ports string) error {
    	if _, err := parsePorts(ports); err != nil {
    		return fmt.Errorf("portList %q invalid: %v", ports, err)
    	}
    	return nil
    }
    
    func validatePortListWithWildcard(ports string) error {
    	if ports != "*" {
    		return validatePortList(ports)
    	}
    	return nil
    }
    
    // validateCIDRListWithWildcard validates the includeIPRanges parameter
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  2. istioctl/pkg/workload/workload_test.go

    		})
    	}
    }
    
    func TestWorkloadEntryToPodPortsMeta(t *testing.T) {
    	cases := []struct {
    		description string
    		ports       map[string]uint32
    		want        string
    	}{
    		{
    			description: "test json marshal",
    			ports: map[string]uint32{
    				"HTTP":  80,
    				"HTTPS": 443,
    			},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload.go

    	we := wg.Spec.Template
    	ports := []string{}
    	for _, v := range we.Ports {
    		ports = append(ports, fmt.Sprint(v))
    	}
    	// respect the inbound port annotation and capture all traffic if no inbound ports are set
    	portBehavior := "*"
    	if len(ports) > 0 {
    		portBehavior = strings.Join(ports, ",")
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_test.go

    }
    
    func Test_dedupPorts(t *testing.T) {
    	type args struct {
    		ports []string
    	}
    	tests := []struct {
    		name string
    		args args
    		want []string
    	}{
    		{
    			name: "No duplicates",
    			args: args{ports: []string{"1234", "2345"}},
    			want: []string{"1234", "2345"},
    		},
    		{
    			name: "Sequential Duplicates",
    			args: args{ports: []string{"1234", "1234", "2345", "2345"}},
    			want: []string{"1234", "2345"},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/ztunnel/configdump/api.go

    type ZtunnelService struct {
    	Name         string         `json:"name"`
    	Namespace    string         `json:"namespace"`
    	Hostname     string         `json:"hostname"`
    	Addresses    []string       `json:"vips"`
    	Ports        map[string]int `json:"ports"`
    	LoadBalancer *LoadBalancer  `json:"loadBalancer"`
    	Waypoint     *Waypoint      `json:"waypoint"`
    }
    
    type PolicyMatch struct {
    	Namespaces          []StringMatch `json:"namespaces,omitempty"`
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 25 02:16:06 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  6. cni/pkg/iptables/iptables.go

    	//
    	// DESC: If this is a UDP DNS request to a non-localhost resolver, send it to ztunnel DNS proxy port
    	if redirectDNS {
    		iptablesBuilder.AppendRule(
    			iptableslog.UndefinedCommand, ChainInpodOutput, iptablesconstants.NAT,
    			"!", "-o", "lo",
    			"-p", "udp",
    			"-m", "udp",
    			"--dport", "53",
    			"-j", "REDIRECT",
    			"--to-port", fmt.Sprintf("%d", DNSCapturePort),
    		)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  7. istioctl/pkg/validate/validate_test.go

    kind: Service
    metadata:
      name: hello
    spec:
      ports:
        - name: http
          port: 9080`
    	validPortNamingWithSuffixSvc = `
    apiVersion: v1
    kind: Service
    metadata:
      name: hello
    spec:
      ports:
        - name: http-hello
          port: 9080`
    	invalidPortNamingSvc = `
    apiVersion: v1
    kind: Service
    metadata:
      name: hello
    spec:
      ports:
        - name: hello
          port: 9080`
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  8. internal/dsync/dsync-server_test.go

    	"sync/atomic"
    	"time"
    
    	"github.com/minio/mux"
    )
    
    const numberOfNodes = 5
    
    var (
    	ds          *Dsync
    	nodes       = make([]*httptest.Server, numberOfNodes) // list of node IP addrs or hostname with ports.
    	lockServers = make([]*lockServer, numberOfNodes)
    )
    
    func getLockArgs(r *http.Request) (args LockArgs, err error) {
    	buf, err := io.ReadAll(r.Body)
    	if err != nil {
    		return args, err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  9. istioctl/pkg/describe/describe.go

    		"http": 80,
    	}
    
    	for _, port := range ingress.service.Spec.Ports {
    		if port.Protocol != "TCP" || !portsToShow[port.Name] {
    			continue
    		}
    
    		// Get port number
    		_, err := pilotcontroller.FindPort(ingress.pods[0], &port)
    		if err == nil {
    			nport := int(port.Port)
    			protocol := string(configKube.ConvertProtocol(port.Port, port.Name, port.Protocol, port.AppProtocol))
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  10. operator/cmd/mesh/manifest-generate_test.go

    		g.Expect(s).Should(HavePathValueContain(PathValue{"spec.ports.[0]", portVal("grpc-pilot-mtls", 15011, -1)}))
    		g.Expect(s).Should(HavePathValueContain(PathValue{"spec.ports.[1]", portVal("tcp-citadel-grpc-tls", 8060, 8060)}))
    		g.Expect(s).Should(HavePathValueContain(PathValue{"spec.ports.[2]", portVal("tcp-dns", 5353, -1)}))
    
    		for _, o := range objs.kind(name.HPAStr).objSlice {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top