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

No output if Replica Set not owned by Deployment #14

Closed Bourne-ID closed 1 year ago

Bourne-ID commented 1 year ago

It is possible that a ReplicaSet is not owned by a Deployment but instead something else, for example ArgoRollouts.

In the event DDS scans a pod, refers to the ReplicaSet but is owned by a Rollout, it will log

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

However the end table is not outputted. This means a large cluster may have been scanned, Docker mounts detected but nothing is outputted. This can mislead the end user to determine no mounts exist in the cluster.

rothgar commented 1 year ago

Thanks for the fix in #15