-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kube-333: Unify the retry behavior around k8s.io/apimachinery/pkg/uti…
…l/wait (#113) * Initial extensions funcs * Change main.go to wait pkg * Change check_node_deleted.go to wait pkg * Change kubernetes_helpers.go to wait pkg * Change drain_node_handler.go to wait pkg * Fix calls to patchNode to pass logger * Change actions.go to wait pkg * Change exporter.go to latest version of Retry * Change approve_csr_handler.go to new version * Change chart_loader.go to new version * Change check_node_status.go to new version * Change delete_node_handler.go to new version * Change drain_node_handler.go to new version * Updating usages of the older extension func * Fix chart_loader_test.go * Fix approve_csr_handler_test.go test to use wait pkg * Change extensions and add tests * Tests and adjustments * Update extension pkg with docs * Remove backoff library * Add a RetryForever option to simulate what backoff could do * Cleanup * Change the "forever" notion again to be easier to get right * Adjust getNodeForPatching so that it has roughly the same max timeout but even on exhausting retries it surfaces the error instead of context.Cancelled. * Update logexporter.go after rebase * Fix TODO * Delete file leftover after rebase * Remove double-log-per-retry * Adjust getaction logging from PR review * Remove some helpers that are probably overkill (PR) and attempt to simplify a bit. * Change all usages to new pattern * Move package (PR comment) * Change package godoc (PR comment) * Remove empty line for uuid import (PR comment) * Make default values internal * Remove the non-context retry and only leave 1 function * PR comment to remove unnecessary func * PR comment to remove unnecessary constructor * Wrap context error, context cause and last encountered error in return value
- Loading branch information
Showing
18 changed files
with
683 additions
and
274 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
Oops, something went wrong.