Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for mirrorPercentage (0.25 sec)

  1. tests/integration/pilot/testdata/traffic-mirroring-template.yaml

    metadata:
      name: {{.Name}}
    spec:
      hosts:
        - b
      http:
        - route:
            - destination:
                host: b
          mirror:
            host: {{.MirrorHost}}
    {{- if not .Absent }}
          mirrorPercentage:
            value: {{.Percent}}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 24 22:09:33 UTC 2020
    - 306 bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pilot/pkg/model/virtualservice.go

    		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
    	}
    	if delegate.Mirrors == nil {
    		delegate.Mirrors = root.Mirrors
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 11:17:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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