It would be helpful if there was a way to run inspec exec my_profile -t k8s://<KUBE_CONTEXT>, but it doesn't currently seem possible if I understand.
As far as I can tell, k8s:// is always used and picks up the currently active context?
Context
This would make it easier to run InSpec against multiple Kubernetes clusters. Maybe there's another way but I wasn't able to find anything in docs 🙌
Detailed Description
It would be helpful if there was a way to run
inspec exec my_profile -t k8s://<KUBE_CONTEXT>
, but it doesn't currently seem possible if I understand.As far as I can tell,
k8s://
is always used and picks up the currently active context?Context
This would make it easier to run InSpec against multiple Kubernetes clusters. Maybe there's another way but I wasn't able to find anything in docs 🙌
Possible Implementation