Skip to content

Commit

Permalink
Error handling
Browse files Browse the repository at this point in the history
Signed-off-by: PrimalPimmy <[email protected]>
  • Loading branch information
PrimalPimmy committed Feb 11, 2025
1 parent 2be7011 commit 5d0de4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/pkg/reconcilers/spire-bootstrap/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ func (r *reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
fmt.Println("Error creating K8s kubeconfig configmap", err)
}

r.Update(ctx, kubeconfigCM)
err = r.Update(ctx, kubeconfigCM)
if err != nil {
log.Error(err, "failed to create rest config")
}

err = updateClusterListConfigMap(clientset, cl.Name)
if err != nil {
Expand Down

0 comments on commit 5d0de4b

Please sign in to comment.