Commit f23f173
committed
fix: auto-sync skipped when newer commit arrives during sync with manifest-generate-paths (#27875)
When an app uses the manifest-generate-paths annotation, the revisionsMayHaveChanges optimization was also used to decide whether to run auto-sync. If a newer commit arrived while the app was still syncing, UpdateRevisionForPaths could report no changes, so auto-sync was skipped and the app stayed OutOfSync until a manual sync or controller restart.
Only use that optimization to skip manifest regeneration, not to gate the sync decision. When the app is OutOfSync, always compare the desired revision against the last synced one. Drift at the same revision with selfHeal disabled is still left untouched.
Signed-off-by: pepe9012 <sotkovsky@gmail.com>1 parent 0dd8874 commit f23f173
2 files changed
Lines changed: 52 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1895 | 1895 | | |
1896 | 1896 | | |
1897 | 1897 | | |
1898 | | - | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
1899 | 1905 | | |
1900 | 1906 | | |
1901 | 1907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
738 | 783 | | |
739 | 784 | | |
740 | 785 | | |
| |||
0 commit comments