Closed ajeans closed 8 months ago
The upstream helm-java library is unable to download the suitable native implementation for your platform:
No NativeLibrary implementation found, please add one of the supported dependencies to your project
Could you please provide the output of both mvn -v
and ./mvnw -v
(also see if running without the wrapper works).
helm-java does several tricks under the hood to detect your platform and architecture (both macOS arm64 and amd64 should be supported). For some reason this is not working as expected.
Hello @manusa
That makes sense, here it is:
mvn -v
Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
Maven home: /opt/homebrew/Cellar/maven/3.9.4/libexec
Java version: 21.0.1, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/21.0.1/libexec/openjdk.jdk/Contents/Home
Default locale: en_FR, platform encoding: UTF-8
OS name: "mac os x", version: "13.6.4", arch: "aarch64", family: "mac"
./mvnw -v
Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Maven home: /Users/arnaud.jeansen/.m2/wrapper/dists/apache-maven-3.9.5-bin/32db9c34/apache-maven-3.9.5
Java version: 21.0.1, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/21.0.1/libexec/openjdk.jdk/Contents/Home
Default locale: en_FR, platform encoding: UTF-8
OS name: "mac os x", version: "13.6.4", arch: "aarch64", family: "mac"
OK, aarch64
is not being considered. I'll try to provide a fix early next week, see if it resolves your problem.
I just merged #2732 which should fix the issue.
Could you please try with tomorrow's snapshot and see of the new helm-lint
goal works as expected.
Sure @manusa
Will test in the coming days and report back. Thanks for the swift replies and fixes.
Hello @manusa
I can happily report that helm-lint
now works fine on my machine. 👏
[INFO] --- k8s:1.17-SNAPSHOT:helm (default-cli) @ microservice-app ---
[INFO] k8s: Creating Helm Chart "microservice-app" for Kubernetes
[INFO]
[INFO] --- k8s:1.17-SNAPSHOT:helm-lint (default-cli) @ microservice-app ---
[INFO] k8s: Linting microservice-app 0.0.1-SNAPSHOT
[INFO] k8s: Using packaged file: /Volumes/Workspace/b2c/template-springboot-microservice/microservice-app/target/jkube/helm/microservice-app/kubernetes/microservice-app-0.0.1-SNAPSHOT.tar.gz
[INFO] k8s: Linting successful
Thanks a lot for the very quick fix.
Awesome, thanks for reporting back.
Just FYI we just released v1.16.1 with the fix, you should now be able to use the stable release instead.
Describe the bug
Looking at the release notes for 1.16.0 and its support for helm linting #2613 .
My previous build script was:
Which I tried to replace with
With zero change to the project (no pom change, nothing).
While the standard call to
helm lint
works fine, the maven goal fails with the following output:Same error with both 1.16.0 and today's snapshot. This is with mvn
3.9.5
(ticket drop-down doesn't contain it).Do you have an idea where this could come from? Note that I have an ARM Macbook, thought I would mention it when I saw the "NativeLibrary" message.
Thanks!
Eclipse JKube version
SNAPSHOT
Component
Kubernetes Maven Plugin
Apache Maven version
other (please specify in additional context)
Gradle version
None
Steps to reproduce
./mvnw -pl microservice-app k8s:resource k8s:helm k8s:helm-lint
Expected behavior
Helm lint happening
Runtime
other (please specify in additional context)
Kubernetes API Server version
other (please specify in additional context)
Environment
macOS
Eclipse JKube Logs
No response
Sample Reproducer Project
No response
Additional context
No response