castai / k8s-agent

Apache License 2.0
61 stars 16 forks source link

feat: use unstructured runtime objects instead of Karpenter types #203

Closed pijusn-cast closed 2 weeks ago

pijusn-cast commented 2 weeks ago

This change is basically a recently reverted change except that the issue with PodMetrics object kind was fixed (error was here). Also note that currently, main branch has a new unit test to add secondary verification for this kind of error (and I checked that it does fail with the original change).

I tested this agent build manually to confirm it includes objects with kind=PodMetrics in the snapshot deltas. It seems to work.