<p>I'm experimenting with mutating admission controllers, and I seem to be able to create one, but not delete it, why is this?</p>
<p>Creating webhook config:</p>
<pre><code>apiVersion: admissionregistration.k8s.io/v1beta1
kind: MutatingWebhookConfiguration
metadata:
  name: webhook
webhooks:
  - name: webhook.test.com
    clientConfig:
      service:
        name: my-service
        namespace: my-role
        path: &quot;/foo&quot;
      caBundle: &quot;XXX&quot;
    rules:
      - operations: [&quot;CREATE&quot;, &quot;UPDATE&quot;]
        apiGroups: [&quot;*&quot;]
        apiVersions: [&quot;*&quot;]
        resources: [&quot;pods&quot;]
        scope:       &quot;Namespaced&quot;
    failurePolicy: Fail

</code></pre>
<p>Attempting to delete it: <code>kubectl delete MutatingingWebhookConfiguration webhook</code>
Response: <code>error: the server doesn't have a resource type &quot;MutatingingWebhookConfiguration&quot;</code></p>
<p>I believe that error often has to do with the different versions of different resources, but I don't see why I would be able to create but not delete.</p>

EMC
<p>This was a silly mistake, I forgot to lowercase the resource name when using Kubectl, so <code>kubectl delete mutatingwebhookconfiguration webhook</code> works just fine.</p>
