<p>Could anyone get me a example about how to use</p>

<pre><code>kubectl rollout pause xxx

kubectl rollout update xxx
</code></pre>

<p>in client-go? I can't find any example about it. Thank you~</p>

<p>maybe .</p>
<pre><code>data := fmt.Sprintf(`{&quot;spec&quot;:{&quot;template&quot;:{&quot;metadata&quot;:{&quot;annotations&quot;:{&quot;kubectl.kubernetes.io/restartedAt&quot;:&quot;%s&quot;}}}}}`, time.Now().String())
    resultDeployment, err = p.Client.AppsV1().Deployments(p.Namespace).Patch(context.Background(), deployment.Name, types.StrategicMergePatchType, []byte(data), metav1.PatchOptions{FieldManager: &quot;kubectl-rollout&quot;})
</code></pre>
<p>you can use <code>kubectl</code> with --v=6 to see the logs, for example <code>kubectl get pods --v=6</code>, and build a request use go-client.</p>
