Commit e79bd33
ci: Add bundle-sync verification to operator PR workflow (#6751)
* ci: Add bundle-sync verification to operator PR workflow
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
* fix: Regenerate operator bundle to sync RBAC permissions
Run `make bundle` to pick up refined clusterrole/clusterrolebinding
RBAC rules and drop stale subjectaccessreviews permission.
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
* fix: Retry on AlreadyExists for cluster-scoped RBAC resources
retry.RetryOnConflict only handles Conflict (resource version mismatch).
When concurrent reconcile loops both GET a NotFound resource and race
to Create it, the loser gets AlreadyExists which was not retried.
Switch to retry.OnError with a predicate covering both IsConflict and
IsAlreadyExists so the retry re-GETs the now-existing resource and
proceeds with an update.
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix: Regenerate operator bundle to sync RBAC and CRD changes
Run make bundle to pick up the clusterrole get/list RBAC verbs and
updated CRD field descriptions.
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix: Handle AlreadyExists and Conflict as non-errors for cluster RBAC
The controller-runtime cached client can return stale NotFound for
cluster-scoped resources when the informer cache has not yet synced.
This causes CreateOrUpdate to attempt a Create that fails with
AlreadyExists. Retrying does not help because the cache remains
stale during the short retry window.
Treat AlreadyExists and Conflict as non-errors since the resource
exists in the desired state. The next reconcile cycle will update
its contents once the cache has synced. This follows the standard
Kubernetes operator eventual-consistency pattern.
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent aade119 commit e79bd33
4 files changed
Lines changed: 72 additions & 31 deletions
File tree
- .github/workflows
- infra/feast-operator
- bundle/manifests
- internal/controller/authz
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
345 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
346 | 373 | | |
347 | 374 | | |
348 | | - | |
349 | 375 | | |
350 | 376 | | |
351 | 377 | | |
| |||
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
| |||
6458 | 6456 | | |
6459 | 6457 | | |
6460 | 6458 | | |
6461 | | - | |
6462 | | - | |
| 6459 | + | |
6463 | 6460 | | |
6464 | 6461 | | |
6465 | 6462 | | |
| |||
13065 | 13062 | | |
13066 | 13063 | | |
13067 | 13064 | | |
13068 | | - | |
13069 | | - | |
13070 | 13065 | | |
13071 | 13066 | | |
13072 | 13067 | | |
| |||
17581 | 17576 | | |
17582 | 17577 | | |
17583 | 17578 | | |
17584 | | - | |
17585 | | - | |
| 17579 | + | |
17586 | 17580 | | |
17587 | 17581 | | |
17588 | 17582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
158 | 155 | | |
159 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| |||
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
240 | 241 | | |
241 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
242 | 250 | | |
243 | 251 | | |
244 | 252 | | |
| |||
0 commit comments