first commit ish

This commit is contained in:
Nils Blomgren
2026-06-04 08:51:22 +02:00
parent e0f967482e
commit 658f15d086
320 changed files with 307404 additions and 1187 deletions

View File

@@ -0,0 +1,29 @@
namespace EntKube.Web.Data;
/// <summary>
/// Resource quota limits for an app's namespace, applied as a Kubernetes
/// ResourceQuota. One record per app (1:1). Null fields are omitted from the
/// generated manifest so only the desired constraints are enforced.
/// </summary>
public class AppQuota
{
public Guid Id { get; set; }
public Guid AppId { get; set; }
// CPU
public string? CpuRequest { get; set; } // e.g. "500m"
public string? CpuLimit { get; set; } // e.g. "2"
// Memory
public string? MemoryRequest { get; set; } // e.g. "256Mi"
public string? MemoryLimit { get; set; } // e.g. "1Gi"
// Count quotas
public int? MaxPods { get; set; }
public int? MaxPvcs { get; set; }
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
// Navigation
public App App { get; set; } = null!;
}