-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.7](backport #2485) Better callback registration/deregistration in …
…host provider's lifecycle (#2486) * Better callback registration/deregistration in host provider's lifecycle (#2485) * Implement CloseableProvider * Make hostProvider implement CloseableProvider * Update test to be more resilient * Move feature flags parsing from standalone configuration to late in the Agent constructor * Add explanatory comment for closeProvider function * Running mage fmt * Remove unused function * Add Close() to controller interface and implement it * Call composable controller's Close() method * Use buffered channel to prevent blocking * Don't block until Run() is running * Call composable controller's Close() in tests (cherry picked from commit 86c3395) # Conflicts: # internal/pkg/agent/application/application.go # internal/pkg/agent/cmd/run.go * Fixing conflicts --------- Co-authored-by: Shaunak Kashyap <[email protected]>
- Loading branch information
1 parent
721f56b
commit 18de34e
Showing
9 changed files
with
109 additions
and
61 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
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
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
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
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