Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis authored and Anis committed Feb 24, 2024
1 parent 177bcc0 commit 8403c08
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/controller/networkchaos_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,15 @@ func (r *NetworkChaosReconciler) manageToxics(ctx context.Context, req ctrl.Requ
}
log.Info("Proxy Updated and disabled")
return nil
} else {
if err := proxy.Enable(); err != nil {
log.Error(err, "Failed to enable the proxy")
return err
}
log.Info("Proxy Updated and Enabled")
return nil
}
return nil

}

func (r *NetworkChaosReconciler) finalizeNetworkChaos(ctx context.Context, req ctrl.Request, networkChaos *chaosv1alpha1.NetworkChaos) error {
Expand Down

0 comments on commit 8403c08

Please sign in to comment.