<p>Experiencing issue while modifying or deleting an existing argo events sensor.</p>
<p><strong>Tried to modify a sensor</strong></p>
<ul>
<li>I tried to apply changes to an existing sensor.</li>
<li>But new changes are not taking effect. When it gets triggered, it is still using old triggers.</li>
</ul>
<p><strong>Tried to delete a sensor</strong></p>
<ul>
<li>Unable to delete. <code>kubectl delete</code> hangs forever. Only way is to delete whole namespace.</li>
</ul>
<p>Using :</p>
<ul>
<li>Argo-events version - v1.7.5</li>
<li>Kubernetes - v1.24.4+k3s1 ( testing in local - docker-desktop with K3d )</li>
</ul>
<p>Since deleting everything &amp; redoing is not an option when working in production environment, like to know if it's a known issue with argo-events or if I am doing something wrong.</p>

Sairam Krish
<p>As of release v1.7.5, there is a bug in default sensor &amp; eventSource kubernetes resource yaml values.</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
....
  finalizers:
  - sensor-controller
....
</code></pre>
<ul>
<li>It has finalizers as <code>sensor-controller</code>.</li>
<li>In v1.7.0+, argo events team has merged sensor controller &amp; source controller into <code>argo-events-controller-manager</code>.</li>
<li>I believe, event sensor and event source are pointing to wrong controller</li>
<li>It should ideally be pointing to <code>argo-events-controller</code></li>
</ul>
<p>To resolve this issue till this bug is fixed in argo-events kubernetes charts:</p>
<p>Update your sensor &amp; event source definitions to have finalizers as empty array.</p>
<pre class="lang-yaml prettyprint-override"><code># example sensor with empty finalizers
apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
  name: minio
  finalizers: []  # &lt;-- this one
spec:
  dependencies:
    - name: test-dep
      eventSourceName: minio
      eventName: example
  triggers:
    - template:
        name: http-trigger
        http:
          url: http://http-server.argo-events.svc:8090/hello
          payload:
            - src:
                dependencyName: test-dep
                dataKey: notification.0.s3.bucket.name
              dest: bucket
            - src:
                dependencyName: test-dep
                contextKey: type
              dest: type
          method: POST
      retryStrategy:
        steps: 3
        duration: 3s

</code></pre>
