Skip to content

Commit

Permalink
Merge pull request #200 from ShanyouYu-Sean/dev/sean/support-dryrun-opt
Browse files Browse the repository at this point in the history
feat: support DryRunOption
  • Loading branch information
elenz97 authored Mar 13, 2024
2 parents 6ab3ac2 + e8b39d4 commit df8bbb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down
2 changes: 2 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit df8bbb1

Please sign in to comment.