Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for mirrorPercent (0.27 sec)

  1. tests/fuzz/testdata/FuzzConfigValidation2/fuzz_config_validation2.dict

    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 07 17:07:53 UTC 2021
    - 2K bytes
    - Viewed (0)
  2. pkg/config/validation/virtualservice.go

    	// nolint: staticcheck
    	if http.MirrorPercent != nil {
    		if value := http.MirrorPercent.GetValue(); value > 100 {
    			errs = AppendValidation(errs, fmt.Errorf("mirror_percent must have a max value of 100 (it has %d)", value))
    		}
    		errs = AppendValidation(errs, WrapWarning(errors.New(`using deprecated setting "mirrorPercent", use "mirrorPercentage" instead`)))
    	}
    
    	if http.MirrorPercentage != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:27 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/route/route_internal_test.go

    		route *networking.HTTPRoute
    		want  *core.RuntimeFractionalPercent
    	}{
    		{
    			name: "zero mirror percent",
    			route: &networking.HTTPRoute{
    				Mirror:        &networking.Destination{},
    				MirrorPercent: &wrapperspb.UInt32Value{Value: 0.0},
    			},
    			want: nil,
    		},
    		{
    			name: "mirror with no value given",
    			route: &networking.HTTPRoute{
    				Mirror: &networking.Destination{},
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 11 02:47:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  4. pilot/pkg/model/virtualservice.go

    	}
    	if delegate.Fault == nil {
    		delegate.Fault = root.Fault
    	}
    	if delegate.Mirror == nil {
    		delegate.Mirror = root.Mirror
    	}
    	// nolint: staticcheck
    	if delegate.MirrorPercent == nil {
    		delegate.MirrorPercent = root.MirrorPercent
    	}
    	if delegate.MirrorPercentage == nil {
    		delegate.MirrorPercentage = root.MirrorPercentage
    	}
    	if delegate.CorsPolicy == nil {
    		delegate.CorsPolicy = root.CorsPolicy
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 11:17:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/route/route.go

    			}
    		}
    		// If zero percent is provided explicitly, we should not mirror.
    		return nil
    	// nolint: staticcheck
    	case in.MirrorPercent != nil:
    		if in.MirrorPercent.GetValue() > 0 {
    			return &core.RuntimeFractionalPercent{
    				DefaultValue: translateIntegerToFractionalPercent((int32(in.MirrorPercent.GetValue()))),
    			}
    		}
    		// If zero percent is provided explicitly, we should not mirror.
    		return nil
    	default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
  6. pkg/config/validation/virtualservice_test.go

    				Destination: &networking.Destination{Host: "foo.bar"},
    			}},
    			Match: []*networking.HTTPMatchRequest{nil},
    		}, valid: true},
    		{name: "invalid mirror percent", route: &networking.HTTPRoute{
    			MirrorPercent: &wrapperspb.UInt32Value{Value: 101},
    			Route: []*networking.HTTPRouteDestination{{
    				Destination: &networking.Destination{Host: "foo.bar"},
    			}},
    			Match: []*networking.HTTPMatchRequest{nil},
    		}, valid: false},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 15:33:55 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/listener_waypoint.go

    		}
    	}
    	if authority != "" {
    		action.HostRewriteSpecifier = &route.RouteAction_HostRewriteLiteral{
    			HostRewriteLiteral: authority,
    		}
    	}
    
    	if in.Mirror != nil {
    		if mp := istio_route.MirrorPercent(in); mp != nil {
    			action.RequestMirrorPolicies = append(action.RequestMirrorPolicies,
    				istio_route.TranslateRequestMirrorPolicy(in.Mirror, lb.serviceForHostname(host.Name(in.Mirror.Host)), listenerPort, mp))
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. pkg/config/validation/validation_test.go

    				Destination: &networking.Destination{Host: "foo.bar"},
    			}},
    			Match: []*networking.HTTPMatchRequest{nil},
    		}, valid: true},
    		{name: "invalid mirror percent", route: &networking.HTTPRoute{
    			MirrorPercent: &wrapperspb.UInt32Value{Value: 101},
    			Route: []*networking.HTTPRouteDestination{{
    				Destination: &networking.Destination{Host: "foo.bar"},
    			}},
    			Match: []*networking.HTTPMatchRequest{nil},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  9. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                          required:
                          - host
                          type: object
                        mirror_percent:
                          maximum: 4294967295
                          minimum: 0
                          nullable: true
                          type: integer
                        mirrorPercent:
                          maximum: 4294967295
                          minimum: 0
                          nullable: true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.7K bytes
    - Viewed (0)
  10. manifests/charts/base/crds/crd-all.gen.yaml

                          required:
                          - host
                          type: object
                        mirror_percent:
                          maximum: 4294967295
                          minimum: 0
                          nullable: true
                          type: integer
                        mirrorPercent:
                          maximum: 4294967295
                          minimum: 0
                          nullable: true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.6K bytes
    - Viewed (0)
Back to top