-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hello 👋,
First of all, thanks for your amazing work on Steampipe and the Kubernetes plugin.
📘 Context
I’m working with some Custom Resource Definitions (CRDs) in Kubernetes which define non-standard top-level fields such as .report, outside of the usual spec and status fields.
I noticed that the current CRDResourceInfo struct used in the plugin includes the following fields:
type CRDResourceInfo struct {
Name interface{}
UID interface{}
CreationTimestamp interface{}
Kind interface{}
APIVersion interface{}
Namespace interface{}
Annotations interface{}
Spec interface{}
Labels interface{}
Status interface{}
Path string
StartLine int
EndLine int
SourceType string
ContextName string
}
This structure doesn’t include a way to retrieve additional custom fields like .report when querying via SQL.
💡 Feature Request
Would it be possible to add support for accessing additional top-level fields — for example by adding a new field in the struct such as:
Report interface{} … or even better, make the structure dynamic enough to include any top-level keys beyond the standard ones?
This would allow us to query CRDs like this via SQL:
select name, report from kubernetes_crd where kind = 'MyCustomResource'
🙋♂️ Question
Is such a change feasible within the current architecture of the plugin?
Is there a workaround today that would allow me to access .report fields or arbitrary custom fields in CRDs via Steampipe?
If not, I would be happy to contribute or test such a feature if needed.
Thanks in advance!