<p>I have a number of <code>.yml</code> files with deployments and their services and need to set <code>.spec.progressDeadlineSeconds</code> to all of them preferrably from one common place.</p>

noname7619
<p>Some <code>yq</code> with simple <code>bash</code> script should do the work</p>
<pre><code>#!/usr/bin/env bash

set -euo pipefail

ALL_FILES=$(ls | grep yml)

for file in $ALL_FILES; do
  echo &quot;File $file&quot;
  yq -i '.spec += {&quot;progressDeadlineSeconds&quot;: &quot;10&quot;}' $file
done
</code></pre>
