<p>I am trying to create a controller that can create and delete Pods via API calls using <code>operator-sdk</code> with <code>Go</code>. The controller should be able to accept a <code>POST</code> call with information such as <code>{imageTag:&quot;&quot;, namespace:&quot;&quot;}</code> to setup a Pod that can return a <code>podId</code>, and also be able to delete a Pod via API call using <code>podId</code>.</p>
<p>I have reviewed some tutorials, but I am unclear on how the Go operator can intercept API calls. Is this possible? Any help on this matter would be greatly appreciated. Thanks.</p>

Mahesh
<p>Found that Kubernetes Client and Kubernetes Operator are two different concepts.
Ended up creating a Kubernetes Go Client using which I was able achieve my goal.</p>
<p>You can refer the library here.
<a href="https://github.com/kubernetes/client-go" rel="nofollow noreferrer">https://github.com/kubernetes/client-go</a></p>
