-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maven properties in image name not replaced (Zero-Config mode) #1858
Comments
I tried to reproduce the fact that
For me this looks like it have to be another part in the code which do this replacement. |
Might be related to #697 |
…eclipse-jkube#1858) Interpolate image name while formatting in ImageNameFormatter. Signed-off-by: Rohan Kumar <[email protected]>
…eclipse-jkube#1858) Interpolate image name while formatting in ImageNameFormatter. Signed-off-by: Rohan Kumar <[email protected]>
…eclipse-jkube#1858) Interpolate image name while formatting in ImageNameFormatter. Signed-off-by: Rohan Kumar <[email protected]>
…#1858) Interpolate image name while formatting in ImageNameFormatter. Signed-off-by: Rohan Kumar <[email protected]>
Describe the bug
In a Zero-Config mode it is currently not possible to use ${git.commit.id.abbrev} in the
jkube.generator.name
property or other properties defined by the git-commit-id-plugin. @rohanKanojia made the assumption that https://github.com/eclipse/jkube/blob/master/jkube-kit/build/service/docker/src/main/java/org/eclipse/jkube/kit/build/service/docker/helper/ImageNameFormatter.java does not handle this.Here is the public demo project to reproduce this issue: https://github.com/kuhhpid/jkube-git-commit-id
Eclipse JKube version
1.9.1
Component
Kubernetes Maven Plugin
Apache Maven version
No response
Gradle version
No response
Steps to reproduce
git clone https://github.com/kuhhpid/jkube-git-commit-id
cd jkube-git-commit-id
mvn package
${git.commit.id.abbrev}
was not replaced and violates the validation patternExpected behavior
The property
${git.commit.id.abbrev}
should be replaced with the current git commit id abbrev.Runtime
other (please specify in additional context)
Kubernetes API Server version
1.24.1
Environment
Linux
Eclipse JKube Logs
Sample Reproducer Project
https://github.com/kuhhpid/jkube-git-commit-id
Additional context
My Kubernates flavor is microk8s (https://microk8s.io)
The text was updated successfully, but these errors were encountered: