- 
                Notifications
    
You must be signed in to change notification settings  - Fork 235
 
feat: option to triggering reconciler on all events #2894
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
Changes from 49 commits
3fa2136
              10c931b
              f73fbc7
              ae9ab80
              27f009b
              dda1311
              7471d3b
              9433cf8
              02711c3
              cc10c4d
              9b13134
              6d1b374
              0fb71d4
              8ed16a7
              6cdfd1d
              9e1b28f
              bdffb64
              ad8c37c
              962ea4f
              ff13791
              ac01a98
              b62dfcb
              3c9ed9d
              b8d7dae
              11e08c1
              14255c6
              e210e64
              fa28ca3
              98e8a8c
              8b00785
              1a633fc
              7c4201c
              ddbb1cb
              b50c380
              8ae1e59
              0b93bdc
              5161479
              8c10ddc
              c2b91bc
              adb3571
              3d1895d
              94c4c74
              c5ff462
              b890153
              3930a37
              cb1baf5
              3800497
              18e6a40
              c4b5371
              03410ae
              c787ce3
              6a084c1
              7b050f0
              e8e6a3a
              4b80885
              3a840a7
              64c9212
              53d003e
              cdd6e42
              f5fbfbc
              525413e
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -72,4 +72,21 @@ default <R> Stream<R> getSecondaryResourcesAsStream(Class<R> expectedType) { | |
| * @return {@code true} is another reconciliation is already scheduled, {@code false} otherwise | ||
| */ | ||
| boolean isNextReconciliationImminent(); | ||
| 
     | 
||
| /** | ||
| * To check if the primary resource is already deleted. This value can be true only if you turn on | ||
                
      
                  metacosm marked this conversation as resolved.
               
          
            Show resolved
            Hide resolved
         | 
||
| * {@link | ||
| * io.javaoperatorsdk.operator.api.reconciler.ControllerConfiguration#triggerReconcilerOnAllEvent()} | ||
| * | ||
| * @return true Delete event received for primary resource | ||
| */ | ||
| boolean isPrimaryResourceDeleted(); | ||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick: add @SInCE here and below? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added, thank you!  | 
||
| 
     | 
||
| /** | ||
| * Check this only if {@link #isPrimaryResourceDeleted()} is true. | ||
                
      
                  metacosm marked this conversation as resolved.
               
          
            Show resolved
            Hide resolved
         | 
||
| * | ||
| * @return true if the primary resource is deleted, but the last known state is only available | ||
| * from the caches of the underlying Informer, not from Delete event. | ||
| */ | ||
| boolean isPrimaryResourceFinalStateUnknown(); | ||
| } | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -77,4 +77,11 @@ MaxReconciliationInterval maxReconciliationInterval() default | |
| * @return the name used as field manager for SSA operations | ||
| */ | ||
| String fieldManager() default CONTROLLER_NAME_AS_FIELD_MANAGER; | ||
| 
     | 
||
| /** | ||
| * By settings to true, reconcile method will be triggered on every event, thus even for Delete | ||
| * event. You cannot use {@link Cleaner} or managed dependent resources in that case. See | ||
| * documentation for further details. | ||
| */ | ||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpick: add @SInCE? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added, thank you!  | 
||
| boolean triggerReconcilerOnAllEvent() default false; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.