pub struct K8sArgs {
pub k8s_version: Vec<String>,
pub k8s_version_fallback: Option<K8sVersionFallback>,
pub k8s_schema_mirror: Vec<String>,
pub k8s_schema_cache_dir: Option<PathBuf>,
pub no_cache: bool,
pub strict_k8s_version: bool,
pub offline: bool,
pub no_k8s_schemas: bool,
}Expand description
Kubernetes schema versions, mirrors, cache, and network options.
Fields§
§k8s_version: Vec<String>Kubernetes minor version directory(s) to consult, in user-supplied priority order. The first value is the primary; any further values are explicit fallbacks.
k8s_version_fallback: Option<K8sVersionFallback>Auto-extend the (single explicit) --k8s-version with older
minors. auto uses the default window; <n> selects an
explicit window size.
k8s_schema_mirror: Vec<String>Additional upstream K8s schema mirror URL. Repeatable. Per-source cache namespacing keeps mirror entries from masking the default.
k8s_schema_cache_dir: Option<PathBuf>Managed cache root for K8s schemas. Subject to the cache invalidation contract.
no_cache: boolBypass K8s schema cache reads and re-check upstream directly.
Successful responses and authoritative 404s still refresh cache state, so this can repair stale local entries.
strict_k8s_version: boolSuppress auto-fallback version semantics. Conflicts only with
--k8s-version-fallback; orthogonal to --k8s-schema-mirror.
offline: boolForce offline. Equivalent to setting HELM_SCHEMA_ALLOW_NET=0.
no_k8s_schemas: boolSkip K8s upstream schemas entirely.
Implementations§
Source§impl K8sArgs
impl K8sArgs
Sourcepub fn resolved_fallback_window(&self) -> Result<Option<u32>, String>
pub fn resolved_fallback_window(&self) -> Result<Option<u32>, String>
Resolved fallback window after applying strict mode + sanity
checks. Returns None when no auto-fallback should apply (either
because strict is set, the flag is absent, or Window(0)).
§Errors
Returns an error when automatic fallback is combined with more than one explicitly configured Kubernetes version.
Trait Implementations§
Source§impl Args for K8sArgs
impl Args for K8sArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for K8sArgs
impl FromArgMatches for K8sArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.