pub struct DefaultHelmExecutor(/* private fields */);Implementations§
Source§impl DefaultHelmExecutor
impl DefaultHelmExecutor
Sourcepub fn new() -> Self
pub fn new() -> Self
Create executor instance with predefined option values:
- Helm path: helm
- kubeconfig path: None
- Timeout: 15 (secs)
- Debug: false
- unsafe_mode: false - print overridden values to log
Sourcepub fn new_with_opts(
helm_path: &NonBlankString,
kubeconfig_path: Option<String>,
timeout: u16,
debug: bool,
unsafe_mode: bool,
) -> Self
pub fn new_with_opts( helm_path: &NonBlankString, kubeconfig_path: Option<String>, timeout: u16, debug: bool, unsafe_mode: bool, ) -> Self
Create execute with options:
helm_path- path to helm executablekubeconfig_path- path to kubeconfig file (optional)timeout- timeout for helm command execution (seconds)debug- debug mode, more verbose output from helmunsafe_mode- print overridden values to log
pub fn get_helm_path(&self) -> &str
pub fn get_kubeconfig_path(&self) -> &Option<String>
pub fn get_timeout(&self) -> u16
pub fn get_debug(&self) -> bool
pub fn get_unsafe_mode(&self) -> bool
Trait Implementations§
Source§impl Clone for DefaultHelmExecutor
impl Clone for DefaultHelmExecutor
Source§fn clone(&self) -> DefaultHelmExecutor
fn clone(&self) -> DefaultHelmExecutor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultHelmExecutor
impl Debug for DefaultHelmExecutor
Source§impl HelmExecutor for DefaultHelmExecutor
impl HelmExecutor for DefaultHelmExecutor
Source§fn list(
&self,
namespace: Option<&NonBlankString>,
) -> Result<Vec<HelmListItem>, HelmWrapperError>
fn list( &self, namespace: Option<&NonBlankString>, ) -> Result<Vec<HelmListItem>, HelmWrapperError>
List installed helm charts Read more
Source§fn install_or_upgrade(
&self,
namespace: &NonBlankString,
release_name: &NonBlankString,
chart_name: &NonBlankString,
chart_version: Option<&NonBlankString>,
values_overrides: Option<&HashMap<NonBlankString, String>>,
values_file: Option<&Path>,
helm_options: Option<&Vec<NonBlankString>>,
) -> Result<HelmDeployStatus, HelmWrapperError>
fn install_or_upgrade( &self, namespace: &NonBlankString, release_name: &NonBlankString, chart_name: &NonBlankString, chart_version: Option<&NonBlankString>, values_overrides: Option<&HashMap<NonBlankString, String>>, values_file: Option<&Path>, helm_options: Option<&Vec<NonBlankString>>, ) -> Result<HelmDeployStatus, HelmWrapperError>
Install or upgrade helm chart in such way:
helm upgrade –install [-v CHART-VERSION] [-f VALUES-FILE] [–set <OVERRIDE_A>=<OVERRIDE_A_VALUE>] Read more
Source§fn uninstall(
&self,
namespace: &NonBlankString,
release_name: &NonBlankString,
) -> Result<(), HelmWrapperError>
fn uninstall( &self, namespace: &NonBlankString, release_name: &NonBlankString, ) -> Result<(), HelmWrapperError>
helm_options - any other options for helm. for example ‘–dry-run’ (optional) Read moreAuto Trait Implementations§
impl Freeze for DefaultHelmExecutor
impl RefUnwindSafe for DefaultHelmExecutor
impl Send for DefaultHelmExecutor
impl Sync for DefaultHelmExecutor
impl Unpin for DefaultHelmExecutor
impl UnwindSafe for DefaultHelmExecutor
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
Mutably borrows from an owned value. Read more