refactor: monitoring takes namespace from tenant

This commit is contained in:
2025-07-02 11:13:03 -04:00
parent 460c8b59e1
commit 7de9860dcf
8 changed files with 408 additions and 145 deletions

View File

@@ -1,4 +1,3 @@
use cidr::Ipv4Cidr;
use harmony::{
data::Id,
inventory::Inventory,
@@ -14,11 +13,9 @@ use harmony::{
},
topology::{
K8sAnywhereTopology, Url,
tenant::{InternetEgressPolicy, ResourceLimits, TenantConfig, TenantNetworkPolicy},
tenant::{ResourceLimits, TenantConfig, TenantNetworkPolicy},
},
};
use std::net::Ipv4Addr;
use std::str::FromStr;
#[tokio::main]
async fn main() {
@@ -27,7 +24,7 @@ async fn main() {
id: Id::from_string("1234".to_string()),
name: "test-tenant".to_string(),
resource_limits: ResourceLimits {
cpu_request_cores: 4.0,
cpu_request_cores: 6.0,
cpu_limit_cores: 4.0,
memory_request_gb: 4.0,
memory_limit_gb: 4.0,