nabsul / k8s-ecr-login-renew

Renews Docker login credentials for an AWS ECR container registry.
MIT License
205 stars 49 forks source link

[Feature request] helm chart #23

Closed StepanKuksenko closed 1 year ago

StepanKuksenko commented 3 years ago

what do you think about creating simple helm chart with cronjob/serviceaccount deployment and put it here in /deploy folder and maybe to some public chart museum. it would be easier to install your tool, just copy the command from the readme helm install .... and thats it.

nabsul commented 3 years ago

Hi Stephan,

Thanks for your suggestion. I'm happy to discuss, but I'll be honest and admit that I personally am not a fan of Helm. I've found that Help usually causes more trouble than good.

I can think of three reasons for saying no to Helm:

First, adding Helm to automate two kubectl apply commands seems like overkill. Running two apply commands is much faster than installing helm and then running one helm command. I could also merge the two yaml files into one :-)

Second, I believe that hiding too much from the developer doesn't always help them. If anything goes wrong or fails, there is more that needs to be debugged to find where the problem is.

And third, adding a Helm chart would add to the work I do maintaining this free open source tool. Especially if it's not adding much benefit, it doesn't make sense to give myself more code to debug/test/maintain.

I think having this in Helm could make sense if it was part of a larger deployment. For example, a chart that deploys nginx ingress, load balancer, cert-manager, and this tool all together.

I still appreciate your feedback, and would be happy to discuss this further. Maybe I'm just not understanding Helm? If I don't hear back from you for a few weeks I'll close this issue.

Thanks again.

StepanKuksenko commented 3 years ago

thank you for your response so I agree with each of your reasons. But I would say one thing: if you make an open-source project, you definitely want people to use it. Having a helm chart will increase the reach of people who will use your application, this is the main reason.

Use cases:

Conclusion: you can keep helm chart as well as raw k8s manifests, just to increase amount of people which could use your application.

example my case: I decided to use another solution instead of creating helm chart for your one )

anyway, good job. thank you for each line of code you've written here )))

nabsul commented 3 years ago

Sounds reasonable. I would need to ramp up on Helm because I don't currently use it, so there's no timeline for this.

But if you would like to contribute the chart, that would be cool. I just might have a lot of questions before it gets merged :-)

nabsul commented 2 years ago

Sorry for the long time silence on this, but that's life :-)

I am hoping to be able to follow up on this to get it merged... early next month.

nabsul commented 2 years ago

Thank you all for the push for Helm chart support. I'm still not a huge fan, and I wish there was something better/easier. But I can see its value and the benefit over plain yaml files.

An initial version is now up and running at https://nabsul.github.io/helm (https://nabsul.github.io/helm/index.yaml). I still have a lot of review and cleanup to do on https://github.com/nabsul/k8s-ecr-login-renew/pull/38, but it should be a matter of days, not weeks to get this done.