controlplaneio/kubesec

allow kubesec to scan a folder

georgettica opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
I wanted to run kubesec on a folder, but kubesec can only run on one file at a time so I

find ./folder -type f -name \*yaml | xargs -n1 kubesec scan 

running

kubesec scan ./folder/*yaml

scans only the first file

Describe the solution you'd like
that I can provide to kubesec scan a folder (or a list of files) on which to run the scan

Describe alternatives you've considered

  • that a folder could be passed
  • that multiple files could be passed

#106 In progress but has race condition issues. Globbing will work for one level but for depth you'd need to use something to find all the files and add them to the end of kubesec scan e.g. kubesec scan A.yaml B.yaml C/D E/F/G/H.yaml