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
(feat): Optional chart dependencies #1585
Comments
My request is similar in nature to #1568, but is a different use case. |
Yeah, it's another use case for selectively enabling/disabling charts. And your use case is very much a common case. Lots of applications (like Drupal, Wordpress, etc.) can support several different database backends. |
@technosophos I too would like to disable the mysql dependency for things like WordPress, MediaWiki, etc where I'm using a separate MySQL backend server independent of Kubernetes. My use case for MediaWiki is to avoid the initial install, and have a different UI frontend that will take in the values required to build a proper LocalSettings.php. The database tables will also be setup external of their install script, via a base database table image and tweaked for different users using an external and pre-existing MySQL server. When the user requests a MediaWiki, we ask a few questions, do all the heavy install lifting on the backside, and they login directly to an 'after-install' MediaWiki spooled up and ready to go. One thing I ran across was StackSmith https://bitnami.com/news/press-releases/bitnami-stacksmith-beta-google-container-reg and also the concept of making things like WordPress a module plugin to Bitnami's LAMP stack. Right now, the only option I can see is to clone the repo and hack up the chart with 'if' blocks as noted in: #1568 (comment) Overall, Charts is a great project however things like database backends should not be a hard dependency and should be more Lego like with a chart being able to specify its backend (none, MySQL, MariaDB, PostgreSQL, etc) though composition and making the chart value names more generic. also: (or the name of an existing database chart) then the whole generic database.* hierarchy could feed whatever values are required by the requested database backend chart. I'm not sure if the values would map 1:1 without some sort of value conversion/mapping adapter between MediaWiki and MariaDB (or PostgreSQL, etc) Chart values.yaml. I do believe this might be a viable step in making Charts more composable with a plugin methodology. |
Same here. Optional chat deps would be great. |
@TerraTech I think much of what you are talking about is similar to the Deis Workflow charts, where they support multiple backends, and you merely need to choose one. The top-level chart is here: https://github.com/deis/workflow/tree/master/charts/workflow Check out how they did their |
I believe this is now effectively resolved with the new tags/conditions addition in Helm 2.2.0: Feel free to re-open if I misunderstood. |
Currently if I to create a chart that say depends on mysql, but other users want to use the same chart with an external mysql server we would have to do one of three things.
--set mysql.disable=true
or a--set mysql.off-cluster=true
The text was updated successfully, but these errors were encountered: