Compare commits
1 Commits
sprint40/c
...
sprint41/c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a20f05525 |
@@ -1,24 +0,0 @@
|
|||||||
# FlowerCore Remote Desktop - Namespace ResourceQuota (GitOps-managed)
|
|
||||||
#
|
|
||||||
# Codifies the live cap applied on 2026-05-19 after disabling automatic
|
|
||||||
# desktop pool prewarm: no more than 15 pods and no more than 8 CPU / 16Gi
|
|
||||||
# memory requested across the fc-desktop namespace.
|
|
||||||
#
|
|
||||||
# ArgoCD adoption note: this manifest uses the same kind/name/namespace as
|
|
||||||
# the live ResourceQuota and avoids hook, force, or replace annotations, so
|
|
||||||
# automated sync should patch/adopt the existing object in place instead of
|
|
||||||
# recreating it.
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ResourceQuota
|
|
||||||
metadata:
|
|
||||||
name: fc-desktop-cap
|
|
||||||
namespace: fc-desktop
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/part-of: remotedesktop
|
|
||||||
app.kubernetes.io/component: capacity-guard
|
|
||||||
app.kubernetes.io/managed-by: argocd
|
|
||||||
spec:
|
|
||||||
hard:
|
|
||||||
count/pods: "15"
|
|
||||||
cpu: "8"
|
|
||||||
memory: 16Gi
|
|
||||||
@@ -208,6 +208,9 @@ data:
|
|||||||
vlan: "home"
|
vlan: "home"
|
||||||
arch: "arm64"
|
arch: "arm64"
|
||||||
role: "relay-controller"
|
role: "relay-controller"
|
||||||
|
maintenance_state: "planned-offline"
|
||||||
|
maintenance_ticket: "Q-SP41-PIRELAY"
|
||||||
|
maintenance_reason: "traffic-light-rig-awaiting-power"
|
||||||
|
|
||||||
# =======================================================================
|
# =======================================================================
|
||||||
# PiManager Application Metrics (relay states, temps, automation)
|
# PiManager Application Metrics (relay states, temps, automation)
|
||||||
@@ -229,6 +232,9 @@ data:
|
|||||||
service: "pimanager"
|
service: "pimanager"
|
||||||
vlan: "home"
|
vlan: "home"
|
||||||
device: "pi3-ks0212"
|
device: "pi3-ks0212"
|
||||||
|
maintenance_state: "planned-offline"
|
||||||
|
maintenance_ticket: "Q-SP41-PIRELAY"
|
||||||
|
maintenance_reason: "traffic-light-rig-awaiting-power"
|
||||||
|
|
||||||
# Epson ET-3750 EcoTank Printer SNMP
|
# Epson ET-3750 EcoTank Printer SNMP
|
||||||
- job_name: "snmp-printer"
|
- job_name: "snmp-printer"
|
||||||
|
|||||||
@@ -421,35 +421,6 @@ public sealed class FleetManifestLintTests
|
|||||||
violations.Should().BeEmpty();
|
violations.Should().BeEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
|
||||||
[Trait("Question", "Q-RD-DESKTOP-CAP-4")]
|
|
||||||
public void FcDesktop_ResourceQuotaMustCodifyLivePodCpuMemoryCap()
|
|
||||||
{
|
|
||||||
var quota = FcDesktopDocuments()
|
|
||||||
.Single(document => document.Kind == "ResourceQuota" && document.Name == "fc-desktop-cap");
|
|
||||||
|
|
||||||
quota.RelativePath.Should().Be("fc-desktop/resourcequota.yaml");
|
|
||||||
quota.Namespace.Should().Be("fc-desktop");
|
|
||||||
quota.Scalar("spec", "hard", "count/pods").Should().Be("15");
|
|
||||||
quota.Scalar("spec", "hard", "cpu").Should().Be("8");
|
|
||||||
quota.Scalar("spec", "hard", "memory").Should().Be("16Gi");
|
|
||||||
}
|
|
||||||
|
|
||||||
[Fact]
|
|
||||||
[Trait("Question", "Q-RD-DESKTOP-CAP-5")]
|
|
||||||
public void FcDesktop_ResourceQuotaMustBeArgoCdAdoptableInPlace()
|
|
||||||
{
|
|
||||||
var quota = FcDesktopDocuments()
|
|
||||||
.Single(document => document.Kind == "ResourceQuota" && document.Name == "fc-desktop-cap");
|
|
||||||
|
|
||||||
quota.RelativePath.Should().StartWith("fc-desktop/");
|
|
||||||
quota.Scalar("metadata", "annotations", "argocd.argoproj.io/hook").Should().BeNull();
|
|
||||||
|
|
||||||
var syncOptions = quota.Scalar("metadata", "annotations", "argocd.argoproj.io/sync-options") ?? string.Empty;
|
|
||||||
syncOptions.Should().NotContain("Force=true");
|
|
||||||
syncOptions.Should().NotContain("Replace=true");
|
|
||||||
}
|
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void FcDeviceManagement_MustShipExpectedManifestSet()
|
public void FcDeviceManagement_MustShipExpectedManifestSet()
|
||||||
{
|
{
|
||||||
@@ -696,13 +667,6 @@ public sealed class FleetManifestLintTests
|
|||||||
.Where(document => document.RelativePath.StartsWith("fc-devicemgmt/", StringComparison.Ordinal))
|
.Where(document => document.RelativePath.StartsWith("fc-devicemgmt/", StringComparison.Ordinal))
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IReadOnlyList<ManifestDocument> FcDesktopDocuments()
|
|
||||||
{
|
|
||||||
return Inventory.Documents
|
|
||||||
.Where(document => document.RelativePath.StartsWith("fc-desktop/", StringComparison.Ordinal))
|
|
||||||
.ToList();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
internal sealed class ManifestInventory
|
internal sealed class ManifestInventory
|
||||||
|
|||||||
Reference in New Issue
Block a user