inspec / train-kubernetes

A Kubernetes plugin for use with Chef Inspec
Apache License 2.0
6 stars 1 forks source link

Support Passing Kubernetes Context in Target? #17

Open evandam opened 1 year ago

evandam commented 1 year ago

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