konpyutaika / nifikop

The NiFiKop NiFi Kubernetes operator makes it easy to run Apache NiFi on Kubernetes. Apache NiFI is a free, open-source solution that support powerful and scalable directed graphs of data routing, transformation, and system mediation logic.
https://konpyutaika.github.io/nifikop/
Apache License 2.0
122 stars 39 forks source link

Patch duplicate Prometheus Reporting Task #420

Closed juldrixx closed 2 months ago

juldrixx commented 2 months ago
Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets -
License Apache 2.0

What's in this PR?

Change Status Update to Status Patch when the Prometheus Reporting Task is synced.

Why?

When the Reporting Task is first created, the resource may have been updated. The update therefore fails, resulting in an error and the re-creation of the reporting task and a duplicate.

Checklist

mh013370 commented 2 months ago

This same thing was happening with dataflows (process groups) previously and this change fixed that issue i believe. LGTM