switch delete strategy to background deletion

This commit is contained in:
juanvallejo
2018-07-06 11:36:57 -04:00
parent 43b59986f4
commit ebd48f26e5
2 changed files with 4 additions and 4 deletions

View File

@@ -240,7 +240,7 @@ func (o *DeleteOptions) DeleteResult(r *resource.Result) error {
if o.GracePeriod >= 0 {
options = metav1.NewDeleteOptions(int64(o.GracePeriod))
}
policy := metav1.DeletePropagationForeground
policy := metav1.DeletePropagationBackground
if !o.Cascade {
policy = metav1.DeletePropagationOrphan
}