Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for containerPort (0.17 sec)

  1. cni/pkg/nodeagent/net_test.go

    	}
    }
    
    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{
    			ProbeHandler: corev1.ProbeHandler{
    				HTTPGet: &corev1.HTTPGetAction{
    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)
  2. istioctl/pkg/workload/workload_test.go

    		want        string
    	}{
    		{
    			description: "test json marshal",
    			ports: map[string]uint32{
    				"HTTP":  80,
    				"HTTPS": 443,
    			},
    			want: `[{"name":"HTTP","containerPort":80,"protocol":""},{"name":"HTTPS","containerPort":443,"protocol":""}]`,
    		},
    	}
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, c.description), func(t *testing.T) {
    			str := marshalWorkloadEntryPodPorts(c.ports)
    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/describe/describe_test.go

    						},
    					},
    					Spec: corev1.PodSpec{
    						Containers: []corev1.Container{
    							{
    								Name: "productpage",
    								Ports: []corev1.ContainerPort{
    									{
    										Name:          "http",
    										ContainerPort: 9080,
    									},
    								},
    							},
    							{
    								Name: "istio-proxy",
    							},
    						},
    					},
    					Status: corev1.PodStatus{
    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)
  4. istioctl/pkg/workload/workload.go

    }
    
    func marshalWorkloadEntryPodPorts(p map[string]uint32) string {
    	var out []model.PodPort
    	for name, port := range p {
    		out = append(out, model.PodPort{Name: name, ContainerPort: int(port)})
    	}
    	if len(out) == 0 {
    		return ""
    	}
    	sort.Slice(out, func(i, j int) bool {
    		return out[i].Name < out[j].Name
    	})
    	str, err := json.Marshal(out)
    	if err != nil {
    		return ""
    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)
  5. istioctl/pkg/validate/validate_test.go

              app: hello
              version: v1
          spec:
            containers:
            - name: hello
              image: istio/examples-hello
              imagePullPolicy: IfNotPresent
              ports:
              - containerPort: 9080
    - apiVersion: apps/v1
      kind: Deployment
      metadata:
        labels:
          app: details
          version: v2
        name: details
      spec:
        replicas: 1
        template:
          metadata:
    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)
  6. istioctl/pkg/describe/describe.go

    			// Suppress /<protocol> for TCP, print it for everything else
    			if port.Protocol != "TCP" {
    				protocol = fmt.Sprintf("/%s", port.Protocol)
    			}
    			ports = append(ports, fmt.Sprintf("%d%s (%s)", port.ContainerPort, protocol, container.Name))
    		}
    		// Ref: https://istio.io/latest/docs/ops/deployment/requirements/#pod-requirements
    		if container.Name != "istio-proxy" && container.Name != "istio-operator" {
    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)
Back to top