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

Change secret update detection to be based on resourceVersion #426

Closed juldrixx closed 1 month ago

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

What's in this PR?

Change in the secret update detection to be based on resourceVersion and not the managedFields.

Why?

In some cases, the managedFields won't be updated if the operation that leads to the secret update is the same as the previous one. It seems to a limitation in some Kubernetes version like 1.21. So to be compatible with as much as possible Kubernetes version, the logic will be changed to watch the resourceVersion of the different secrets.

Checklist