Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shadowCopyPortTrafficPolicy (0.17 sec)

  1. pilot/pkg/networking/util/fuzz_test.go

    		// The port does not need to be copied.
    		r.Port = nil
    
    		// The type has changed and cannot be compared directly.
    		// Convert to []byte for comparison.
    		copied := shadowCopyPortTrafficPolicy(r)
    		rjs, _ := json.Marshal(r)
    		cjs, _ := json.Marshal(copied)
    		assert.Equal(fg.T(), rjs, cjs)
    	})
    }
    
    func FuzzMergeTrafficPolicy(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 20:32:49 UTC 2024
    - 1.8K bytes
    - Viewed (1)
  2. pilot/pkg/networking/util/util.go

    	// Traffic settings specified at the destination-level will not be inherited when overridden by port-level settings,
    	// i.e. default values will be applied to fields omitted in port-level traffic policies.
    	return shadowCopyPortTrafficPolicy(portTrafficPolicy), true
    }
    
    // MergeSubsetTrafficPolicy merges the destination and subset level traffic policy for the given port.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top