pub struct HelmValues {
pub replicaCount: Option<u32>,
pub image: Option<HelmImage>,
pub service: Option<HelmService>,
pub ingress: Option<HelmIngress>,
pub resources: Option<HelmResources>,
pub autoscaling: Option<HelmAutoscaling>,
pub nodeSelector: Option<Value>,
pub tolerations: Option<Vec<Value>>,
pub affinity: Option<Value>,
pub other: HashMap<String, Value>,
}Expand description
Helm values.yaml configuration. Since values files are free-form, we validate common patterns and placeholders.
Fields§
§replicaCount: Option<u32>§image: Option<HelmImage>§service: Option<HelmService>§ingress: Option<HelmIngress>§resources: Option<HelmResources>§autoscaling: Option<HelmAutoscaling>§nodeSelector: Option<Value>§tolerations: Option<Vec<Value>>§affinity: Option<Value>§other: HashMap<String, Value>Implementations§
Source§impl HelmValues
impl HelmValues
pub fn from_value(data: &Value) -> Result<Self, String>
Sourcepub fn looks_like_helm(data: &Value) -> bool
pub fn looks_like_helm(data: &Value) -> bool
Heuristic detection: looks like a Helm values file if it has common patterns
Trait Implementations§
Source§impl Clone for HelmValues
impl Clone for HelmValues
Source§fn clone(&self) -> HelmValues
fn clone(&self) -> HelmValues
Returns a duplicate 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 ConfigValidator for HelmValues
impl ConfigValidator for HelmValues
Source§fn validate_structure(&self) -> Vec<Diagnostic>
fn validate_structure(&self) -> Vec<Diagnostic>
Structural validation — errors mean the config is invalid. Read more
Source§fn validate_semantics(&self) -> Vec<Diagnostic>
fn validate_semantics(&self) -> Vec<Diagnostic>
Semantic validation — best-practice warnings, hints, and info. Read more
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Full validation: structure + semantics combined.
Source§impl Debug for HelmValues
impl Debug for HelmValues
Source§impl<'de> Deserialize<'de> for HelmValues
impl<'de> Deserialize<'de> for HelmValues
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HelmValues
impl RefUnwindSafe for HelmValues
impl Send for HelmValues
impl Sync for HelmValues
impl Unpin for HelmValues
impl UnsafeUnpin for HelmValues
impl UnwindSafe for HelmValues
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