This commit is contained in:
		
							parent
							
								
									c02763a6fc
								
							
						
					
					
						commit
						2c90d50168
					
				| @ -17,7 +17,10 @@ impl std::fmt::Debug for K8sClient { | |||||||
|     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||||||
|         // This is a poor man's debug implementation for now as kube::Client does not provide much
 |         // This is a poor man's debug implementation for now as kube::Client does not provide much
 | ||||||
|         // useful information
 |         // useful information
 | ||||||
|         f.write_fmt(format_args!("K8sClient {{ kube client using default namespace {} }}", self.client.default_namespace())) |         f.write_fmt(format_args!( | ||||||
|  |             "K8sClient {{ kube client using default namespace {} }}", | ||||||
|  |             self.client.default_namespace() | ||||||
|  |         )) | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -61,7 +61,8 @@ impl K8sclient for K8sAnywhereTopology { | |||||||
| impl Serialize for K8sAnywhereTopology { | impl Serialize for K8sAnywhereTopology { | ||||||
|     fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> |     fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> | ||||||
|     where |     where | ||||||
|         S: serde::Serializer { |         S: serde::Serializer, | ||||||
|  |     { | ||||||
|         todo!() |         todo!() | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ use crate::{modules::application::ApplicationFeature, topology::Topology}; | |||||||
| /// It is intended to be used as an application feature passed down to an ApplicationInterpret. For
 | /// It is intended to be used as an application feature passed down to an ApplicationInterpret. For
 | ||||||
| /// example :
 | /// example :
 | ||||||
| ///
 | ///
 | ||||||
| /// ```rust
 | /// ```rust,ignore
 | ||||||
| /// let app = RustApplicationScore {
 | /// let app = RustApplicationScore {
 | ||||||
| ///     name: "My Rust App".to_string(),
 | ///     name: "My Rust App".to_string(),
 | ||||||
| ///     features: vec![ContinuousDelivery::default()],
 | ///     features: vec![ContinuousDelivery::default()],
 | ||||||
|  | |||||||
| @ -91,7 +91,7 @@ impl<T: Topology> Clone for Box<dyn ApplicationFeature<T>> { | |||||||
| pub struct BackupFeature; | pub struct BackupFeature; | ||||||
| 
 | 
 | ||||||
| #[async_trait] | #[async_trait] | ||||||
| impl <T: Topology > ApplicationFeature<T> for BackupFeature { | impl<T: Topology> ApplicationFeature<T> for BackupFeature { | ||||||
|     async fn ensure_installed(&self, _topology: &T) -> Result<(), String> { |     async fn ensure_installed(&self, _topology: &T) -> Result<(), String> { | ||||||
|         todo!() |         todo!() | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -1,3 +1,4 @@ | |||||||
|  | pub mod application; | ||||||
| pub mod cert_manager; | pub mod cert_manager; | ||||||
| pub mod dhcp; | pub mod dhcp; | ||||||
| pub mod dns; | pub mod dns; | ||||||
| @ -14,4 +15,3 @@ pub mod okd; | |||||||
| pub mod opnsense; | pub mod opnsense; | ||||||
| pub mod tenant; | pub mod tenant; | ||||||
| pub mod tftp; | pub mod tftp; | ||||||
| pub mod application; |  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user