How to set labels on images defined by Generators #2884
Unanswered
davidecavestro
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I checked the code but it doesn't look like we support this functionality at the moment. I can see that in BaseGenerator we are adding some opinionated labels by checking the project configuration: Shall we create an issue for this? I think we can plugin it some code to read labels configured by user in this method to get desired result. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I want to migrate from images to generators the config for generating the image of a spring-boot app - as per xml config docs - given that debugging jkube I saw Spring Boot layered jars are detected by the generator named spring-boot.
So this way I can control everything except the labels of the generated image,
i.e. this way the labels are not set and looking at jkube code I can't find any support for a way to define labels within the image through generators (please note here we aren't talking about labels of k8s descriptors)
ps: changes depicted above on the spring-boot quickstart of the kubernetes maven plugin can be tested with
mvn package k8s:build -Pkubernetes
Beta Was this translation helpful? Give feedback.
All reactions