Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for posts (0.25 sec)

  1. 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)
  2. 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)
  3. cni/pkg/iptables/iptables.go

    	// and our unit tests will flake if rules have a nondeterministic ordering.
    	// CLI: -t mangle -A ISTIO_PRERT -s 169.254.7.127 -p tcp -m tcp --dport <PROBEPORT> -j ACCEPT
    	//
    	// DESC: If this is one of our node-probe ports and is from our SNAT-ed/"special" hostside IP, short-circuit out here
    	iptablesBuilder.AppendRule(iptableslog.UndefinedCommand, ChainInpodPrerouting, iptablesconstants.MANGLE,
    		"-s", hostProbeSNAT.String(),
    		"-p", "tcp",
    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)
  4. cni/pkg/nodeagent/net_test.go

    		nlDeps:               nlDeps,
    		ipsetDeps:            fakeIPSetDeps,
    	}
    }
    
    func buildConvincingPod(v6IP bool) *corev1.Pod {
    	app1 := corev1.Container{
    		Name: "app1",
    		Ports: []corev1.ContainerPort{
    			{
    				Name:          "foo-port",
    				ContainerPort: 8010,
    			},
    			{
    				Name:          "foo-2-port",
    				ContainerPort: 8020,
    			},
    		},
    		LivenessProbe: &corev1.Probe{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  5. istioctl/pkg/kubeinject/kubeinject.go

    			pod, err := GetFirstPod(e.client.Kube().CoreV1(), namespace, selector.String())
    			if err != nil {
    				return nil, err
    			}
    			webhookPort := cc.Service.Port
    			podPort := 15017
    			for _, v := range svc.Spec.Ports {
    				if v.Port == *webhookPort {
    					podPort = v.TargetPort.IntValue()
    					break
    				}
    			}
    			f, err := e.client.NewPortForwarder(pod.Name, pod.Namespace, "", 0, podPort)
    			if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  6. operator/cmd/mesh/install.go

    			return fmt.Errorf("failed to setup verifier: %v", err)
    		}
    		if err := installationVerifier.Verify(); err != nil {
    			return fmt.Errorf("verification failed with the following error: %v", err)
    		}
    	}
    
    	// Post-install message
    	if profile == "ambient" {
    		p.Println("The ambient profile has been installed successfully, enjoy Istio without sidecars!")
    	}
    	return nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 14:30:43 GMT 2024
    - 15.5K bytes
    - Viewed (1)
  7. istioctl/pkg/proxyconfig/proxyconfig.go

    	path := "logging"
    	if param != "" {
    		path = path + "?" + param
    	}
    	result, err := kubeClient.EnvoyDoWithPort(context.TODO(), podName, podNamespace, "POST", path, proxyAdminPort)
    	if err != nil {
    		return "", fmt.Errorf("failed to execute command on Envoy: %v", err)
    	}
    	return string(result), nil
    }
    
    func getLogLevelFromConfigMap(ctx cli.Context) (string, error) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
  8. istioctl/pkg/describe/describe_test.go

    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "productpage",
    						Namespace: "default",
    					},
    					Spec: corev1.ServiceSpec{
    						Selector: map[string]string{
    							"app": "productpage",
    						},
    						Ports: []corev1.ServicePort{
    							{
    								Name:       "http",
    								Port:       9080,
    								TargetPort: intstr.FromInt32(9080),
    							},
    						},
    					},
    				},
    				&corev1.Service{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  9. istioctl/pkg/util/configdump/workload.go

    type ZtunnelService struct {
    	Name      string         `json:"name"`
    	Namespace string         `json:"namespace"`
    	Hostname  string         `json:"hostname"`
    	Addresses []string       `json:"addresses"`
    	Ports     map[string]int `json:"ports"`
    }
    
    type ZtunnelDump struct {
    	Workloads    map[string]*ZtunnelWorkload `json:"by_addr"`
    	Services     map[string]*ZtunnelService  `json:"by_vip"`
    Go
    - Registered: Wed Apr 10 22:53:08 GMT 2024
    - Last Modified: Fri Mar 22 16:24:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. 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)
Back to top