Skip to content

Commit

Permalink
(fix)controller: remove force flag (gracePeriodSeconds: 0) for abort …
Browse files Browse the repository at this point in the history
…cases (#337)

Signed-off-by: ksatchit <[email protected]>
  • Loading branch information
Karthik Satchitanand authored Feb 18, 2021
1 parent 7d72b3e commit 15aa0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/chaosengine/chaosengine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func (r *ReconcileChaosEngine) reconcileForDelete(engine *chaosTypes.EngineInfo,

// forceRemoveAllChaosPods force removes all chaos-related pods
func (r *ReconcileChaosEngine) forceRemoveAllChaosPods(engine *chaosTypes.EngineInfo, request reconcile.Request) error {
optsDelete := []client.DeleteAllOfOption{client.InNamespace(request.NamespacedName.Namespace), client.MatchingLabels{"chaosUID": string(engine.Instance.UID)}, client.PropagationPolicy(metav1.DeletePropagationBackground), client.GracePeriodSeconds(int64(0))}
optsDelete := []client.DeleteAllOfOption{client.InNamespace(request.NamespacedName.Namespace), client.MatchingLabels{"chaosUID": string(engine.Instance.UID)}, client.PropagationPolicy(metav1.DeletePropagationBackground)}
var deleteEvent []string
var err []error

Expand Down

0 comments on commit 15aa0b3

Please sign in to comment.