-
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
helm : enhance chart generation #113
Comments
Thanks for your bug report. @manusa is working on fixing helm support. It would be fixed before the next release |
related to #102 |
Implementation fix includes options to specify both Both options can be setup within pom.xml configuration or overridden with properties (e.g. Regarding Regarding So implementation differs a little with that of FMP, hope this is OK for you. Please if you find something wrong with this or new behavior is of great inconvenience post a reply with your thoughts. |
Seems fair for this to be the default behavior, as mvn clean should take care of cleaning. I'll modify current behavior |
Hi @survivant Last Friday we released 1.0.0-alpha-1 with most of the suggested changes. You can check configuration examples here and updated documentation here (until we have the final release). Could you please check if the provided solution works for you, or if there's something missing or that you would like to change? |
thanks really nice. I just found something last week. If we don't respect the format "\d.\d.\d" like 1.0.0 for the version example : 1.0.0-SNAPSHOT, when you do helm search ... Helm (3.x) is not expecting that and won't show it in the result. But I love the commit you did.. thanks a lot |
Are you referring to the quickstart? or to some point in the documentation? We can change the example to always override the version number and provide one using the suggested format. or hard-code the version in the documentation. In any case, |
I agree that's a bug in helm cli. but there is over 900 issues, so I'm not sure if I add one more it will make a difference. |
here my tests : mvn k8s:build generate a artifcat in the root folder : targetquarkus-k8s-hello-1.0.0-SNAPSHOT.jar there is a "/" missing. should be : target/quarkus-k8s-hello-1.0.0-SNAPSHOT.jar for : ./charts it generate the charts in ./charts/kubernetes instead should we add this also in the chart apiVersion: v1 |
There's an active issue fabric8io/fabric8-maven-plugin#1516 (will be ported to JKube once FMP gets deprecated > Eclipse JKube 1.0.0 released) where we want to provide support for Helm v3 (or latest) So the generated yaml, as of now, should be compatible with this spec (https://github.com/helm/helm/blob/release-2.0/docs/charts.md) Regarding your output issues, I don't understand what's the issue.
Which generates the following: If I use this:
Are you running this on windows BTW? |
yes I'm in Windows. there was 2 issues in my comment. #1- k8s:build generated the jar file in the wrong folder : missing / to get target/quarkus-k8s-hello-1.0.0-SNAPSHOT.jar and the second was that the output of the charts should be ./charts/*.yaml instead of ./charts/kubernetes/*.yalm ? I don't see the point of puting the type in that folder. I suppose the folder "kubernetes" is because the type is kubernetes, if I put openshift in pom.xml the output will be ./charts/openshfift/*.yaml there is no point of using that information. The output will be the same for both of them. maybe if you use the default values, but if you override the value in the pom.xml, you should use that foldr ? |
I understand now. Regarding Regarding So for 99% of the use cases it doesn't make sense to nest the chart files under a The only way I see to omit the cluster type subdirectory is to add an extra-flag (e.g. |
ok, I see your point. I can live with that. |
I would like to have the option to choose where I want to output charts to be generated. I'll like prefer to have it in ./charts folder instead of target... like that I could add it to my source code.
something like :
the file Chart.yaml could be enhanced like that (it contains more useful informations and display nice in chartmuseum UI too :
all that information could be in configuration in the pom.xml
if the folder is present.. just override the files without deleted the content.
The text was updated successfully, but these errors were encountered: