mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-16 22:45:11 +00:00
Merge pull request #33769 from mwielgus/copy-test
Automatic merge from submit-queue Copy objects in federation test helper Push clean copies of passed objects in test helper in federation controllers tests. Fixes: #33667 cc: @gmarek @quinton-hoole @kubernetes/sig-cluster-federation
This commit is contained in:
@@ -151,6 +151,7 @@ func TestIngressController(t *testing.T) {
|
||||
assert.Equal(t, updatedIngress2.ObjectMeta.Annotations["A"], updatedIngress.ObjectMeta.Annotations["A"], "Updated annotation not transferred from federated to cluster ingress.")
|
||||
// Test add cluster
|
||||
t.Log("Adding a second cluster")
|
||||
ing1.Annotations = make(map[string]string)
|
||||
ing1.Annotations[staticIPNameKeyWritable] = "foo" // Make sure that the base object has a static IP name first.
|
||||
fedIngressWatch.Modify(&ing1)
|
||||
clusterWatch.Add(cluster2)
|
||||
|
||||
Reference in New Issue
Block a user