We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a spring-boot app with the following application.yml (top only):
server: port: ${APP_SERVER_PORT:8080}
And I am using the spring boot generator which tries to find the HTTP port from the config: https://eclipse.dev/jkube/docs/kubernetes-maven-plugin/#generator-spring-boot
When running
./mvnw k8s:resource
And a jkube configuration like the following:
<plugin> <groupId>org.eclipse.jkube</groupId> <artifactId>kubernetes-maven-plugin</artifactId> <version>${jkube.version}</version> <configuration> <generator> <config> <spring-boot> <name>docker.io/library/${project.artifactId}:${project.version}</name> </spring-boot> </config> </generator> </configuration> </plugin>
With maven 3.9.4 (outdated values in the form ;) ), I get the following error in the output
[INFO] --- k8s:1.15.0:resource (default-cli) @ microservice-app --- [INFO] k8s: Using Dockerfile: /Volumes/Workspace/b2c/template-springboot-microservice/microservice-app/Dockerfile [INFO] k8s: Using Docker Context Directory: /Volumes/Workspace/b2c/template-springboot-microservice/microservice-app [INFO] k8s: Using resource templates from /Volumes/Workspace/b2c/template-springboot-microservice/microservice-app/src/main/jkube [INFO] k8s: jkube-controller: Adding a default Deployment [ERROR] k8s: jkube-healthcheck-spring-boot: Error while reading the spring-boot configuration: java.lang.NumberFormatException: For input string: "${APP_SERVER_PORT:8080}" [ERROR] k8s: jkube-healthcheck-spring-boot: Error while reading the spring-boot configuration: java.lang.NumberFormatException: For input string: "${APP_SERVER_PORT:8080}" [INFO] k8s: jkube-revision-history: Adding revision history limit to 2 [INFO] k8s: validating /Volumes/Workspace/b2c/template-springboot-microservice/microservice-app/target/classes/META-INF/jkube/kubernetes/microservice-app-deployment.yml resource
Thanks!
1.15.0
Kubernetes Maven Plugin
other (please specify in additional context)
None
server.port
application.yml
I would expect:
1.25.3
macOS
No response
The text was updated successfully, but these errors were encountered:
I think there was already an issue for something similar, but I can't seem to find it now.
Anyway, I guess this is a common use case and we might want to tackle it.
Sorry, something went wrong.
manusa
Successfully merging a pull request may close this issue.
Describe the bug
I have a spring-boot app with the following application.yml (top only):
And I am using the spring boot generator which tries to find the HTTP port from the config: https://eclipse.dev/jkube/docs/kubernetes-maven-plugin/#generator-spring-boot
When running
And a jkube configuration like the following:
With maven 3.9.4 (outdated values in the form ;) ), I get the following error in the output
Thanks!
Eclipse JKube version
1.15.0
Component
Kubernetes Maven Plugin
Apache Maven version
other (please specify in additional context)
Gradle version
None
Steps to reproduce
server.port
value in theapplication.yml
file./mvnw k8s:resource
Expected behavior
I would expect:
Runtime
other (please specify in additional context)
Kubernetes API Server version
1.25.3
Environment
macOS
Eclipse JKube Logs
Sample Reproducer Project
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: