Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for plcSpecEqualish (0.14 sec)

  1. pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration.go

    		plcReplaceSpec, plcSpecEqualish)
    }
    
    func plcReplaceSpec(into, from *flowcontrolv1.PriorityLevelConfiguration) *flowcontrolv1.PriorityLevelConfiguration {
    	copy := into.DeepCopy()
    	copy.Spec = *from.Spec.DeepCopy()
    	return copy
    }
    
    func plcSpecEqualish(expected, actual *flowcontrolv1.PriorityLevelConfiguration) bool {
    	copiedExpected := expected.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration_test.go

    			expected:    ple1,
    			actual:      pleInvalid,
    			specChanged: true,
    		},
    	}
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			w := !plcSpecEqualish(testCase.expected, testCase.actual)
    			if testCase.specChanged != w {
    				t.Errorf("Expected priorityLevelSpecChanged to return %t, but got: %t - diff: %s", testCase.specChanged, w,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top