aws-containers / kubectl-detector-for-docker-socket

A Kubectl plugin that can detect if any of your workloads or manifest files are mounting the docker.sock volume
Apache License 2.0
175 stars 21 forks source link

Add Output on Error #15

Closed Bourne-ID-Work closed 1 year ago

Bourne-ID-Work commented 1 year ago

Relates to #14

previous output:

❯ kubectl dds -n rbourne
error: deployments.apps "rollout-socket" not found%
❯

New output:

error: deployments.apps "rollout-socket" not found
Warning: The following table may be incomplete due to errors detected during the run
NAMESPACE       TYPE    NAME    STATUS  

Process finished with the exit code 1

please note this doesn't scan the impacted resources - in the example above 'rollout-socket' contained a hostMount but was not added to the table. Additional work will be required to break out of a RS -> unknown owner however some output is better then no output.