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
123 stars 40 forks source link

Parameter context's secret update detection #309

Closed juldrixx closed 5 months ago

juldrixx commented 9 months 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?

Reconciler to detect NifiParameterContext's secret update.

Why?

The operator needs to be able to update sensitive parameter but as Nifi doesn't return their value, the operator needs to detect the update of secret to trigger an update of the corresponding parameter.

Checklist

mh013370 commented 9 months ago

Do you need to handle conversion from v1alpha resources into v1? I don't know if a default secret status should be set?

juldrixx commented 9 months ago

Do you need to handle conversion from v1alpha resources into v1? I don't know if a default secret status should be set?

Maybe yes, I hadn't thought of that. I'll have a look.