assert.True(t,ingressController.hasFinalizerFunc(updatedIngress,metav1.FinalizerOrphan),fmt.Sprintf("ingress does not have the orphan finalizer: %v",updatedIngress))
assert.True(t,ingressController.hasFinalizerFunc(updatedIngress,metav1.FinalizerOrphanDependents),fmt.Sprintf("ingress does not have the orphan finalizer: %v",updatedIngress))
fedIngress=*updatedIngress
t.Log("Checking that Ingress was correctly created in cluster 1")
...
...
@@ -319,7 +319,7 @@ func WaitForFinalizersInFederationStore(ingressController *IngressController, st
// The object exists in the key-value store until the garbage collector deletes all the dependents whose ownerReference.blockOwnerDeletion=true from the key-value store.
// API sever will put the "DeletingDependents" finalizer on the object, and sets its deletionTimestamp.
// This policy is cascading, i.e., the dependents will be deleted with Foreground.
// DeletionPropagation decides if a deletion will propagate to the dependents of the object, and how the garbage collector will handle the propagation.
// The object exists in the key-value store until the garbage collector deletes all the dependents whose ownerReference.blockOwnerDeletion=true from the key-value store.
// API sever will put the "DeletingDependents" finalizer on the object, and sets its deletionTimestamp.
// This policy is cascading, i.e., the dependents will be deleted with Foreground.
allErrs=append(allErrs,field.Invalid(fldPath,finalizers,fmt.Sprintf("finalizer %s and %s cannot be both set",metav1.FinalizerOrphanDependents,metav1.FinalizerDeleteDependents)))
allErrs=append(allErrs,field.Invalid(field.NewPath(""),options,fmt.Sprintf("DeletionPropagation need to be one of %q, %q, %q or nil",metav1.DeletePropagationForeground,metav1.DeletePropagationBackground,metav1.DeletePropagationOrphan)))