pub struct OptimizeOptions {Show 19 fields
pub cluster: Option<String>,
pub prometheus: Option<String>,
pub namespace: Option<String>,
pub period: String,
pub severity: Option<String>,
pub threshold: Option<u8>,
pub safety_margin: Option<u8>,
pub include_info: bool,
pub include_system: bool,
pub format: String,
pub output: Option<String>,
pub fix: bool,
pub full: bool,
pub apply: bool,
pub dry_run: bool,
pub backup_dir: Option<String>,
pub min_confidence: u8,
pub cloud_provider: Option<String>,
pub region: String,
}Expand description
Configuration for the optimize command
Fields§
§cluster: Option<String>Connect to a live cluster (context name or empty for current)
prometheus: Option<String>Prometheus URL for historical metrics
namespace: Option<String>Target namespace
period: StringAnalysis period for historical data
severity: Option<String>Minimum severity to report
threshold: Option<u8>Minimum waste percentage to report
safety_margin: Option<u8>Safety margin percentage
include_info: boolInclude info-level suggestions
include_system: boolInclude system namespaces
format: StringOutput format
output: Option<String>Output file
fix: boolGenerate fixes
full: boolRun comprehensive analysis (kubelint + helmlint + optimize)
apply: boolApply fixes to manifest files
dry_run: boolDry-run mode (preview without applying)
backup_dir: Option<String>Backup directory for original files
min_confidence: u8Minimum confidence threshold for auto-apply
cloud_provider: Option<String>Cloud provider for cost estimation
region: StringRegion for cloud pricing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptimizeOptions
impl RefUnwindSafe for OptimizeOptions
impl Send for OptimizeOptions
impl Sync for OptimizeOptions
impl Unpin for OptimizeOptions
impl UnwindSafe for OptimizeOptions
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
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> 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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.