use harmony::{ inventory::Inventory, modules::postgresql::{ capability::PostgreSQLConfig, K8sPostgreSQLScore, PublicPostgreSQLScore }, topology::{FailoverTopology, K8sAnywhereTopology}, }; #[tokio::main] async fn main() { let postgres = PublicPostgreSQLScore { postgres_score: K8sPostgreSQLScore { config: PostgreSQLConfig { cluster_name: "harmony-postgres-example".to_string(), // Override default name namespace: "harmony-public-postgres".to_string(), ..Default::default() // Use harmony defaults, they are based on CNPG's default values : // "default" namespace, 1 instance, 1Gi storage }, }, hostname: "postgrestest.sto1.nationtech.io".to_string(), }; harmony_cli::run( Inventory::autoload(), FailoverTopology::::from_env(), vec![Box::new(postgres)], None, ) .await .unwrap(); }