<p>I'm migrating <code>helm2</code> releases to <code>helm3</code>. One of my resources is <code>redis</code> and it's protected from migration. I have to remove it using</p>
<pre class="lang-sh prettyprint-override"><code>kubectl delete statefulsets.apps --cascade=false -nkube-system testme-redis-master
</code></pre>
<p>I wanna use the <code>Kubernetes</code> python lib, only that I cannot find the matching function.
I'm using <code>CoreV1API</code>.</p>

OLS
<blockquote>
<p>I wanna use the Kubernetes python lib, only that I cannot find the matching function.</p>
</blockquote>
<p>You must look in the right API Group.</p>
<blockquote>
<p>I'm using CoreV1API.</p>
</blockquote>
<p><code>StatefulSets</code> is in <code>AppsV1</code> and not in <code>CoreV1</code>, so check that API Group instead.</p>
<p>See the Python Kubernetes client <a href="https://github.com/kubernetes-client/python/blob/master/examples/deployment_create.py" rel="nofollow noreferrer">example for Deployment in AppsV1 API Group</a>, it is very similar to <code>StatefulSet</code></p>
