@ -43,27 +43,57 @@ type Upgrade struct {
ChartPathOptions
ChartPathOptions
// Install is a purely informative flag that indicates whether this upgrade was done in "install" mode.
//
// Applications may use this to determine whether this Upgrade operation was done as part of a
// pure upgrade (Upgrade.Install == false) or as part of an install-or-upgrade operation
// (Upgrade.Install == true).
//
// Setting this to `true` will NOT cause `Upgrade` to perform an install if the release does not exist.
// That process must be handled by creating an Install action directly. See cmd/upgrade.go for an
// example of how this flag is used.
Install bool
Install bool
// Devel indicates that the operation is done in devel mode.
Devel bool
Devel bool
// Namespace is the namespace in which this operation should be performed.
Namespace string
Namespace string
// SkipCRDs skip installing CRDs when install flag is enabled during upgrade
// SkipCRDs skip s installing CRDs when install flag is enabled during upgrade
SkipCRDs bool
SkipCRDs bool
// Timeout is the timeout for this operation
Timeout time . Duration
Timeout time . Duration
// Wait determines whether the wait operation should be performed after the upgrade is requested.
Wait bool
Wait bool
// DisableHooks disables hook processing if set to true.
DisableHooks bool
DisableHooks bool
// DryRun controls whether the operation is prepared, but not executed.
// If `true`, the upgrade is prepared but not performed.
DryRun bool
DryRun bool
// Force will, if set to `true`, ignore certain warnings and perform the upgrade anyway.
//
// This should be used with caution.
Force bool
Force bool
// ResetValues will reset the values to the chart's built-ins rather than merging with existing.
ResetValues bool
ResetValues bool
// ReuseValues will re-use the user's last supplied values.
ReuseValues bool
ReuseValues bool
// Recreate will (if true) recreate pods after a rollback.
// Recreate will (if true) recreate pods after a rollback.
Recreate bool
Recreate bool
// MaxHistory limits the maximum number of revisions saved per release
// MaxHistory limits the maximum number of revisions saved per release
MaxHistory int
MaxHistory int
// Atomic, if true, will roll back on failure.
Atomic bool
Atomic bool
// CleanupOnFail will, if true, cause the upgrade to delete newly-created resources on a failed update.
CleanupOnFail bool
CleanupOnFail bool
// SubNotes determines whether sub-notes are rendered in the chart.
SubNotes bool
SubNotes bool
// Description is the description of this operation
Description string
Description string
// PostRender is an optional post-renderer
//
// If this is non-nil, then after templates are rendered, they will be sent to the
// post renderer before sending to the Kuberntes API server.
PostRenderer postrender . PostRenderer
PostRenderer postrender . PostRenderer
// DisableOpenAPIValidation controls whether OpenAPI validation is enforced.
DisableOpenAPIValidation bool
DisableOpenAPIValidation bool
}
}