<p>I am trying to delete (and recreate) the Argo namespace, but it won't fully delete because I tried launching an eventsource and eventbus there. Now these will not delete.</p>
<p>I have tried to delete them via yaml and individually - no success yet.</p>
<p>The frustrating result is that I cannot re-launch argo</p>
<pre><code>customresourcedefinition.apiextensions.k8s.io/clusterworkflowtemplates.argoproj.io unchanged
customresourcedefinition.apiextensions.k8s.io/cronworkflows.argoproj.io unchanged
customresourcedefinition.apiextensions.k8s.io/workfloweventbindings.argoproj.io unchanged
customresourcedefinition.apiextensions.k8s.io/workflows.argoproj.io unchanged
customresourcedefinition.apiextensions.k8s.io/workflowtasksets.argoproj.io unchanged
customresourcedefinition.apiextensions.k8s.io/workflowtemplates.argoproj.io unchanged
clusterrole.rbac.authorization.k8s.io/argo-aggregate-to-admin unchanged
clusterrole.rbac.authorization.k8s.io/argo-aggregate-to-edit unchanged
clusterrole.rbac.authorization.k8s.io/argo-aggregate-to-view unchanged
clusterrole.rbac.authorization.k8s.io/argo-cluster-role unchanged
clusterrole.rbac.authorization.k8s.io/argo-server-cluster-role unchanged
clusterrolebinding.rbac.authorization.k8s.io/argo-binding unchanged
clusterrolebinding.rbac.authorization.k8s.io/argo-server-binding unchanged
Error from server (Forbidden): error when creating &quot;https://github.com/argoproj/argo-workflows/releases/download/v3.2.0/install.yaml&quot;: serviceaccounts &quot;argo&quot; is forbidden: unable to create new content in namespace argo because it is being terminated
Error from server (Forbidden): error when creating &quot;https://github.com/argoproj/argo-workflows/releases/download/v3.2.0/install.yaml&quot;: serviceaccounts &quot;argo-server&quot; is forbidden: unable to create new content in namespace argo because it is being terminated
Error from server (Forbidden): error when creating &quot;https://github.com/argoproj/argo-workflows/releases/download/v3.2.0/install.yaml&quot;: roles.rbac.authorization.k8s.io &quot;argo-role&quot; is forbidden: unable to create new content in namespace argo because it is being terminated
Error from server (Forbidden): error when creating &quot;https://github.com/argoproj/argo-workflows/releases/download/v3.2.0/install.yaml&quot;: rolebindings.rbac.authorization.k8s.io &quot;argo-binding&quot; is forbidden: unable to create new content in namespace argo because it is being terminated
Error from server (Forbidden): error when creating &quot;https://github.com/argoproj/argo-workflows/releases/download/v3.2.0/install.yaml&quot;: configmaps &quot;workflow-controller-configmap&quot; is forbidden: unable to create new content in namespace argo because it is being terminated
Error from server (Forbidden): error when creating &quot;https://github.com/argoproj/argo-workflows/releases/download/v3.2.0/install.yaml&quot;: services &quot;argo-server&quot; is forbidden: unable to create new content in namespace argo because it is being terminated
Error from server (Forbidden): error when creating &quot;https://github.com/argoproj/argo-workflows/releases/download/v3.2.0/install.yaml&quot;: services &quot;workflow-controller-metrics&quot; is forbidden: unable to create new content in namespace argo because it is being terminated
Error from server (Forbidden): error when creating &quot;https://github.com/argoproj/argo-workflows/releases/download/v3.2.0/install.yaml&quot;: deployments.apps &quot;argo-server&quot; is forbidden: unable to create new content in namespace argo because it is being terminated
Error from server (Forbidden): error when creating &quot;https://github.com/argoproj/argo-workflows/releases/download/v3.2.0/install.yaml&quot;: deployments.apps &quot;workflow-controller&quot; is forbidden: unable to create new content in namespace argo because it is being terminated
</code></pre>
<p>Here is what is going on in the argo namespace itself</p>
<pre><code>{
    &quot;apiVersion&quot;: &quot;v1&quot;,
    &quot;kind&quot;: &quot;Namespace&quot;,
    &quot;metadata&quot;: {
        &quot;creationTimestamp&quot;: &quot;2021-10-21T14:52:51Z&quot;,
        &quot;deletionTimestamp&quot;: &quot;2021-12-10T18:48:17Z&quot;,
        &quot;labels&quot;: {
            &quot;kubernetes.io/metadata.name&quot;: &quot;argo&quot;
        },
        &quot;name&quot;: &quot;argo&quot;,
        &quot;resourceVersion&quot;: &quot;9222845&quot;,
        &quot;uid&quot;: &quot;2ce61352-74a5-40d1-b35e-fe1efa39c3af&quot;
    },
    &quot;spec&quot;: {
        &quot;finalizers&quot;: [
            &quot;kubernetes&quot;
        ]
    },
    &quot;status&quot;: {
        &quot;conditions&quot;: [
            {
                &quot;lastTransitionTime&quot;: &quot;2021-12-10T18:48:23Z&quot;,
                &quot;message&quot;: &quot;All resources successfully discovered&quot;,
                &quot;reason&quot;: &quot;ResourcesDiscovered&quot;,
                &quot;status&quot;: &quot;False&quot;,
                &quot;type&quot;: &quot;NamespaceDeletionDiscoveryFailure&quot;
            },
            {
                &quot;lastTransitionTime&quot;: &quot;2021-12-10T18:48:23Z&quot;,
                &quot;message&quot;: &quot;All legacy kube types successfully parsed&quot;,
                &quot;reason&quot;: &quot;ParsedGroupVersions&quot;,
                &quot;status&quot;: &quot;False&quot;,
                &quot;type&quot;: &quot;NamespaceDeletionGroupVersionParsingFailure&quot;
            },
            {
                &quot;lastTransitionTime&quot;: &quot;2021-12-10T18:48:23Z&quot;,
                &quot;message&quot;: &quot;All content successfully deleted, may be waiting on finalization&quot;,
                &quot;reason&quot;: &quot;ContentDeleted&quot;,
                &quot;status&quot;: &quot;False&quot;,
                &quot;type&quot;: &quot;NamespaceDeletionContentFailure&quot;
            },
            {
                &quot;lastTransitionTime&quot;: &quot;2021-12-10T18:48:23Z&quot;,
                &quot;message&quot;: &quot;Some resources are remaining: eventbus.argoproj.io has 1 resource instances, eventsources.argoproj.io has 1 resource instances&quot;,
                &quot;reason&quot;: &quot;SomeResourcesRemain&quot;,
                &quot;status&quot;: &quot;True&quot;,
                &quot;type&quot;: &quot;NamespaceContentRemaining&quot;
            },
            {
                &quot;lastTransitionTime&quot;: &quot;2021-12-10T18:48:23Z&quot;,
                &quot;message&quot;: &quot;Some content in the namespace has finalizers remaining: eventbus-controller in 1 resource instances, eventsource-controller in 1 resource instances&quot;,
                &quot;reason&quot;: &quot;SomeFinalizersRemain&quot;,
                &quot;status&quot;: &quot;True&quot;,
                &quot;type&quot;: &quot;NamespaceFinalizersRemaining&quot;
            }
        ],
        &quot;phase&quot;: &quot;Terminating&quot;
    }
}
</code></pre>
<p>UPDATE:
Even though one test of Kubernetes shows that the eventsource persists, another test shows that it does not</p>
<p>This is the response to
kubectl get eventsources argo</p>
<pre><code>Error from server (NotFound): eventsources.argoproj.io &quot;argo&quot; not found
</code></pre>

user3877654
<p>For anyone who stumbles onto this question, it is a permissions issue. Make certain your service account has permissions to work in both namespaces (argo and argo-events).</p>
