pub struct Lint {
pub paths: Vec<PathBuf>,
pub values: Values,
pub kube_version: Option<String>,
pub quiet: bool,
pub skip_schema_validation: bool,
pub strict: bool,
pub with_subcharts: bool,
}Expand description
helm lint (pkg/cmd/lint.go, pkg/action/lint.go): checks charts and returns the findings.
A chart with errors (or, with strict, warnings) makes Helm exit non-zero; that is a result,
not an error: read LintReport::passed. An error is returned only when Helm could not lint
at all (for example an unreadable values file).
Fields§
§paths: Vec<PathBuf>The PATH arguments: chart directories or .tgz archives; at least one.
values: ValuesFlags -f, --set, --set-string, --set-file, --set-json and --set-literal.
kube_version: Option<String>Flag --kube-version: the Kubernetes version for capabilities and deprecation checks.
quiet: boolFlag --quiet: print only warnings and errors (charts without them are left out of the
report).
skip_schema_validation: boolFlag --skip-schema-validation: do not validate the values against the chart’s schema.
strict: boolFlag --strict: a warning fails the chart too.
with_subcharts: boolFlag --with-subcharts: lint the charts below charts/ as well.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Lint
Auto Trait Implementations§
impl Forget for Lint
impl Freeze for Lintwhere
*const u8 is !null: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<ValuesFile>: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Lint
impl RefUnwindSafe for Lint
impl Send for Lint
impl Sync for Lint
impl Unpin for Lint
impl UnsafeUnpin for Lintwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<ValuesFile>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Lint
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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