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

Add parameter context secret update detection #367

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

juldrixx
Copy link
Contributor

@juldrixx juldrixx commented Jan 17, 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?

The operator will look into the ManagedFields of the Secret to retrieve the Time of the operations and extract the latest to compare it to the one stored in its Status to detect the updates.

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.

Additional context

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 force-pushed the feat/parameter_context_secret_update_detection branch from ea158b0 to 8477495 Compare January 17, 2024 09:59
@juldrixx
Copy link
Contributor Author

juldrixx commented Jan 17, 2024

I prefer this solution to the one implemented in PR 309, it does not require a new Controller and can be easly implemented for the other resources that needs it.

@mh013370
Copy link
Member

instead of recommending 10 changes, i'll just let you change lastest to latest everywhere 🙂

@juldrixx juldrixx force-pushed the feat/parameter_context_secret_update_detection branch from af2ee2c to f8fdb40 Compare January 17, 2024 13:16
@mh013370 mh013370 merged commit 79e005e into master Jan 18, 2024
5 checks passed
@juldrixx juldrixx deleted the feat/parameter_context_secret_update_detection branch May 16, 2024 09:09
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.

None yet

2 participants