-
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.
Implement container completion feature and refactor existing code
- Implemented a `waitForCompletion` method in the `Container` class, allowing thread to block until the container halts execution. This feature was added to help manage and organize container operations more effectively. - Added handling of `IOExceptions` arising from attempted read operations on log streams after they have been interrupted or cancelled. This was implemented to avoid unnecessary error throwing and streamline logging operations. - Refactored `ImageBuilder` and `K8sServiceRuntime` classes with updates relating to the path conventions, 'PROP_LOCAL_KANIKO_DATA_PATH', 'PROP_KANIKO_K8S_PVC_NAME', and 'PROP_KANIKO_K8S_PV_NAME' for building Docker and Kubernetes images. - Updated 'ContainerTaskTests', enabling DOCKER based tests and verifying task completion within certain time limit. - Added handling of pod deletion in `K8sServiceRuntime` to check if the corresponding pod has been removed as expected. - The state change handling in `GenericContainers` now checks if the new state is of type STOPPED, DELETED, or FAILED and signals the `completionLatch` accordingly. - Multiple changes on `K8sJobRuntime`, refactored Job object access through AtomicReference and standardized it through getter/setter interaction for safer multithreading environment. Details: This commit primarily addresses two major enhancements for the software. The first one is the implementation of the `waitForCompletion` method which helps in blocking the thread until the container completes its task. This functionality tremendously helps in controlling and regulating container operations as expected. The second key addition to the existing software is taking care of `IOExceptions` which might arise when trying to read something from the container logs. The implemented feature helps in identifying whether the error has occurred due to interruption or cancellation of the threads involved in turn helping debug and diagnose issues more accurately.
- Loading branch information
1 parent
e68033f
commit 1ad548b
Showing
24 changed files
with
652 additions
and
273 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
Oops, something went wrong.