pub struct CrdArgs {
pub crd_version_lookup: CrdVersionLookup,
pub strict_crd_version: bool,
pub crd_catalog_mirror: Vec<String>,
pub crd_catalog_cache_dir: Option<PathBuf>,
pub crd_override_dir: Option<PathBuf>,
pub crd_cache_record_source: bool,
pub crd_catalog_dir_removed: Option<PathBuf>,
}Expand description
CRD catalog, override, cache, and version-resolution options.
Fields§
§crd_version_lookup: CrdVersionLookupCRD version lookup mode. Default strict: only the exact
(group, kind, version) is consulted. loose enables cross-scan
- informational hints; mirrors are available in BOTH modes.
strict_crd_version: boolShort alias for --crd-version-lookup=strict. Kept for
symmetry with --strict-k8s-version / --strict-api-versions
and to keep CI opt-out flags short.
crd_catalog_mirror: Vec<String>Additional upstream CRD catalog mirror URL. Repeatable. Per-source cache namespacing keeps mirror entries from masking the default.
crd_catalog_cache_dir: Option<PathBuf>Managed cache root for CRD schemas. Subject to the cache invalidation contract.
crd_override_dir: Option<PathBuf>Hand-maintained CRD schema overrides. Never wiped, never subject to the cache invalidation contract.
crd_cache_record_source: boolWrite a <schema>.json.meta sidecar alongside every CRD cache
entry recording the fetch URL and timestamp.
crd_catalog_dir_removed: Option<PathBuf>Removed in this alpha — use --crd-override-dir and/or
--crd-catalog-cache-dir instead.
Implementations§
Source§impl CrdArgs
impl CrdArgs
Sourcepub fn lookup_mode(&self) -> CrdVersionLookup
pub fn lookup_mode(&self) -> CrdVersionLookup
Resolved version-lookup mode after considering the alias flag.
Trait Implementations§
Source§impl Args for CrdArgs
impl Args for CrdArgs
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 CrdArgs
impl FromArgMatches for CrdArgs
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.