jkube: Resource example does not work

I tried the jkube/quickstarts/maven/external-resources/ example to create a deployment with a configmap. I just copied the deployment.yml and the configmap.yml. I renamed configmap to configmap-cr, k8s:build just work fine if I use a fixed value of ‘welcome’ (Otherwise the build fails since there is no value specified in application. properties) But k8s:resource fails with a NullPointer Exception. Now I am confused. a) I thought the point of a configmap was to parametrize the image. But if a value is expected in application.properties (which is bundled in the jar) what would be point? b) What am I missing? How do I make this example work? c) In the example in the configmap we have data: application.properties: | # spring application properties file what does that mean?

Saw Rohan’s article on custom resource fragments. Nice! I am writing an article on tools for Java developers and your help would be appreaciated. Thx.

Description

Info

  • Eclipse JKube version :
  • Maven version (mvn -v) :

  • Kubernetes / Red Hat OpenShift setup and version :

  • If it’s a bug, how to reproduce :

  • If it’s a feature request, what is your use case :

  • Sample Reproducer Project : [GitHub Clone URL]

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 32 (14 by maintainers)

Most upvoted comments

Dear Rohan Kumar, https://dzone.com/articles/kubernetes-for-java-developers

On Tue, Apr 27, 2021 at 12:32 PM Taruvai Subramaniam < @.***> wrote:

Joined> Are you there?

On Tue, Apr 27, 2021 at 11:50 AM Rohan Kumar @.***> wrote:

@Taruvai https://github.com/Taruvai : ohk. Is it possible to share that repo that contains the test? Could you please join our chat so that we can discuss your problem in detail regarding jkube https://gitter.im/eclipse/jkube ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eclipse/jkube/issues/662#issuecomment-827715238, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADG46IT3XSM727LETICFN4LTK3MM3ANCNFSM42Z66SBA .

" Any intelligent fool can make things bigger, more complex and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction" - Albert Einstein

" Any intelligent fool can make things bigger, more complex and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction" - Albert Einstein