Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for rewrites (0.3 sec)

  1. pkg/config/validation/validation.go

    	return errs
    }
    
    func validateHTTPRewrite(rewrite *networking.HTTPRewrite) error {
    	if rewrite == nil {
    		return nil
    	}
    	if rewrite.Uri != "" && rewrite.UriRegexRewrite != nil {
    		return errors.New("rewrite may only contain one of URI or UriRegexRewrite")
    	}
    	if rewrite.Uri == "" && rewrite.UriRegexRewrite == nil && rewrite.Authority == "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  2. pkg/config/validation/validation_test.go

    			in: &networking.RegexRewrite{
    				Match:   "^/service/([^/]+)(/.*)$",
    				Rewrite: `\2/instance/\1`,
    			},
    			valid: true,
    		},
    		{
    			name: "uriRegexRewrite missing match",
    			in: &networking.RegexRewrite{
    				Rewrite: `\2/instance/\1`,
    			},
    			valid: false,
    		},
    		{
    			name: "uriRegexRewrite missing rewrite",
    			in: &networking.RegexRewrite{
    				Match: "^/service/([^/]+)(/.*)$",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/exec.go

    	// See golang.org/issue/22220.
    	// We still call updateBuildID to update a.buildID, which is important
    	// for test result caching, but passing rewrite=false (final arg)
    	// means we don't actually rewrite the binary, nor store the
    	// result into the cache. That's probably a net win:
    	// less cache space wasted on large binaries we are not likely to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  4. tests/integration/pilot/common/routing.go

    				},
    			},
    		},
    	})
    	t.RunTraffic(TrafficTestCase{
    		name: "rewrite uri",
    		config: `
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: default
    spec:
      hosts:
        - {{ .dstSvc }}
      http:
      - match:
        - uri:
            exact: /foo
        rewrite:
          uri: /new/path
        route:
        - destination:
            host: {{ .dstSvc }}`,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  5. src/net/http/serve_test.go

    		//
    		// To avoid that problem, we explicitly forbid internal retries by rejecting
    		// them in a Proxy hook in the transport.
    		var retries atomic.Int32
    		cst.c.Transport.(*Transport).Proxy = func(*Request) (*url.URL, error) {
    			if retries.Add(1) != 1 {
    				return nil, errors.New("too many retries")
    			}
    			return nil, nil
    		}
    
    		res, err := cst.c.Get(cst.ts.URL)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

      /** The maximum number of segments to allow; used to bound constructor arguments. */
      static final int MAX_SEGMENTS = 1 << 16; // slightly conservative
    
      /** Number of (unsynchronized) retries in the containsValue method. */
      static final int CONTAINS_VALUE_RETRIES = 3;
    
      /**
       * Number of cache access operations that can be buffered per segment before the cache's recency
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  7. cluster/gce/gci/configure-helper.sh

    # Runs: kubectl label --overwrite nodes -l "${1}" "${2}"
    # Retries on failure
    #
    # $1: label selector of nodes
    # $2: label to apply
    function update-node-label() {
      local selector="$1"
      local label="$2"
      local retries=5
      until (( retries == 0 )); do
        if kubectl label --overwrite nodes -l "${selector}" "${label}"; then
          break
        fi
        (( retries-- ))
        sleep 3
      done
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  8. pkg/controller/garbagecollector/garbagecollector_test.go

    					absentOwnerCache: []objectReference{pod1ns1}, // missing parent cached
    				}),
    
    				// 10,11: observe deletion of good child
    				// steady-state is bad cluster child and bad virtual parent coordinates, with no retries
    				processEvent(makeDeleteEvent(pod2ns1, pod1ns1)),
    				assertState(state{
    					graphNodes: []*node{
    						makeNode(node1, withOwners(pod1nonamespace)),
    						makeNode(pod1nonamespace, virtual)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet.go

    	"k8s.io/utils/clock"
    )
    
    const (
    	// Max amount of time to wait for the container runtime to come up.
    	maxWaitForContainerRuntime = 30 * time.Second
    
    	// nodeStatusUpdateRetry specifies how many times kubelet retries when posting node status failed.
    	nodeStatusUpdateRetry = 5
    
    	// nodeReadyGracePeriod is the period to allow for before fast status update is
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  10. cluster/gce/util.sh

    function yaml-quote {
      echo "${@:-}" | sed -e "s/'/''/g;s/^/'/i;s/$/'/i"
    }
    
    # Writes the cluster location into a temporary file.
    # Assumed vars
    #   ZONE
    function write-cluster-location {
      cat >"${KUBE_TEMP}/cluster-location.txt" << EOF
    ${ZONE}
    EOF
    }
    
    # Writes the cluster name into a temporary file.
    # Assumed vars
    #   CLUSTER_NAME
    function write-cluster-name {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:17 UTC 2024
    - 161.6K bytes
    - Viewed (0)
Back to top