-
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.
Comprehensive updates across the codebase
This commit reflects a multitude of adjustments across several resources: 1. Added `ContainerBuilderCallback` class that provides an interface for defining a callback to configure a container builder. 2. Extended `Container` interface with string argument variants for `putFile` and `getFile` methods - enhancing versatility & ease of use. 3. Revised `handleJobCompletion` of `K8sJobRuntime` class to bolster error handling by considering job failure scenarios. 4. Enhanced logging message accuracy in test class 'ShowCaseTests'. 5. Added `normalizeVolumeName` method in `K8sUtils`, improving volume name handling. 6. Test class `ContainerVolumeTests` was added, which includes a test case for mounting container file. 7. Updated `handleContainerStatuses` in test class `ContainerTaskTests` to cater for changes in Container state. 8. Edited `GenericContainer` to use the `ExperimentalStdlibApi` annotation, potentially enhancing future development options. 9. Improved `K8sUtils` by introducing a regex constant `INVALID_VOLUME_CHARS_REGEX` and a method `normalizeConfigMapName`. 10. Small formatting tweaks across classes for better code readability and cleanliness, including alterations in README.md
- Loading branch information
1 parent
4bcbf8b
commit ac0a92e
Showing
26 changed files
with
418 additions
and
191 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
20 changes: 20 additions & 0 deletions
20
src/main/kotlin/no/acntech/easycontainers/ContainerBuilderCallback.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package no.acntech.easycontainers | ||
|
||
import no.acntech.easycontainers.model.ContainerBuilder | ||
|
||
/** | ||
* An interface for defining a callback to configure a container builder. | ||
* Implement the [ContainerBuilderCallback] interface to provide custom configuration logic for a container builder. | ||
* | ||
* @param T the type of container builder | ||
*/ | ||
interface ContainerBuilderCallback { | ||
|
||
/** | ||
* Configures a container builder. | ||
* | ||
* @param builder the container builder to configure | ||
*/ | ||
fun configure(builder: ContainerBuilder<*>) | ||
|
||
} |
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.