glog.V(4).Infof("Ingress %q in cluster %q does not need an update: cluster ingress is equivalent to federated ingress",ingress,cluster.Name)
glog.V(4).Infof("Ingress %q in cluster %q does not need an update: cluster ingress is equivalent to federated ingress",ingress,cluster.Name)
}else{
}else{
glog.V(4).Infof("Ingress %s in cluster %s needs an update: cluster ingress %v is not equivalent to federated ingress %v",ingress,cluster.Name,clusterIngress,desiredIngress)
glog.V(4).Infof("Ingress %s in cluster %s needs an update: cluster ingress %v is not equivalent to federated ingress %v",ingress,cluster.Name,clusterIngress,desiredIngress)
assert.True(t,reflect.DeepEqual(updatedIngress2.Spec,updatedIngress.Spec),"Spec of updated ingress is not equal")
assert.True(t,reflect.DeepEqual(updatedIngress2.Spec,updatedIngress.Spec),"Spec of updated ingress is not equal")
assert.True(t,util.ObjectMetaEquivalent(updatedIngress2.ObjectMeta,updatedIngress.ObjectMeta),"Metadata of updated object is not equivalent")
assert.Equal(t,updatedIngress2.ObjectMeta.Annotations["A"],updatedIngress.ObjectMeta.Annotations["A"],"Updated annotation not transferred from federated to cluster ingress.")
// Test add cluster
// Test add cluster
t.Log("Adding a second cluster")
t.Log("Adding a second cluster")
ing1.Annotations[staticIPNameKeyWritable]="foo"// Make sure that the base object has a static IP name first.
ing1.Annotations[staticIPNameKeyWritable]="foo"// Make sure that the base object has a static IP name first.