remove unused code
This commit is contained in:
		
							parent
							
								
									2388f585f5
								
							
						
					
					
						commit
						58c1fd4a96
					
				| @ -206,10 +206,6 @@ impl OKDSetup03ControlPlaneInterpret { | |||||||
|         Ok(()) |         Ok(()) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     // TODO: Apply host network configuration.
 |  | ||||||
|     // Delegate to a score: HostNetworkConfigurationScore { host: physical_host } qui manipule Switch dans Topology
 |  | ||||||
|     // Use-case Affilium: remplacement carte reseau, pas juste installation clean
 |  | ||||||
|     //
 |  | ||||||
|     /// Placeholder for automating network bonding configuration.
 |     /// Placeholder for automating network bonding configuration.
 | ||||||
|     async fn persist_network_bond( |     async fn persist_network_bond( | ||||||
|         &self, |         &self, | ||||||
| @ -217,8 +213,7 @@ impl OKDSetup03ControlPlaneInterpret { | |||||||
|         topology: &HAClusterTopology, |         topology: &HAClusterTopology, | ||||||
|         hosts: &Vec<PhysicalHost>, |         hosts: &Vec<PhysicalHost>, | ||||||
|     ) -> Result<(), InterpretError> { |     ) -> Result<(), InterpretError> { | ||||||
|         // Generate MC or NNCP from inventory NIC data; apply via ignition or post-join.
 |         info!("[ControlPlane] Ensuring persistent bonding"); | ||||||
|         info!("[ControlPlane] Ensuring persistent bonding via MachineConfig/NNCP"); |  | ||||||
|         let score = HostNetworkConfigurationScore { |         let score = HostNetworkConfigurationScore { | ||||||
|             hosts: hosts.clone(), // FIXME: Avoid clone if possible
 |             hosts: hosts.clone(), // FIXME: Avoid clone if possible
 | ||||||
|         }; |         }; | ||||||
|  | |||||||
| @ -1,43 +0,0 @@ | |||||||
| use kube::CustomResource; |  | ||||||
| use schemars::JsonSchema; |  | ||||||
| use serde::{Deserialize, Serialize}; |  | ||||||
| 
 |  | ||||||
| #[derive(CustomResource, Deserialize, Serialize, Clone, Debug, JsonSchema)] |  | ||||||
| #[kube(
 |  | ||||||
|     group = "machineconfiguration.openshift.io", |  | ||||||
|     version = "v1", |  | ||||||
|     kind = "MachineConfig", |  | ||||||
|     namespaced |  | ||||||
| )] |  | ||||||
| #[serde(rename_all = "camelCase")] |  | ||||||
| pub struct MachineConfigSpec { |  | ||||||
|     pub config: Config, |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| #[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)] |  | ||||||
| #[serde(rename_all = "camelCase")] |  | ||||||
| pub struct Config { |  | ||||||
|     pub ignition: Ignition, |  | ||||||
|     pub storage: Option<Storage>, |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| #[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)] |  | ||||||
| pub struct Ignition { |  | ||||||
|     pub version: String, |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| #[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)] |  | ||||||
| pub struct Storage { |  | ||||||
|     pub files: Vec<File>, |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| #[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)] |  | ||||||
| pub struct File { |  | ||||||
|     pub path: String, |  | ||||||
|     pub contents: FileContents, |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| #[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)] |  | ||||||
| pub struct FileContents { |  | ||||||
|     pub source: String, |  | ||||||
| } |  | ||||||
| @ -2,7 +2,6 @@ use kube::CustomResource; | |||||||
| use schemars::JsonSchema; | use schemars::JsonSchema; | ||||||
| use serde::{Deserialize, Serialize}; | use serde::{Deserialize, Serialize}; | ||||||
| 
 | 
 | ||||||
| pub mod machineconfig; |  | ||||||
| pub mod nmstate; | pub mod nmstate; | ||||||
| 
 | 
 | ||||||
| #[derive(CustomResource, Deserialize, Serialize, Clone, Debug, JsonSchema)] | #[derive(CustomResource, Deserialize, Serialize, Clone, Debug, JsonSchema)] | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user