<p>I noticed a really strange bug with <code>kubectl diff</code> command.</p>
<p>I have a directory <code>k8s-test/</code> and when I run <code>kubectl diff -f k8s-test/</code> output is empty, but when I do <code>kubectl diff -f k8s-test/deployment.yaml</code> I can see the differences for that specific file in the output.</p>
<p>How can I debug this to find out the root cause?</p>

Ivan Aracki
<p>Try: <code>kubectl diff --recursive -f k8s-test</code></p>
