Skip to content

Commit 18b435f

Browse files
author
Ivan Yurochko
authored
feat: support IgnoreNotFound, DeletionPropagation (#239)
we need IgnoreNotFound and DeletionPropagation for uninstalling as per helm/helm#11479
1 parent 99b6e10 commit 18b435f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,4 +964,6 @@ func mergeUninstallReleaseOptions(chartSpec *ChartSpec, uninstallReleaseOptions
964964
uninstallReleaseOptions.Description = chartSpec.Description
965965
uninstallReleaseOptions.KeepHistory = chartSpec.KeepHistory
966966
uninstallReleaseOptions.Wait = chartSpec.Wait
967+
uninstallReleaseOptions.IgnoreNotFound = chartSpec.IgnoreNotFound
968+
uninstallReleaseOptions.DeletionPropagation = chartSpec.DeletionPropagation
967969
}

types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,11 @@ type ChartSpec struct {
202202
// Labels specifies a set of labels to be applied to the release
203203
// +optional
204204
Labels map[string]string `json:"labels,omitempty"`
205+
// IgnoreNotFound indicates whether to ignore not found error during uninstall.
206+
// +optional
207+
IgnoreNotFound bool `json:"ignoreNotFound,omitempty"`
208+
// DeletionPropagation indicates type of deletion propagation when uninstalling chart.
209+
// Valid options are orphan, foreground, background. Defaulting to background.
210+
// +optional
211+
DeletionPropagation string `json:"deletionPropagation,omitempty"`
205212
}

0 commit comments

Comments
 (0)