Repository navigation
Commit 4492d5e
fix(go.d/docker): remove only the charts of the removed container
removeContainerCharts matched chart IDs by the "container_<name>" prefix,
so removing container "foo" also marked the charts of "foo-bar" (and of
"foo_state", via "container_foo_state_state") as obsolete. Those
containers stay in c.containers, so their charts were never re-created
until the plugin restarted.
Match the exact chart IDs built from the per-container templates instead.
Fixes #24230
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 30375cf commit 4492d5e
2 files changed
Lines changed: 46 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
784 | 818 | | |
785 | 819 | | |
786 | 820 | | |
| |||
855 | 889 | | |
856 | 890 | | |
857 | 891 | | |
| 892 | + | |
858 | 893 | | |
859 | 894 | | |
860 | 895 | | |
| |||
922 | 957 | | |
923 | 958 | | |
924 | 959 | | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
925 | 967 | | |
926 | 968 | | |
927 | 969 | | |
| |||
0 commit comments