You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(k8s-store): unify CRD composite-key separator on . (PhysicalDevice)
Other composite-key CRDs (StoragePool, Resource, Snapshot) all
name themselves `<key1>.<key2>` and route through `k8s.Name()`
for slug discipline. PhysicalDevice was the odd one out — used
`-` and a hand-rolled sanitiser. Operators rely on the dot
separator for cross-kind grep (`kubectl get … | grep '<node>\.'`
works for storagepools + resources + snapshots; PhysicalDevice
broke the pattern).
Moves PhysicalDeviceCRDName from pkg/satellite/discovery.go to
pkg/store/k8s/physicaldevices.go where the analogous functions
live, and replaces the hand-rolled slug with the standard
`Name(node + "." + stableID)` shape. Pinned by a new test in
crdname_test.go covering the pass-through and slugified paths.
The PhysicalDevice type doc-comment now points operators at the
cross-CRD convention so future readers know not to deviate.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
0 commit comments