-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feat [Language] Constant - [+] chore(init_const.go): reformat code and add missing constant 'ErrorFailedToCompleteTaskDueToConflict' - [+] feat(init_const.go): add constant 'PodName' for pod name parameter * Chore [Language] Update Constant - [+] chore(init_const.go): add new error constant for failed to update labels for pod * Feat [Task] Fetch Latest Version of Pods - [+] feat(tasks_crew.go): add getLatestVersionOfPod function to fetch the latest version of a Pod from the Kubernetes API - [+] fix(tasks_crew.go): import missing packages for getLatestVersionOfPod function * Refactor [Worker] [Crew] Reduce gocyclo - [+] refactor(crew.go): remove unused import statement - [+] fix(crew.go): fix logFinalError function call by adding maxRetries parameter - [+] fix(crew.go): fix condition for handling task error in performTaskWithRetries function - [+] refactor(crew.go): remove unused code and comments - [+] feat(crew.go): add resolveConflict function to handle pod conflict resolution - [+] fix(worker): add missing import statements for context, time, apierrors, and kubernetes - [+] refactor(worker): add maxRetries parameter to logRetryAttempt and logFinalError functions - [+] feat(worker): add handleTaskError function to handle task errors and retries * Chore [README] [Docs] - [+] chore(README.md): add tasks for managing pods in Kubernetes cluster * Feat [Worker] [Labels Pods] Resource Version - [+] feat(labels_pods.go): add labelSinglePodWithResourceVersion function to apply label to a single pod if it doesn't already have it - [+] feat(labels_pods.go): add fetchLatestPodVersion function to retrieve the most recent version of the pod - [+] feat(labels_pods.go): add shouldUpdatePod function to determine if the pod's labels need to be updated - [+] feat(labels_pods.go): add updatePodLabels function to apply the update to the pod's labels using a strategic merge patch - [+] feat(labels_pods.go): add getUpdatedLabels function to construct a new labels map containing the updated label - [+] feat(labels_pods.go): add wrapPodError function to enrich the provided error with additional context
- Loading branch information
1 parent
69a556f
commit 39b312e
Showing
6 changed files
with
289 additions
and
64 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
Oops, something went wrong.