pub struct Upgrade {Show 31 fields
pub release: String,
pub chart: ChartRef,
pub labels: BTreeMap<String, String>,
pub post_renderer_args: Vec<String>,
pub chart_path: ChartPathOptions,
pub values: Values,
pub cleanup_on_fail: bool,
pub hide_notes: bool,
pub hide_secret: bool,
pub history_max: Option<u32>,
pub install: bool,
pub render_subchart_notes: bool,
pub values_mode: Option<ValuesMode>,
pub server_side: Option<ServerSide>,
pub create_namespace: bool,
pub dependency_update: bool,
pub description: Option<String>,
pub devel: bool,
pub disable_openapi_validation: bool,
pub dry_run: Option<DryRun>,
pub enable_dns: bool,
pub force: Option<Force>,
pub no_hooks: bool,
pub post_renderer: Option<String>,
pub rollback_on_failure: bool,
pub skip_crds: bool,
pub skip_schema_validation: bool,
pub take_ownership: bool,
pub timeout: Option<Duration>,
pub wait: Option<WaitStrategy>,
pub wait_for_jobs: bool,
}Expand description
helm upgrade -o json (pkg/cmd/upgrade.go, pkg/action/upgrade.go): upgrades a release to a
chart and returns the release Helm recorded. With install, a missing or uninstalled release
is installed instead and the same JSON comes back.
Fields§
§release: StringThe RELEASE argument.
chart: ChartRefThe CHART argument.
labels: BTreeMap<String, String>Flag --labels: labels for the release record (on upgrade they are merged into
the release’s and the value null removes a label).
post_renderer_args: Vec<String>Flag --post-renderer-args, repeated: arguments for the post-renderer.
chart_path: ChartPathOptionsWhere to find the chart and how to authenticate.
values: ValuesFlags -f, --set, --set-string, --set-file, --set-json and --set-literal.
cleanup_on_fail: boolFlag --cleanup-on-fail: delete the resources this upgrade created if it fails.
hide_notes: boolFlag --hide-notes: leave the notes out of the output.
hide_secret: boolFlag --hide-secret: hide Secrets in a dry-run (Helm requires a dry-run mode with it).
history_max: Option<u32>Flag --history-max: how many revisions to keep; 0 keeps all (Helm’s default is 10).
install: boolFlag --install: install when the release does not exist.
render_subchart_notes: boolFlag --render-subchart-notes: include the subcharts’ notes.
values_mode: Option<ValuesMode>Flags --reset-values, --reuse-values and --reset-then-reuse-values.
server_side: Option<ServerSide>Flag --server-side (Helm’s default is auto).
create_namespace: boolFlag --create-namespace: create the release namespace if it is missing (upgrade
only with --install).
dependency_update: boolFlag --dependency-update: fetch missing chart dependencies first.
description: Option<String>Flag --description: a custom release description.
devel: boolFlag --devel: also consider development versions (ignored when a version is set).
disable_openapi_validation: boolFlag --disable-openapi-validation: do not validate against the Kubernetes OpenAPI
schema.
dry_run: Option<DryRun>Flag --dry-run.
enable_dns: boolFlag --enable-dns: allow DNS lookups while rendering.
force: Option<Force>Flags --force-replace and --force-conflicts.
no_hooks: boolFlag --no-hooks: skip hooks.
post_renderer: Option<String>Flag --post-renderer: the name of a post-renderer plugin.
rollback_on_failure: boolFlag --rollback-on-failure: undo the operation when it fails (waits with watcher
unless wait says otherwise).
skip_crds: boolFlag --skip-crds: do not install CRDs (upgrade only with --install).
skip_schema_validation: boolFlag --skip-schema-validation: do not validate the values against the chart’s
schema.
take_ownership: boolFlag --take-ownership: adopt existing resources without Helm’s ownership
annotations.
timeout: Option<Duration>Flag --timeout for any single Kubernetes operation (Helm’s default is five
minutes).
wait: Option<WaitStrategy>Flag --wait (Helm’s default is hookOnly).
wait_for_jobs: boolFlag --wait-for-jobs: with a wait, also wait for Jobs to complete.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Upgrade
Auto Trait Implementations§
impl Forget for Upgrade
impl Freeze for Upgradewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ValuesFile>: Freeze,
impl Move for Upgrade
impl RefUnwindSafe for Upgrade
impl Send for Upgrade
impl Sync for Upgrade
impl Unpin for Upgrade
impl UnsafeUnpin for Upgradewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ValuesFile>: UnsafeUnpin,
impl UnwindSafe for Upgradewhere
RawVecInner: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more