-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error handling when trying to delete remote resources not present…
… in Devfile (#6659) * Fix condition for checking errors while trying to delete resources not present in Devfile * Add unit tests * Fix race condition with error handling when deleting remote resources not present in Devfile Several Goroutines could potentially modify the same shared error variable, leading to weird behaviour, caught by the unit tests. Using errgroup allows simplifying goroutine error handling. * Remove the user-facing spinner while trying to remove remote resources not present in Devfile Replace with a klog message, as the spinner does not add much value to the end user. Plus, it keeps displaying because we are regenerating the adapter which calls this function indefinitely.
- Loading branch information
Showing
2 changed files
with
208 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters