Commit 90ddf82
authored
fix(operator): tolerate missing KEDA when cleaning up ScaledObject (#985)
The VLLMRuntime controller reconciled a stale ScaledObject delete in the
autoscaling-disabled branch, guarding only errors.IsNotFound. On a cluster
without KEDA the keda.sh/v1alpha1 API group is not registered, so the
delete returns a NoKindMatchError rather than NotFound, and every
reconcile failed -- making the operator unusable on clusters that never
requested autoscaling.
Also tolerate meta.IsNoMatchError on the cleanup path: there is nothing to
delete when the CRD is absent, so the reconcile should succeed.
Fixes #981
Signed-off-by: Tai An <antai12232931@outlook.com>1 parent 1e973a3 commit 90ddf82
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
363 | 364 | | |
364 | 365 | | |
365 | 366 | | |
366 | | - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
367 | 374 | | |
368 | 375 | | |
369 | 376 | | |
| |||
0 commit comments