36 lines
986 B
Rust
36 lines
986 B
Rust
use crate::data::Version;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct OKDUpgradeScore {
|
|
_current_version: Version,
|
|
_target_version: Version,
|
|
}
|
|
|
|
impl OKDUpgradeScore {
|
|
pub fn new() -> Self {
|
|
Self {
|
|
_current_version: Version::from("4.17.0-okd-scos.0").unwrap(),
|
|
_target_version: Version::from("").unwrap(),
|
|
}
|
|
}
|
|
}
|
|
|
|
// impl Score for OKDUpgradeScore {
|
|
// fn create_interpret(self) -> Box<dyn Interpret> {
|
|
// // Should this be a specialized interpret for OKD upgrades or rather a set of interprets
|
|
// // such as :
|
|
// //
|
|
// // MultiStageInterpret :
|
|
// // stages : vec![
|
|
// // vec![CheckOperatorsUpgraded, CheckClusterHealthy, CheckOtherPrecondition],
|
|
// // vec![PerformUpgrade],
|
|
// // vec![VerifyUpgrade, CheckClusterHealth],
|
|
// // ]
|
|
// todo!()
|
|
// }
|
|
//
|
|
// fn name(&self) -> String {
|
|
// "OKDUpgradeScore".to_string()
|
|
// }
|
|
// }
|