pub struct Template {Show 33 fields
pub chart: ChartRef,
pub labels: BTreeMap<String, String>,
pub post_renderer_args: Vec<String>,
pub api_versions: Vec<String>,
pub show_only: Vec<String>,
pub chart_path: ChartPathOptions,
pub values: Values,
pub name: Option<ReleaseName>,
pub include_crds: bool,
pub is_upgrade: bool,
pub kube_version: Option<String>,
pub output_dir: Option<PathBuf>,
pub replace: bool,
pub server_side: Option<bool>,
pub skip_tests: bool,
pub use_release_name: bool,
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 template (pkg/cmd/template.go): renders a chart locally, with the flags of
helm install (addInstallFlags) and its own. helm template is always a dry run, so
dry_run may be Client (Helm’s default) or Server but not None. The deprecated
--validate (use --dry-run=server) and the no-op --hide-notes and
--render-subchart-notes are not modelled.
Fields§
§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.
api_versions: Vec<String>Flag --api-versions, repeated: Kubernetes API versions for Capabilities.APIVersions.
show_only: Vec<String>Flag --show-only, repeated: print only the documents of these templates (globs such as templates/*.yaml work); a template without output is an error.
chart_path: ChartPathOptionsWhere to find the chart and how to authenticate.
values: ValuesFlags -f, --set, --set-string, --set-file, --set-json and --set-literal.
name: Option<ReleaseName>The NAME argument or --name-template. Without one Helm names the release
release-name, and Generated (--generate-name) changes nothing: NameAndChart
(pkg/action/install.go) returns the preset name before it generates one.
include_crds: boolFlag --include-crds: print the CRDs of crds/ too.
is_upgrade: boolFlag --is-upgrade: set .Release.IsUpgrade instead of .Release.IsInstall.
kube_version: Option<String>Flag --kube-version: the version for Capabilities.KubeVersion.
output_dir: Option<PathBuf>Flag --output-dir: write the documents to files below this directory instead
of printing them.
replace: boolFlag --replace: skip the check that the release name is free (template always
does).
server_side: Option<bool>Flag --server-side, a boolean here that Helm defaults to true.
skip_tests: boolFlag --skip-tests: leave the test hooks out.
use_release_name: boolFlag --release-name: put the files below <output_dir>/<release name>.
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 Template
Auto Trait Implementations§
impl Forget for Template
impl Freeze for Templatewhere
*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 Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnsafeUnpin for Templatewhere
*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 Templatewhere
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