Commit 20115c7
Say a resource was kept in a condition, not a warning every reconcile
When a value a resource is built from goes missing and the scope keeps
the resource's current spec, it said so in a warning result. That's
right the first time, but it repeats on every reconcile for as long as
the value is missing - through a whole cluster teardown, say - and each
one is a Warning event on the XR.
composing now reports on an XR condition, DependencyValuesAvailable:
False with reason KeptCurrentSpec while any resource was kept, naming
each and the value it's waiting for, and True otherwise. Every scope
reports, so the condition is returned on every reconcile: Crossplane
keeps a condition a function set earlier until it's set again, so one
returned only while False would never clear. Scopes in one function
share it, and one with nothing kept doesn't turn another's False back
to True.
The message is built from resource names and field paths only, so it
holds still while the situation does, and Crossplane leaves an
unchanged condition alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 38b5b91 commit 20115c7
2 files changed
Lines changed: 124 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
69 | 76 | | |
70 | 77 | | |
71 | 78 | | |
| |||
373 | 380 | | |
374 | 381 | | |
375 | 382 | | |
| 383 | + | |
376 | 384 | | |
377 | 385 | | |
378 | 386 | | |
| |||
488 | 496 | | |
489 | 497 | | |
490 | 498 | | |
| 499 | + | |
| 500 | + | |
491 | 501 | | |
492 | 502 | | |
493 | 503 | | |
494 | 504 | | |
495 | 505 | | |
496 | 506 | | |
497 | 507 | | |
498 | | - | |
| 508 | + | |
| 509 | + | |
499 | 510 | | |
500 | 511 | | |
501 | 512 | | |
| |||
517 | 528 | | |
518 | 529 | | |
519 | 530 | | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
524 | 551 | | |
525 | 552 | | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
526 | 564 | | |
527 | 565 | | |
528 | 566 | | |
| |||
573 | 611 | | |
574 | 612 | | |
575 | 613 | | |
576 | | - | |
577 | | - | |
| 614 | + | |
| 615 | + | |
578 | 616 | | |
579 | 617 | | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
585 | 623 | | |
586 | 624 | | |
587 | 625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
113 | 125 | | |
114 | 126 | | |
115 | 127 | | |
| |||
331 | 343 | | |
332 | 344 | | |
333 | 345 | | |
334 | | - | |
335 | | - | |
336 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
337 | 407 | | |
338 | 408 | | |
339 | 409 | | |
| |||
379 | 449 | | |
380 | 450 | | |
381 | 451 | | |
382 | | - | |
| 452 | + | |
383 | 453 | | |
384 | 454 | | |
385 | 455 | | |
| |||
0 commit comments