Helm client for Java
Repo manusa/helm-java, read from GitHub 1 min ago. manusa has not joined Take My Repo.
With more than one platform artifact on the classpath, the native library used to be whichever came first on the classpath. It's now chosen in this order:
os.name, os.arch and the implementations found. No download from Maven Central is attempted in that case.Two new system properties:
com.marcnuri.jkube-helm.nativeLibrary: fully qualified class name of a registered NativeLibrary to use regardless of the detected platform.com.marcnuri.jkube-helm.tempDir: base directory where the native library is extracted (defaults to java.io.tmpdir). Useful when /tmp is mounted noexec.Maven builds on Linux ARM64 hosts, where the JVM reports os.arch=aarch64, now get the linux-arm64 artifact through a new linux-aarch64 profile.
After the first install (or upgrade --install), the native library replaced the JVM's SIGINT, SIGTERM and SIGQUIT handlers for good. The JVM then ignored SIGTERM: shutdown hooks never ran, kill -3 thread dumps stopped working, and Kubernetes pods hung until they were killed after terminationGracePeriodSeconds. The native library no longer registers signal handlers, so the JVM keeps its own. Starting the test OCI registry no longer replaces them either.
Trade-off: a signal no longer cancels an in-flight install, so an interrupted install can leave the release in pending-install.
Thanks to @WellMafra for reporting the issue and contributing the fix.
This applies to applications that rely on the download from Maven Central, i.e. with no platform artifact on the classpath (for example with Gradle).
~/.cache/helm-java (or $XDG_CACHE_HOME/helm-java) on Linux and macOS, and in %LOCALAPPDATA%\helm-java\cache on Windows, instead of the temporary directory.
<os>-<arch>-<version>.jar) are no longer used and can be deleted.com.marcnuri.jkube-helm.cacheDir system property to use another cache directory..sha1 checksum. A missing or invalid checksum fails the download.cacheDir that can't be created or written.java.util.logging warning says so. Set com.marcnuri.jkube-helm.cacheDir to keep a persistent cache.forceUpdate keeps the previous JAR on failure. With com.marcnuri.jkube-helm.forceUpdate, the previously cached JAR is kept when the new download fails. Before, it was deleted first.No NativeLibrary implementation found error now carries the underlying failure (a timeout, an HTTP 404, a checksum mismatch, …) as its cause.NativeLibrary.serviceProviderLibrary(ClassLoader) can now throw an IllegalStateException: when native library implementations are registered but none can be used on the current platform, or when the class forced with com.marcnuri.jkube-helm.nativeLibrary isn't registered. Before, it always returned the first registered implementation..sha1 is missing or doesn't match now fails instead of being used.golang.org/x/crypto 0.58.0 → 0.59.0 (#461)k8s.io/cli-runtime and k8s.io/client-go 0.37.1 → 0.37.2 (#456)sigs.k8s.io/controller-runtime and sigs.k8s.io/controller-runtime/tools/setup-envtest 0.25.2 → 0.25.3 (#462)github.com/gofrs/flock 0.13.1 → 0.13.2 (#457)go.opentelemetry.io/otel/sdk/log 0.21.0 → 1.47.0 (indirect, #458)maven-jar-plugin pinned to 3.5.1 (#465)The embedded Helm SDK is still helm.sh/helm/v3 v3.22.1.
Full Changelog: v0.0.22...v0.0.23
Full Changelog: v0.0.21...v0.0.22
Full Changelog: v0.0.20...v0.0.21
Full Changelog: v0.0.19...v0.0.20
Full Changelog: v0.0.18...v0.0.19
Full Changelog: v0.0.17...v0.0.18