Repository navigation
[storage] Add an SQL storage driver - #5371
Conversation
|
Thanks a lot for the quick review @bacongobbler . All the requested changes have been implemented so far but one. Have a great weekend ! |
technosophos
left a comment
There was a problem hiding this comment.
I am really excited to see this! I have long wanted to write a driver like this, but have just never had the time/need to do it. I left a security-related comment that I think needs a change (or maybe just an explanation that the SQL driver does something I don't know about). Otherwise, I am good.
Also, thanks for setting a high precedent on how a SQL driver should be tested!
|
(FYI, I just rebased the branch against |
|
Hi @technosophos @bacongobbler , Could you take a look at this PR when you get the chance. All required updates have been made. We'll be glad to change/add/remove/discuss anything you feel is relevant in a timely manner so that this can make it to 2.14.0 ;-) Have a great day ! |
technosophos
left a comment
There was a problem hiding this comment.
LGTM. I'll leave it to @bacongobbler to merge when it fits the release schedule.
|
I completely forgot that we made the call to bring this into the 2.14 release. I'll cut rc.2 with this PR. Thanks @elafarge! |
|
cherry-picked into 2.14. |
|
Just a heads up, but the SQL driver tests failed after merging this into master: https://circleci.com/gh/helm/helm/8204 @elafarge would you mind looking into this to fix up the breaking tests? |
|
I've pulled it out of the 2.14 release branch for the time being so we can continue to test the release candidate. @elafarge, when you have time to look into this, please reach out to me and we can see what we can do about getting this in for 2.14. Thanks! |
|
Found the fix; see #5706. |
|
Hi @bacongobbler . Sorry, for the late reply, I was off for the week. Glad to hear you found the fix. Thanks a lot for the merge !! 🎉 |
|
Does the sql storage driver work with helm v3? If not, any plans to port this (and other storage drivers) to v3. |
|
This would ned to be ported to v3. @elafarge Is this something you would be interested in doing? |
|
@hickeyma sorry, I just stumbled upon your question when cleaning up my Github notifications. I'll surely take a peek at this (maybe with @emaincourt if he's interested 👼 ) this week. |
|
@elafarge I might actually have time to handle it. Will take a look at the v3 codebase this week 🧚♀️ |
|
Thanks for getting back @elafarge @emaincourt. That would be great if you can port it. Reach out if you need any help. FYI, Helm v3 branch is now |

What this PR does / why we need it:
This commits adds the possibility to back Tiller (or the future
Tiller-less Helm CLI) with any SQL database (only postgres has been
tested so far) to store release information.
The main motivation for this commit was to use a storage backend that
would allow releases larger that 1MB in size (ConfigMap or Secret
drivers don't, because of limits on value size in the underlying etcd
key-value store).
Signed-off-by: Étienne Lafarge [email protected]
Co-authored-by: Elliot Maincourt [email protected] (@emaincourt)
Co-authored-by: Paul Borensztein [email protected] (@commit-master)
Special notes for the reviewer(s):
any backend -> postgresmigration script if this backend gets promoted to GA at some point.postgresqlhas been tested so far. However, we've tried to make our code SQL dialect-agnostic (usingsqlxand avoidingpostgresspecific SQL statements). We'll be happy to test other databases if required by the community.If applicable:
closes #1413
closes #1996
closes #4215