Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for mirrorPercentage (0.19 sec)

  1. pilot/pkg/networking/core/route/route_internal_test.go

    			route: &networking.HTTPRoute{
    				Mirror:           &networking.Destination{},
    				MirrorPercentage: &networking.Percent{Value: 0.0},
    			},
    			want: nil,
    		},
    		{
    			name: "mirrorpercentage with actual percent",
    			route: &networking.HTTPRoute{
    				Mirror:           &networking.Destination{},
    				MirrorPercentage: &networking.Percent{Value: 50.0},
    			},
    			want: &core.RuntimeFractionalPercent{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 11 02:47:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. pkg/config/validation/virtualservice.go

    	}
    
    	if http.MirrorPercentage != nil {
    		value := http.MirrorPercentage.GetValue()
    		if value > 100 {
    			errs = AppendValidation(errs, fmt.Errorf("mirror_percentage must have a max value of 100 (it has %f)", value))
    		}
    		if value < 0 {
    			errs = AppendValidation(errs, fmt.Errorf("mirror_percentage must have a min value of 0 (it has %f)", value))
    		}
    	}
    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. pkg/config/validation/virtualservice_test.go

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

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

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

                        mirrorPercent:
                          maximum: 4294967295
                          minimum: 0
                          nullable: true
                          type: integer
                        mirrorPercentage:
                          description: Percentage of the traffic to be mirrored by the
                            `mirror` field.
                          properties:
                            value:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.7K bytes
    - Viewed (0)
  7. manifests/charts/base/crds/crd-all.gen.yaml

                        mirrorPercent:
                          maximum: 4294967295
                          minimum: 0
                          nullable: true
                          type: integer
                        mirrorPercentage:
                          description: Percentage of the traffic to be mirrored by the
                            `mirror` field.
                          properties:
                            value:
    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