pub enum HelmError {
Show 18 variants
NotHelmDeployer,
RepositoryNotFound(String),
ValuesFileNotFound(String),
MissingRepository,
MissingVersionMap(String),
MissingRelease,
VersionRequiresRepository,
ChartNotUnpacked(String),
AmbiguousUnpackedChart(String),
DynamicOverridesNotImplemented(String),
UnknownDynamicOverrideType(String),
EmptyVersionMap(String),
UnsupportedInlineValueType(String, &'static str),
UnsupportedInlineFileValueType(String, &'static str),
InvalidHelmKey(String),
ConflictingHelmKey(String),
Io(String),
Backend {
context: String,
source: ExecError,
},
}Expand description
Errors used across this module, ported from the Err* sentinels declared
at the top of manager.go. Only the sentinels this session’s submodules
(chartdeps, chartresolve, chartsource, overrider) actually raise
are ported so far; manager.go’s remaining sentinels
(ErrNotHelmDeployer, ErrRepositoryNotFound, ErrValuesFileNotFound,
ErrMissingRepository, ErrMissingVersionMap, ErrMissingRelease,
ErrVersionRequiresRepository) are deferred to when deployer::helm::manager
itself is implemented – see PORT_NOTES.md.
Variants§
NotHelmDeployer
The deployer config’s type is not "helm", or it has no helm
block, when a helm-specific operation was attempted.
RepositoryNotFound(String)
A repository referenced by a deployer (via deployerConfig.repository)
is not found in caproniConfig.repositories.
ValuesFileNotFound(String)
A referenced values file doesn’t exist.
MissingRepository
repository is missing for a gitlab_repo_version_files override.
MissingVersionMap(String)
version_map is missing or the file it names doesn’t exist.
MissingRelease
helm.release is required but not configured.
VersionRequiresRepository
release.version is set without helm.repository.
ChartNotUnpacked(String)
No chart found in the directory helm unpacked into.
AmbiguousUnpackedChart(String)
More than one chart found in the directory helm unpacked into.
DynamicOverridesNotImplemented(String)
Dynamic overrides configured with a type not yet supported.
UnknownDynamicOverrideType(String)
Dynamic override configured with an unrecognized type.
EmptyVersionMap(String)
version_map is empty.
UnsupportedInlineValueType(String, &'static str)
An inline value_map entry is not a scalar, list, or map.
UnsupportedInlineFileValueType(String, &'static str)
An inline_file value_map entry is not a string (file path).
InvalidHelmKey(String)
A Helm key path contains an empty segment.
ConflictingHelmKey(String)
A Helm key path traverses a value that is not a map.
Io(String)
Failure reading or writing a chart file, or parsing a chart’s
Chart.lock, helm repo list -o json, or a version_map file.
Backend
A helm backend call failed. context carries the same
human-readable prefix Go’s fmt.Errorf("...: %w", err) calls used.
Trait Implementations§
Source§impl Error for HelmError
impl Error for HelmError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for HelmError
impl RefUnwindSafe for HelmError
impl Send for HelmError
impl Sync for HelmError
impl Unpin for HelmError
impl UnsafeUnpin for HelmError
impl UnwindSafe for HelmError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString]. Read more