Commit aed2c1f
Improve EDPM-aware AC revocation: dynamic discovery, Watch, simplified API
Three improvements to the EDPM application credential revocation mechanism:
1. Replace hardcoded edpmServices map with dynamic discovery
- Remove the static map and isEDPMService() function
- Add edpmServiceType parameter to EnsureApplicationCredentialForService
and CleanupApplicationCredentialForService — callers pass the EDPM
service type ("nova", "telemetry") or "" for ctlplane-only services
- getEDPMConfigSecretNames now lists OpenStackDataPlaneService CRs and
filters by EDPMServiceType, discovering custom services automatically
- New EDPMServiceTypeAnnotation on AC CR enables ReconcilePendingEDPMSyncs
to discover service types without the hardcoded map
2. Revert CleanupApplicationCredentialForService to error-only return
- Signature reverted from (ctrl.Result, error) to error — all 12
non-EDPM service files return to the simpler calling pattern
- When EDPM sync is pending, cleanup defers deletion (returns nil)
instead of returning RequeueAfter
- EDPM sync progression centralized in ReconcilePendingEDPMSyncs
(replaces HasPendingEDPMSync) which runs at end of reconcileNormal
- reconcileEDPMSync moved out of EnsureApplicationCredentialForService
into the centralized function
3. Replace 5-minute polling with NodeSet Watch
- Add Watch on OpenStackDataPlaneNodeSet with
ResourceVersionChangedPredicate in SetupWithManager
- Controller reacts promptly when SecretHashes change after deployment
- Fallback interval increased to 30 minutes (safety net only)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>1 parent d34351f commit aed2c1f
17 files changed
Lines changed: 357 additions & 262 deletions
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
742 | 743 | | |
743 | 744 | | |
744 | 745 | | |
745 | | - | |
| 746 | + | |
746 | 747 | | |
747 | 748 | | |
748 | 749 | | |
| |||
902 | 903 | | |
903 | 904 | | |
904 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
905 | 914 | | |
906 | 915 | | |
907 | 916 | | |
| |||
0 commit comments