Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Normalize Kubernetes workflow tab contracts

rcourtmanc71302737993
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index a77e46e384..6bdb4fa872 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -674,8 +674,9 @@ AI-adjacent shell and must not be kept as disabled placeholders. The legacy
`/infrastructure`, `/workloads`, `/storage`, `/recovery`, and `/ceph` route
shells were retired alongside their page wrappers. The AI Chat launcher, the
Patrol surfaces, and the `AssistantHandoffPayload` deep links must use
-platform routes (`/proxmox/overview`, `/proxmox/storage`, `/kubernetes/pods`,
-etc.) as canonical anchors rather than the retired top-level paths; adding a
+platform routes (`/proxmox/overview`, `/proxmox/storage`,
+`/kubernetes/workloads`, etc.) as canonical anchors rather than the retired
+top-level paths; adding a
platform tab through the same shell files must not fork Assistant or Patrol
shell state or smuggle in AI-owned platform reads.
Post-auth `/` and `/login` resolution follows that same provider-first
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 0bc55a89e6..f166d707b3 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -833,15 +833,19 @@ not a replacement status card, CTA band, or page-local nested card.
the container-runtime lens and may be labelled `Containers` in the shell,
while shared source badges, filters, and runtime management copy continue
to use `Docker / Podman` where the capability itself is being named.
- Kubernetes pods on `/kubernetes/pods` must render through
+ Kubernetes workload rows on `/kubernetes/workloads` must render through the
+ Kubernetes-native workload tables rather than a generic infrastructure or
+ inventory table. Pods render through
`frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx` with
- Pod-native phase, readiness, restart, owner, node, image, and age columns.
- Kubernetes controller rows on `/kubernetes/controllers` must render through
- `frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx`
- rather than a generic infrastructure or inventory table. The table boundary
- preserves platform-native API fields for StatefulSets, DaemonSets, Jobs, and
- CronJobs, including targets, active/current counts, ready/succeeded counts,
- availability, exceptions, service names, schedules, and last run metadata.
+ Pod-native phase, readiness, restart, owner, node, image, and age columns;
+ legacy `/kubernetes/pods` resolves to the same workflow. Controller rows
+ render through
+ `frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx`;
+ legacy `/kubernetes/controllers` resolves to the same workflow. The table
+ boundary preserves platform-native API fields for StatefulSets, DaemonSets,
+ Jobs, and CronJobs, including targets, active/current counts,
+ ready/succeeded counts, availability, exceptions, service names, schedules,
+ and last run metadata.
8. Keep shared source/platform vocabulary on the governed manifest boundary. `frontend-modern/src/utils/platformSupportManifest.generated.ts` must be the tracked frontend projection of `docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json`, `frontend-modern/src/utils/platformSupportManifest.ts`, `frontend-modern/src/utils/sourcePlatforms.ts`, and `frontend-modern/src/utils/sourcePlatformOptions.ts` must consume that generated projection instead of embedding divergent future-label lists, setup/onboarding path allowlists, host-profile labels, surface-kind guesses, readiness-state guesses, or presentation-only guesses, and `frontend-modern/scripts/canonical-platform-audit.mjs` must fail when the generated projection drifts from the governed manifest. The generated governance/readiness split is authoritative: supported platform arrays drive current support claims, while admitted platform arrays may keep route/navigation and add-flow vocabulary available without turning `first-lab-ready` entries such as VMware into supported-source copy. Kubernetes manifest projections must enumerate the native API-backed page sections the shared tab shell can expose, including controllers, networking, storage, config, policy, autoscaling, and events, so platform pages do not invent local support claims outside the governed JSON. The generated `surface_kind` is the machine-readable boundary between owning platform entries and runtime lenses: `docker` is a `runtime-lens`, not a `platform`, even when the container-runtime route stays available as a primary shell destination. The generic `docker` source-platform label is "Docker / Podman" in shared selectors, badges, and filter options so v5 Docker users can find the runtime surface while Podman-backed rows are not mislabeled as Docker-only; "Container runtime" remains the governed runtime family, not the primary customer-facing label. Identity colour is semantic, not page-local decoration: shared source/platform badges, host identity badges, and container runtime badges must use the shared presentation helpers so Docker remains on the Docker/Podman blue runtime tone, Podman uses its distinct runtime tone, Proxmox PVE remains orange, and those meanings do not drift across table rows, filters, drawers, or platform pages. Agent host-profile entries, including Unraid, stay in the generated `agentHostProfiles` projection and shared wrapper helpers; frontend primitives may render those labels for Pulse Agent install/identity copy but must not add them to the first-class platform union.
The generated host-profile projection also carries runtime platform fallback
metadata for shared explanation and parity with backend normalization, but
@@ -1563,7 +1567,7 @@ Command palette and keyboard shortcuts moved to platform-first on 2026-05-16
with the `g i` / `g w` / `g s` / `g b` chord bindings — were retired and
replaced with `nav-proxmox`, `nav-docker`, `nav-kubernetes`, `nav-truenas`,
`nav-vmware` (chords `g p` / `g d` / `g k` / `g n` / `g v`) plus a dedicated
-`nav-kubernetes-pods` entry that lands on `/kubernetes/pods`. The shell
+`nav-kubernetes-workloads` entry that lands on `/kubernetes/workloads`. The shell
preload set and `getActiveTabForPath` matcher no longer recognize the legacy
top-level routes. New palette commands and shortcut chords must therefore
anchor on canonical platform routes and must flow through the same platform
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 7248250c29..4890b1e402 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -148,21 +148,28 @@ cross-source deduplication.
## Shared Boundaries
-Kubernetes workload presentation is API-native, not generic inventory. Pods
+Kubernetes workload presentation is API-native, not generic inventory. Pods,
+Deployments, controllers, and autoscalers render under the `/kubernetes/workloads`
+workflow tab; legacy object routes such as `/kubernetes/pods`,
+`/kubernetes/deployments`, `/kubernetes/controllers`, and
+`/kubernetes/autoscaling` are compatibility aliases for that workflow. Pods
render through `frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx`
-on `/kubernetes/pods` with Pod phase, container readiness, restart, owner,
-node, image, and age fields from the Kubernetes API projection. StatefulSet,
-DaemonSet, Job, and CronJob rows render through
-`frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx` on
-`/kubernetes/controllers` and must preserve the Kubernetes API status semantics
-for desired replica/node/job targets, current or active counts, ready/succeeded
-counts, availability, misscheduled/unavailable/failed/suspended exceptions,
-service names, schedules, and controller timing fields instead of falling back
-to infrastructure columns. Deployment rows render through
+with Pod phase, container readiness, restart, owner, node, image, and age fields
+from the Kubernetes API projection. StatefulSet, DaemonSet, Job, and CronJob rows
+render through
+`frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx` and must
+preserve the Kubernetes API status semantics for desired replica/node/job
+targets, current or active counts, ready/succeeded counts, availability,
+misscheduled/unavailable/failed/suspended exceptions, service names, schedules,
+and controller timing fields instead of falling back to infrastructure columns.
+Deployment rows render through
`frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx` with
Deployment status replica counts, `status.observedGeneration`, and metadata
creation age carried by the canonical Kubernetes resource facet rather than
-page-local derivation or generic host columns.
+page-local derivation or generic host columns. HorizontalPodAutoscaler rows in
+the same workflow preserve scale target, min/max replica bounds, current and
+desired replicas, and metric source types instead of routing HPA rows through the
+generic controller/event inventory table.
Container runtime navigation is a unified-resource consumer boundary: the
`/docker` route is the Docker / Podman runtime lens, not an exclusive owning
@@ -173,18 +180,18 @@ service-surface proof. The unified-resource adapter is the backend fail-closed
layer for that rule, so persisted or older-agent inactive Swarm payloads cannot
reintroduce false Swarm capability surfaces.
-Kubernetes policy inventory is a unified-resource consumer boundary: the
-`/kubernetes/policy` route must render NetworkPolicy, PodDisruptionBudget,
-ResourceQuota, and LimitRange rows through a policy-native table that preserves
-API-specific policy types, ingress/egress rule counts, disruption-budget health
-and allowed disruptions, quota hard/used maps, and LimitRange item types instead
-of collapsing those resources into generic detail text.
-
-Kubernetes autoscaling inventory is a unified-resource consumer boundary: the
-`/kubernetes/autoscaling` route must render HorizontalPodAutoscaler rows through
-an autoscaling-native table that preserves the API scale target, min/max replica
-bounds, current and desired replicas, and metric source types instead of routing
-HPA rows through the generic controller/event inventory table.
+Kubernetes configuration and policy inventory are unified-resource consumer
+boundaries: the `/kubernetes/configuration` workflow tab must render Namespace,
+ConfigMap, Secret, ServiceAccount, NetworkPolicy, PodDisruptionBudget,
+ResourceQuota, and LimitRange rows through API-native config and policy tables.
+Legacy `/kubernetes/config` and `/kubernetes/policy` routes resolve to that
+workflow tab. Config rows preserve cluster/namespace scope, Namespace lifecycle
+phase, ConfigMap/Secret immutable and type metadata, ServiceAccount
+token/image-pull/secret references, and metadata-only collection wording without
+rendering ConfigMap or Secret payload values. Policy rows preserve API-specific
+policy types, ingress/egress rule counts, disruption-budget health and allowed
+disruptions, quota hard/used maps, and LimitRange item types instead of
+collapsing those resources into generic detail text.
Kubernetes events inventory is a unified-resource consumer boundary: the
`/kubernetes/events` route must render Event rows through an event-native table
@@ -347,21 +354,24 @@ proof can distinguish a populated disk-usage tab from an empty fixture.
or phase, class, size/request, access/reclaim policy, provisioner, and
PV/PVC binding targets instead of routing those API objects through the
generic Kubernetes inventory table.
- Kubernetes networking inventory follows the same native-table rule:
- `/kubernetes/networking` must render Service, Ingress, and EndpointSlice
- rows through a networking-specific table that preserves cluster/namespace
- scope, Service type, ClusterIP/external IPs, service ports, selectors,
- Ingress class, hosts and addresses, EndpointSlice address type, ready
- endpoint counts, endpoint ports, and service targets instead of routing
- those API objects through the generic Kubernetes inventory table.
- Kubernetes config inventory is likewise API-native and trust-sensitive:
- `/kubernetes/config` must render Namespace, ConfigMap, Secret, and
- ServiceAccount rows through a config-specific table that preserves
- cluster/namespace scope, Namespace lifecycle phase, ConfigMap/Secret
- immutable and type metadata, ServiceAccount token/image-pull/secret
- references, and metadata-only collection wording. That table must not render
- ConfigMap or Secret payload values, and metadata-only rows must not expose
- key names as if payload fields had been read.
+ Kubernetes services inventory follows the same native-table rule:
+ `/kubernetes/services` must render Service, Ingress, and EndpointSlice rows
+ through service and networking-specific tables that preserve
+ cluster/namespace scope, Service type, ClusterIP/external IPs, service ports,
+ selectors, Ingress class, hosts and addresses, EndpointSlice address type,
+ ready endpoint counts, endpoint ports, and service targets instead of routing
+ those API objects through the generic Kubernetes inventory table. Legacy
+ `/kubernetes/networking` resolves to that Services workflow tab.
+ Kubernetes configuration inventory is likewise API-native and trust-sensitive:
+ `/kubernetes/configuration` must render Namespace, ConfigMap, Secret,
+ ServiceAccount, and policy rows through config and policy-specific tables
+ that preserve cluster/namespace scope, Namespace lifecycle phase,
+ ConfigMap/Secret immutable and type metadata, ServiceAccount
+ token/image-pull/secret references, metadata-only collection wording, and
+ policy-specific health/count fields. Legacy `/kubernetes/config` and
+ `/kubernetes/policy` resolve to that Configuration workflow tab. Config
+ tables must not render ConfigMap or Secret payload values, and metadata-only
+ rows must not expose key names as if payload fields had been read.
2. Add typed accessors and views in `internal/unifiedresources/views.go`
3. Add source ingestion/adaptation in the adapter layer only
Frontend resource platform contracts in