-
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.
Enhanced Kubernetes dynamic execution and client operations
**Added:** - Added ExecutorCreator interface to abstract SPDYExecutor creation. - Introduced DefaultExecutorCreator with NewSPDYExecutor method. - Implemented detailed documentation for new ExecutorCreator in README.md. - Added comprehensive tests for new execution structure in execution_test.go. - Added `KubernetesClientInterface` to define the interface for `KubernetesClient`. - Introduced `RealKubernetesClient` as an implementation of `KubernetesClientInterface`. - Added extensive inline documentation to the methods of `RealKubernetesClient`. - Updated unit tests in `client_test.go` to use mock implementations of the new interface. **Changed:** - Updated ExecKubernetesResources to utilize ExecutorCreator. - Modified README.md to reflect new parameters and structure in execution method. - Enhanced execution.go with new interface and improved command execution logic. - Refactored `NewKubernetesClient` function to accept `KubernetesClientInterface`. - Updated function calls in existing code to use the new interface methods. - Enhanced error checking and added validation for `ExecKubernetesResources` function. - Fixed potential nil pointer dereferences in `deploymentLogger.go` and `serviceLogger.go` by adding checks before accessing objects. - Update go mods - Replaced return of *kubernetes.Clientset with interface **Removed:** - Removed outdated blackfriday v1.6.0 entries from go.sum to clean up dependencies. - Failing test that doesn't crash
- Loading branch information
Showing
12 changed files
with
638 additions
and
149 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.