<p>How can I trigger the update (redeploy) of the hearth through the k8s golang client.</p>
<p>At the moment, I use these libraries to get information about pods and namespaces:</p>
<pre><code>v1 &quot;k8s.io/api/core/v1
k8s.io/apimachinery/pkg/apis/meta/v1
k8s.io/client-go/kubernetes
k8s.io/client-go/rest
</code></pre>
<p>Maybe there is another library or it can be done through linux signals</p>

<p>The standard way to trigger a rolling restart is set/update an annotation in the pod spec with the current timestamp. The change itself does nothing but that changes the pod template hash which triggers the Deployment controller to do its thang. You can use <code>client-go</code> to do this, though maybe work in a language you're more comfortable with if that's not Go.</p>
