Compare commits

..

1 Commits

Author SHA1 Message Date
Andrew Stoltz
30e16bfcfb feat: add qt sdk remotedesktop warm pool 2026-05-19 12:30:32 -05:00
4 changed files with 32 additions and 60 deletions

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
*.yaml text eol=lf
*.yml text eol=lf

View File

@@ -0,0 +1,30 @@
# FlowerCore RemoteDesktop warm-pool posture.
#
# The RemoteDesktop Web and Operator Deployments remain owned by
# FlowerCore.RemoteDesktop. bluejay-infra owns these GitOps pool intents so
# rebuilds preserve the operational posture without baking it into service code.
---
apiVersion: flowercore.io/v1
kind: RemoteDesktopPoolCrd
metadata:
name: qt-sdk-pool
namespace: fc-desktop
labels:
app.kubernetes.io/name: remotedesktop-pool
app.kubernetes.io/component: warm-pool
app.kubernetes.io/part-of: flowercore-remotedesktop
flowercore.io/template: dev-workstation
flowercore.io/image: localhost-fc-desktop-qt-sdk
annotations:
flowercore.io/deficit-tolerance: "0"
flowercore.io/scale-mode: ManualScaleOnDemand
flowercore.io/image-ref: localhost/fc-desktop:qt-sdk
flowercore.io/image-pull-policy: Never
spec:
templateSlug: dev-workstation
desiredSize: 0
enabled: false
userVolumeMode: LateAttach
deficitTolerance: 0
scaleMode: ManualScaleOnDemand
reconcileNow: false

View File

@@ -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

View File

@@ -421,35 +421,6 @@ public sealed class FleetManifestLintTests
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]
public void FcDeviceManagement_MustShipExpectedManifestSet()
{
@@ -696,13 +667,6 @@ public sealed class FleetManifestLintTests
.Where(document => document.RelativePath.StartsWith("fc-devicemgmt/", StringComparison.Ordinal))
.ToList();
}
private static IReadOnlyList<ManifestDocument> FcDesktopDocuments()
{
return Inventory.Documents
.Where(document => document.RelativePath.StartsWith("fc-desktop/", StringComparison.Ordinal))
.ToList();
}
}
internal sealed class ManifestInventory