Closed vdice closed 5 years ago
I believe https://github.com/deislabs/porter/issues/123 is needed before use via porter
Good question on the helm install vs helm upgrade --install. Couple things come to mind:
helm upgrade --install
because it's easier to use in a script where you don't know the state and are just hammering a system and don't care if it was already there or not. It's just easier to script.duffle install
or duffle upgrade
and know which is the right to call. Right? (Though when porter has an install command, we could do something different).helm install
for an install action or helm upgrade --install
? Do you think it would matter?Basically if it doens't affect the UX, let's go with whatever makes sense to you on the implementation.
This represents the naive/mostly-copy-paste implementation.
As you'll note,
upgrade.go
looks nearly identical to the pre-existinginstall.go
, just with a slightly different cmd base. We could extract shared logic into a new file that both could use (upsert.go
?) which has a cmd base ofhelm upgrade
, with, conditionally,--install
, depending on caller (install.go
vsupgrade.go
). Should we go this route here? And/or a diff approach?