Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change secret update detection to be based on resourceVersion #426

Merged

Conversation

juldrixx
Copy link
Contributor

@juldrixx juldrixx commented May 16, 2024

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

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)
  • Append changelog with changes

@juldrixx juldrixx marked this pull request as ready for review May 16, 2024 10:25
@juldrixx juldrixx requested review from mh013370 and erdrix and removed request for mh013370 May 16, 2024 10:25
@juldrixx juldrixx requested review from mh013370 and removed request for mh013370 May 29, 2024 08:21
@juldrixx juldrixx merged commit 34476d1 into master May 30, 2024
5 checks passed
@juldrixx juldrixx deleted the change_nifi_parameter_context_secret_update_detection branch May 30, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant