Commit 5163b5d 1 parent ff258dd commit 5163b5d Copy full SHA for 5163b5d
File tree 4 files changed +24
-0
lines changed
4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -754,6 +754,11 @@ type Uninstall struct {
754
754
// release as deleted, but retain the release history.
755
755
// +optional
756
756
KeepHistory bool `json:"keepHistory,omitempty"`
757
+
758
+ // Wait tells Helm to wait for all the resources are deleted before finalizing
759
+ // the resource. It will wait for as long as the configured uninstall timeout.
760
+ // +optional
761
+ Wait bool `json:"wait,omitempty"`
757
762
}
758
763
759
764
// GetTimeout returns the configured timeout for the Helm uninstall action, or
Original file line number Diff line number Diff line change @@ -506,6 +506,11 @@ spec:
506
506
operation (like Jobs for hooks) during the performance of a
507
507
Helm uninstall action. Defaults to 'HelmReleaseSpec.Timeout'.
508
508
type : string
509
+ wait :
510
+ description : Wait tells Helm to wait for all the resources are
511
+ deleted before finalizing the resource. It will wait for as
512
+ long as the configured uninstall timeout.
513
+ type : boolean
509
514
type : object
510
515
upgrade :
511
516
description : Upgrade holds the configuration for Helm upgrade actions
Original file line number Diff line number Diff line change @@ -1755,6 +1755,19 @@ bool
1755
1755
release as deleted, but retain the release history.</p >
1756
1756
</td >
1757
1757
</tr >
1758
+ <tr >
1759
+ <td >
1760
+ <code >wait</code ><br >
1761
+ <em >
1762
+ bool
1763
+ </em >
1764
+ </td >
1765
+ <td >
1766
+ <em >(Optional)</em >
1767
+ <p >Wait tells Helm to wait for all the resources are deleted before finalizing
1768
+ the resource. It will wait for as long as the configured uninstall timeout.</p >
1769
+ </td >
1770
+ </tr >
1758
1771
</tbody >
1759
1772
</table >
1760
1773
</div >
Original file line number Diff line number Diff line change @@ -375,6 +375,7 @@ func (r *Runner) Uninstall(hr v2.HelmRelease) error {
375
375
uninstall .Timeout = hr .Spec .GetUninstall ().GetTimeout (hr .GetTimeout ()).Duration
376
376
uninstall .DisableHooks = hr .Spec .GetUninstall ().DisableHooks
377
377
uninstall .KeepHistory = hr .Spec .GetUninstall ().KeepHistory
378
+ uninstall .Wait = hr .Spec .GetUninstall ().Wait
378
379
379
380
_ , err := uninstall .Run (hr .GetReleaseName ())
380
381
return wrapActionErr (r .logBuffer , err )
You can’t perform that action at this time.
0 commit comments