Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 159 for responses (0.32 sec)

  1. istioctl/pkg/proxystatus/proxystatus_test.go

    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    					cmdtesting.NewInternalType("", "", "foo")),
    			},
    		}
    		return tf
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. pkg/test/echo/server/forwarder/tcp.go

    		// the message is sent last - when we get the whole message we can stop reading
    		if err == io.EOF || strings.Contains(resBuffer.String(), message) {
    			break
    		}
    	}
    
    	// format the output for forwarder response
    	for _, line := range strings.Split(resBuffer.String(), "\n") {
    		if line != "" {
    			echo.WriteBodyLine(&msgBuilder, requestID, line)
    		}
    	}
    
    	msg := msgBuilder.String()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. tools/istio-iptables/pkg/validation/validator.go

    			ServerOriginalIP:    serverIP,
    			ServerReadyBarrier:  make(chan ReturnCode, 1),
    			ProbeTimeout:        config.ProbeTimeout,
    		},
    	}
    }
    
    // Write human readable response
    func echo(conn io.WriteCloser, echo []byte) {
    	_, _ = conn.Write(echo)
    	_ = conn.Close()
    }
    
    func restoreOriginalAddress(l net.Listener, config *Config, c chan<- ReturnCode) {
    	defer l.Close()
    	for {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 01 04:37:36 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. pkg/kube/client.go

    		if err != nil {
    			return nil, err
    		}
    		if len(res) > 0 {
    			result[istiod.Name] = res
    		}
    	}
    	// If any Discovery servers responded, treat as a success
    	if len(result) > 0 {
    		return result, nil
    	}
    	return nil, nil
    }
    
    func (c *client) EnvoyDo(ctx context.Context, podName, podNamespace, method, path string) ([]byte, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  5. pilot/pkg/xds/xdsgen.go

    	}
    	return g
    }
    
    // Push an XDS resource for the given connection. Configuration will be generated
    // based on the passed in generator. Based on the updates field, generators may
    // choose to send partial or even no response if there are no changes.
    func (s *DiscoveryServer) pushXds(con *Connection, w *model.WatchedResource, req *model.PushRequest) error {
    	if w == nil {
    		return nil
    	}
    	gen := s.findGenerator(w.TypeUrl, con)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. pkg/config/validation/validation.go

    		return fmt.Errorf(`invalid header %q: header cannot have ":" prefix`, name)
    	}
    	return nil
    }
    
    // ValidateHTTPHeaderOperationName validates a header name when used to remove from request or modify response.
    func ValidateHTTPHeaderOperationName(name string) error {
    	if name == "" {
    		return fmt.Errorf("header name cannot be empty")
    	}
    	if strings.EqualFold(name, "host") {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  7. pkg/workloadapi/workload.pb.go

    	// The hostname for the workload to be resolved by the ztunnel.
    	// DNS queries are sent on-demand by default.
    	// If the resolved DNS query has several endpoints, the request will be forwarded
    	// to the first response.
    	//
    	// At a minimum, each workload must have either an address or hostname. For example,
    	// a workload that backs a Kubernetes service will typically have only endpoints. A
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:35 UTC 2024
    - 65.9K bytes
    - Viewed (0)
  8. istioctl/pkg/kubeinject/kubeinject.go

    			SubResource:        "",
    			RequestKind:        nil,
    			RequestResource:    nil,
    			RequestSubResource: "",
    			Name:               pod.Name,
    			Namespace:          deploymentNS,
    		},
    		Response: nil,
    	}
    	revBytes, err := json.Marshal(rev)
    	if err != nil {
    		return nil, err
    	}
    	resp, err := client.Post(address, "application/json", bytes.NewBuffer(revBytes))
    	if err != nil {
    		return nil, err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  9. pilot/pkg/xds/workload_test.go

    		expect(ads.ExpectResponse(), "Kubernetes//Pod/default/pod", "Kubernetes//Pod/default/pod2")
    
    		// Now create pods in the service...
    		createPod(s, "pod4", "not-sa", "127.0.0.4", "not-node")
    		// Not subscribed, no response
    		ads.ExpectNoResponse()
    
    		// Now we subscribe to the service explicitly
    		ads.Request(&discovery.DeltaDiscoveryRequest{
    			ResourceNamesSubscribe: []string{"/10.0.0.1"},
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    	assert.EventuallyEqual(t, func() int {
    		ep := GetEndpointsForPort(svc, ctl.Endpoints, 80)
    		return len(ep)
    	}, 2)
    
    	ep := GetEndpointsForPort(svc, ctl.Endpoints, 80)
    	if len(ep) != 2 {
    		t.Fatalf("Invalid response for GetEndpoints %v", ep)
    	}
    
    	if ep[0].Address == "10.10.1.1" && ep[0].Network != "network1" {
    		t.Fatalf("Endpoint with IP 10.10.1.1 is expected to be in network1 but get: %s", ep[0].Network)
    	}
    
    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