Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ukff committed Jan 13, 2025
1 parent 7bb2101 commit c7e73d8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions controllers/btpoperator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func (r *BtpOperatorReconciler) reconcileResources(ctx context.Context, managerS

if namespaceChanged || clusterIdChanged {
logger.Info("waiting for module resources readiness")
if err = r.waitForResourcesReadiness(ctx, resourcesToApply, true); err != nil {
if err = r.waitForResourcesReadiness(ctx, resourcesToApply, false); err != nil {
logger.Error(err, "while waiting for module resources readiness")
return fmt.Errorf("timed out while waiting for resources readiness: %w", err)
}
Expand Down Expand Up @@ -677,10 +677,6 @@ func (r *BtpOperatorReconciler) restartOperatorDeployment(ctx context.Context, l
},
}
if err := r.Get(ctx, client.ObjectKeyFromObject(deployment), deployment); err != nil {
if k8serrors.IsNotFound(err) {
logger.Info("operator deployment not found. skipping.")
return nil
}
logger.Error(err, "while getting operator deployment")
return fmt.Errorf("while operator deployment: %w", err)
}
Expand Down

0 comments on commit c7e73d8

Please sign in to comment.