Skip to content
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

Fix and improve helm update script #1848

Merged
merged 8 commits into from
Feb 1, 2023
Merged

Conversation

szaimen
Copy link
Collaborator

@szaimen szaimen commented Jan 28, 2023

Addresses #1574 (comment) and below

Signed-off-by: Simon L szaimen@e.mail.de

@szaimen szaimen added the 2. developing Work in progress label Jan 28, 2023
@szaimen szaimen added this to the next milestone Jan 28, 2023
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch 2 times, most recently from ce57abf to ae9246a Compare January 28, 2023 15:50
@szaimen szaimen changed the title helm update script Fix and improve helm update script Jan 28, 2023
@szaimen szaimen mentioned this pull request Jan 28, 2023
6 tasks
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch 3 times, most recently from f50db67 to 558b7f8 Compare January 28, 2023 16:21
@szaimen szaimen added 3. to review Waiting for reviews bug Something isn't working enhancement New feature or request and removed 2. developing Work in progress labels Jan 28, 2023
@szaimen szaimen marked this pull request as ready for review January 28, 2023 16:24
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch from 558b7f8 to f882991 Compare January 28, 2023 16:27
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch from f882991 to 4a41a47 Compare January 28, 2023 16:32
Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch from 03161f4 to 405162e Compare January 28, 2023 16:33
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch 4 times, most recently from 1dc583a to ac90d81 Compare January 28, 2023 21:20
Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch 3 times, most recently from 8a95a17 to 1b03b7f Compare January 28, 2023 23:12
@mrueg
Copy link

mrueg commented Jan 30, 2023

Thanks for the feedback @mrueg!

  • Lowercase all variables

Thanks but since we automatically generate this with a bash script from a docker-compose file, I don't think it is worth the hassle which also might lead to unexpected problems.

  • Drop the nextcloud-aio prefix in front of the file names (as it's already included in the chart name, this is uncommon)

Thanks but since we generate this via a bash script using kompose and I don't think it is worth it.

fwiw, this might be also worth a try: https://github.com/arttor/helmify

Thanks but what is the advantage over kompose? What would it change? Do you have an example with one of the files in this PR?

What I'm suggesting is: docker compose config -> kompose -> kubernetes yaml files -> helmify -> helm chart

See here for an example:
https://github.com/arttor/helmify/blob/main/test_data/sample-app.yaml
gets you: https://github.com/arttor/helmify/tree/main/examples/app

@szaimen
Copy link
Collaborator Author

szaimen commented Jan 30, 2023

What I'm suggesting is: docker compose config -> kompose -> kubernetes yaml files -> helmify -> helm chart

See here for an example: https://github.com/arttor/helmify/blob/main/test_data/sample-app.yaml gets you: https://github.com/arttor/helmify/tree/main/examples/app

Ah I see. However this looks a bit over-engineered to me as I am also not familiar with helmify. The current process is this:

docker compose -> kompose -> helm chart

All of this is done with a bash script that automates the process and edits things acordingly with sed which I find much easier than modifying things with helmify. :)

However I'd agree that patching the files with helmify would probably be more mature way of doing things - commits and pull requests are welcome!

@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch 2 times, most recently from 141bc39 to d4f15d4 Compare February 1, 2023 11:43
Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch from cc170a2 to 133b149 Compare February 1, 2023 11:47
Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen requested a review from mrueg February 1, 2023 12:22
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch 12 times, most recently from 54ed91d to 478f54d Compare February 1, 2023 16:02
Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch from adbb9e7 to 0ea229e Compare February 1, 2023 16:04
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch from 039aef0 to 742394c Compare February 1, 2023 17:56
Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/noid/improve-helm-update branch from d1cd002 to be37984 Compare February 1, 2023 17:58
@szaimen szaimen merged commit fb1a3fc into main Feb 1, 2023
@delete-merged-branch delete-merged-branch bot deleted the enh/noid/improve-helm-update branch February 1, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants