docs: Update inline docs on action/upgrade.go (#7834)

* docs: Update inline docs on action/upgrade.go

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* clarify atomic and cleanup-on-fail

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* updated the post-render documentation on action.Upgrade

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
pull/7928/head
Matt Butcher 5 years ago committed by GitHub
parent 59447f850c
commit ad3ba46de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 skips 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
} }

Loading…
Cancel
Save