Skip to content

Commit 15faed8

Browse files
sugaf1204cw-Guo
authored andcommitted
fix error handling
Signed-off-by: sugaf1204 <[email protected]>
1 parent 7a41635 commit 15faed8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

controllers/fluentd_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ func (r *FluentdReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct
126126
// Deploy Fluentd StatefulSet
127127
sts := operator.MakeStatefulSet(fd)
128128
_, err = controllerutil.CreateOrPatch(ctx, r.Client, sts, r.mutate(sts, &fd))
129+
if err != nil {
130+
return ctrl.Result{}, err
131+
}
129132
ds := appsv1.DaemonSet{
130133
ObjectMeta: metav1.ObjectMeta{
131134
Name: fd.Name,

0 commit comments

Comments
 (0)