pub enum Diagnostic {
MissingSchema {
kind: String,
api_version: String,
k8s_versions_tried: Vec<String>,
tried_filenames: Vec<String>,
available_in_cache_versions: Vec<String>,
suggested_k8s_version: Option<String>,
hint: Option<String>,
},
ResolvedFromFallbackVersion {
kind: String,
api_version: String,
primary_version: String,
resolved_version: String,
},
InferredApiVersion {
kind: String,
inferred_api_version: String,
source: InferenceSource,
origin: ProviderOrigin,
},
AmbiguousApiVersion {
kind: String,
candidates: Vec<ApiVersionCandidate>,
},
CrdVersionNotFound {
group: String,
kind: String,
requested_version: String,
locations_tried: Vec<String>,
},
CrdVersionAvailableAtOtherVersions {
group: String,
kind: String,
requested_version: String,
available_versions: Vec<String>,
},
LocalOverrideUnreadable {
kind: String,
api_version: String,
override_path: String,
io_error: String,
},
CacheLayoutInvalidated {
cache_root: String,
previous_marker: Option<u32>,
current_marker: u32,
},
CacheLayoutForwardIncompatible {
cache_root: String,
on_disk_marker: u32,
compiled_marker: u32,
},
InputChannelNumericRangeAmbiguity {
value_path: String,
},
}Expand description
User-facing diagnostic. Every event helm-schema emits at runtime is
one of these. Diagnostic::key produces the deduplication key.
Variants§
MissingSchema
No configured provider could supply a resource schema.
Fields
ResolvedFromFallbackVersion
A fallback Kubernetes release supplied the requested API schema.
Fields
InferredApiVersion
Analysis inferred an API version omitted from the resource.
Fields
source: InferenceSourceEvidence tier that produced the candidate.
origin: ProviderOriginProvider family that supplied the evidence.
AmbiguousApiVersion
Several inferred API versions remain equally viable.
Fields
candidates: Vec<ApiVersionCandidate>Stable set of candidates and their provenance.
CrdVersionNotFound
A CRD catalog lacks the requested version.
Fields
CrdVersionAvailableAtOtherVersions
A CRD exists, but only at other versions.
Fields
LocalOverrideUnreadable
A configured local schema override could not be read.
Fields
CacheLayoutInvalidated
An obsolete cache layout was discarded.
Fields
CacheLayoutForwardIncompatible
A newer on-disk cache layout cannot be read safely.
Fields
InputChannelNumericRangeAmbiguity
A one-variable Helm range can iterate an integer supplied through
--set, while the same JSON number supplied by a values file or
--set-json has a non-rangeable runtime kind. JSON Schema cannot
distinguish those input channels.
Implementations§
Source§impl Diagnostic
impl Diagnostic
Sourcepub fn key(&self) -> DiagnosticKey
pub fn key(&self) -> DiagnosticKey
The deduplication key for this diagnostic.
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§fn clone(&self) -> Diagnostic
fn clone(&self) -> Diagnostic
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Diagnostic
impl Debug for Diagnostic
Source§impl<'de> Deserialize<'de> for Diagnostic
impl<'de> Deserialize<'de> for Diagnostic
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Diagnostic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Diagnostic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Diagnostic
Source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
Source§impl Serialize for Diagnostic
impl Serialize for Diagnostic
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnostic
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.