Explorar el Código

WIP: Fixed bug not returning error

Signed-off-by: James Cleveland <james.cleveland@engineerbetter.com>
Co-authored-by: Amr Fawzy <amr.fawzy@container-solutions.com>
Dominic Meddick hace 4 años
padre
commit
4761591cda
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      pkg/controllers/pushsecret/pushsecret_controller.go

+ 1 - 0
pkg/controllers/pushsecret/pushsecret_controller.go

@@ -84,6 +84,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
 		cond := NewPushSecretCondition(esapi.PushSecretReady, v1.ConditionFalse, esapi.ReasonErrored, err.Error())
 		ss = SetPushSecretCondition(ss, *cond)
 		r.recorder.Event(&ss, v1.EventTypeWarning, esapi.ReasonErrored, err.Error())
+		return ctrl.Result{}, err
 	}
 	err = r.SetSecretToProviders(ctx, secretStores, ss, secret)
 	if err != nil {