use migration_helpers::{common_migrations::AddPrefixesMigration, migrate, Result}; use std::process; /// Additional `settings.kubernetes` options for this release. fn run() -> Result<()> { migrate(AddPrefixesMigration(vec![ "settings.kubernetes.memory-manager-reserved-memory", ])) } // Returning a Result from main makes it print a Debug representation of the error, but with Snafu // we have nice Display representations of the error, so we wrap "main" (run) and print any error. // https://github.com/shepmaster/snafu/issues/110 fn main() { if let Err(e) = run() { eprintln!("{}", e); process::exit(1); } }