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

Enhancement: Add support in JWT token refresh with shouldLoopInfinitely and nextReconcile fields #26

Conversation

arielsepton
Copy link
Member

@arielsepton arielsepton commented Jun 20, 2024

Description

This PR introduces enhancements to the DisposableRequest resource, enabling token refresh via the new shouldLoopInfinitely and nextReconcile fields. These additions allow for continuous reconciliation based on a specified interval, ensuring the timely renewal of JWT tokens.

Changes:

  • Implemented a WithCustomPollIntervalHook function to customize reconciliation polling intervals based on the nextReconcile field in DisposableRequest.
  • Added shouldLoopInfinitely, and nextReconcile fields to the DisposableRequest spec to control reconciliation behavior and retry logic.
  • Updated the DisposableRequest documentation with examples and detailed explanations for the new fields.
    I have:
  • Read and followed Crossplane's [contribution process].
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

  • Ran existing test cases.
  • Added assertions for the new status field.
  • Verified functionality across different scenarios.

Signed-off-by: arielsepton <[email protected]>
@arielsepton arielsepton force-pushed the feature/duration-based-reconcile branch 14 times, most recently from aba6285 to f43b2ad Compare June 20, 2024 16:24
@arielsepton arielsepton force-pushed the feature/duration-based-reconcile branch from f43b2ad to 18aacf7 Compare June 20, 2024 16:28
Signed-off-by: Ariel Septon <[email protected]>
@arielsepton arielsepton force-pushed the feature/duration-based-reconcile branch from 461a2b1 to 5155087 Compare June 20, 2024 18:11
Signed-off-by: Ariel Septon <[email protected]>
@arielsepton arielsepton force-pushed the feature/duration-based-reconcile branch from 317a19d to c43e786 Compare June 20, 2024 18:18
@arielsepton arielsepton force-pushed the feature/duration-based-reconcile branch from 2eaf486 to 366ea4e Compare June 20, 2024 23:32
@arielsepton arielsepton merged commit 69fb086 into crossplane-contrib:main Jun 21, 2024
7 checks passed
arielsepton added a commit that referenced this pull request Jun 21, 2024
…ly and nextReconcile fields (#26)

feat: add support for custom reconcile intervals with shouldLoopInfinitely and nextReconcile fields

- Added `shouldLoopInfinitely` and `nextReconcile` fields to `DisposableRequest` resource.
- Updated the `WithCustomPollIntervalHook` function to handle the new fields.
- Enhanced example `DisposableRequest` definition to demonstrate usage of new fields.
- Updated tests to cover new functionality.
- This change allows for efficient handling of reconciliation intervals and looping behavior.

Signed-off-by: arielsepton <[email protected]>
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