diff --git a/client.go b/client.go index 3a23113..8d7f3d0 100644 --- a/client.go +++ b/client.go @@ -926,6 +926,7 @@ func mergeInstallOptions(chartSpec *ChartSpec, installOptions *action.Install) { installOptions.Atomic = chartSpec.Atomic installOptions.SkipCRDs = chartSpec.SkipCRDs installOptions.DryRun = chartSpec.DryRun + installOptions.DryRunOption = chartSpec.DryRunOption installOptions.SubNotes = chartSpec.SubNotes installOptions.WaitForJobs = chartSpec.WaitForJobs } @@ -946,6 +947,7 @@ func mergeUpgradeOptions(chartSpec *ChartSpec, upgradeOptions *action.Upgrade) { upgradeOptions.Atomic = chartSpec.Atomic upgradeOptions.CleanupOnFail = chartSpec.CleanupOnFail upgradeOptions.DryRun = chartSpec.DryRun + upgradeOptions.DryRunOption = chartSpec.DryRunOption upgradeOptions.SubNotes = chartSpec.SubNotes upgradeOptions.WaitForJobs = chartSpec.WaitForJobs } diff --git a/types.go b/types.go index e78f756..430254d 100644 --- a/types.go +++ b/types.go @@ -188,6 +188,8 @@ type ChartSpec struct { // DryRun indicates whether to perform a dry run. // +optional DryRun bool `json:"dryRun,omitempty"` + // DryRunOption controls whether the operation is prepared, but not executed with options on whether or not to interact with the remote cluster. + DryRunOption string `json:"dryRunOption,omitempty"` // Description specifies a custom description for the uninstalled release // +optional Description string `json:"description,omitempty"`