Compare commits
1 Commits
sprint39/c
...
sprint40/c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41185f0642 |
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -1,2 +0,0 @@
|
|||||||
*.yaml text eol=lf
|
|
||||||
*.yml text eol=lf
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# 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
|
|
||||||
24
apps/fc-desktop/resourcequota.yaml
Normal file
24
apps/fc-desktop/resourcequota.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# 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
|
||||||
@@ -421,6 +421,35 @@ 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()
|
||||||
{
|
{
|
||||||
@@ -667,6 +696,13 @@ 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