mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
74417de150
The k8s workload/config adapters in unifiedresources each hand-rolled the same Resource literal (Technology, LastSeen, UpdatedAt, Kubernetes facet, label tags) plus namespacedKubernetesIdentity return; dupl flagged the StatefulSet/Job and ReplicaSet/DaemonSet clones. Fold the scaffold into namespacedKubernetesResource and delegate all 19 namespaced adapters (Service included) to it; cluster-scoped kinds (PV, StorageClass, Namespace) keep bespoke identity construction. Contract: unified-resources Extension Points now name the shared scaffold as the way new namespaced kinds assemble resources. Proof: new TestNamespacedKubernetesResourceScaffold pins the scaffold fields and namespaced hostname identity. Full internal/unifiedresources test suite passes.