Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for normalizeAndCompareDeployments (0.43 sec)

  1. pkg/kube/inject/inject_test.go

    			t.Fatal(err)
    		}
    		gotPod = patchedPod
    	} else {
    		gotPod = inputPod
    	}
    
    	if err := normalizeAndCompareDeployments(gotPod, wantPod, false, t); err != nil {
    		t.Fatal(err)
    	}
    	if idempotencyCheck {
    		t.Run("idempotency", func(t *testing.T) {
    			if err := normalizeAndCompareDeployments(gotPod, wantPod, true, t); err != nil {
    				t.Fatal(err)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  2. pkg/kube/inject/webhook_test.go

    	out := &unstructured.Unstructured{}
    	err := decoder.Decode(out)
    	if err != nil {
    		t.Fatalf("error decoding object: %v", err)
    	}
    	return out
    }
    
    func normalizeAndCompareDeployments(got, want *corev1.Pod, ignoreIstioMetaJSONAnnotationsEnv bool, t *testing.T) error {
    	t.Helper()
    	// Scrub unimportant fields that tend to differ.
    	delete(got.Annotations, annotation.SidecarStatus.Name)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 39K bytes
    - Viewed (1)
Back to top