Closed ErinCall closed 4 years ago
The problem I'm trying to solve: If someone wants to pass --cleanup-on-fail to helm upgrade, they should be able to do that
--cleanup-on-fail
helm upgrade
How I imagine it working:
CleanupOnFail
internal/helm.Config
internal/run.Upgrade
internal/helm.upgrade
Upgrade
Upgrade.Prepare
The problem I'm trying to solve: If someone wants to pass
--cleanup-on-fail
tohelm upgrade
, they should be able to do thatHow I imagine it working:
CleanupOnFail
field tointernal/helm.Config
(be sure to set an envconfig tag)CleanupOnFail
field tointernal/run.Upgrade
internal/helm.upgrade
passes theCleanupOnFail
field when creating theUpgrade
structUpgrade.Prepare
adds--cleanup-on-fail
to the helm args ifCleanupOnFail
is true