-
Notifications
You must be signed in to change notification settings - Fork 522
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
How can I use the org.eclipse.jkube.kubernetes plugin in Gradle Kotlin DSL? #3174
Comments
@wjmwss : Hello, Could you please share more details on what you're trying to do? What configuration option do you want to use? |
@wjmwss Here is an article by Rohan to get started using Jkube with Gradle Get started with Gradle plugins for Eclipse JKube. You might need to make slight adjustments to build script to compensate for the difference between Groovy and Koltin DSL. |
Thank you for your reply! I'm a beginner in gradle kotlin dsl and now I hope to use the 'org.eclipse.jkube.kubernetes' plugin to quickly deploy my spring boot project to kubernetes. I have referred to the official documentation of this plugin, the example in the documentation are all using gradle groovy dsl, I encountered difficulties in converting it to gradle kotlin dsl: No matter what I try, I cannot convert the example gradle groovy dsl in the documentation to gradle kotlin dsl: Can you please provide a complete example of using the 'org.eclipse.jkube.kubernetes' plugin about gradle kotlin dsl? Thank you! |
Thank you for your reply! I'm a beginner in gradle kotlin dsl, my biggest problem currently is not knowing how to convert gradle groovy dsl to gradle kotlin dsl. In the source code of 'KubernetesExtension', I see that many of the input parameters to the f What can be called by kotlin is 'Action', and I see that all the functions of the 'KubernetesExtension', only the 'addImage' function use Action. Therefore, I cannot determine whether the 'org.eclipse.jkube.kubernetes' plugin supports kotlin DSL, and I am not sure if my understanding is correct. |
@wjmwss Here is a minimal build script with similar configurations. I assume the Kotlin API may not be fully covered yet, so you can follow a general approach using builders to build your config object incrementally.
|
Your code example is very helpful to me, thank you so much! |
How can I use the org.eclipse.jkube.kubernetes plugin in Gradle Kotlin DSL?
The text was updated successfully, but these errors were encountered: