Repository navigation
Commit a822ad1
committed
fix(gateway-api-crds): keep the CRDs when the release is uninstalled
The tenant addon HelmRelease remediates a failed install by uninstalling
the release, and an uninstall deletes whatever the chart rendered.
Deleting a CRD makes the API server garbage-collect every custom
resource of that kind, so a failed reinstall takes every Gateway,
HTTPRoute and ReferenceGrant in the tenant cluster with it.
Stamp helm.sh/resource-policy: keep on each CustomResourceDefinition and
teach `make update` to reapply it, since that target rebuilds templates/
from upstream and would otherwise drop the annotation silently. The
ValidatingAdmissionPolicy pair the experimental kustomization also emits
holds no user data and stays unannotated.
Removing the release on purpose now leaves the definitions behind to be
deleted by hand.
Assisted-By: Claude <[email protected]>
Signed-off-by: Aleksei Sviridkin <[email protected]>1 parent c6eb584 commit a822ad1
3 files changed
Lines changed: 167 additions & 0 deletions
File tree
- packages/system/gateway-api-crds
- templates
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
6 | 17 | | |
7 | 18 | | |
8 | 19 | | |
9 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
1421 | 1422 | | |
1422 | 1423 | | |
1423 | 1424 | | |
| 1425 | + | |
1424 | 1426 | | |
1425 | 1427 | | |
1426 | 1428 | | |
| |||
1937 | 1939 | | |
1938 | 1940 | | |
1939 | 1941 | | |
| 1942 | + | |
1940 | 1943 | | |
1941 | 1944 | | |
1942 | 1945 | | |
| |||
5267 | 5270 | | |
5268 | 5271 | | |
5269 | 5272 | | |
| 5273 | + | |
5270 | 5274 | | |
5271 | 5275 | | |
5272 | 5276 | | |
| |||
7547 | 7551 | | |
7548 | 7552 | | |
7549 | 7553 | | |
| 7554 | + | |
7550 | 7555 | | |
7551 | 7556 | | |
7552 | 7557 | | |
| |||
16103 | 16108 | | |
16104 | 16109 | | |
16105 | 16110 | | |
| 16111 | + | |
16106 | 16112 | | |
16107 | 16113 | | |
16108 | 16114 | | |
| |||
16884 | 16890 | | |
16885 | 16891 | | |
16886 | 16892 | | |
| 16893 | + | |
16887 | 16894 | | |
16888 | 16895 | | |
16889 | 16896 | | |
| |||
17238 | 17245 | | |
17239 | 17246 | | |
17240 | 17247 | | |
| 17248 | + | |
17241 | 17249 | | |
17242 | 17250 | | |
17243 | 17251 | | |
| |||
17995 | 18003 | | |
17996 | 18004 | | |
17997 | 18005 | | |
| 18006 | + | |
17998 | 18007 | | |
17999 | 18008 | | |
18000 | 18009 | | |
| |||
20366 | 20375 | | |
20367 | 20376 | | |
20368 | 20377 | | |
| 20378 | + | |
20369 | 20379 | | |
20370 | 20380 | | |
20371 | 20381 | | |
| |||
21123 | 21133 | | |
21124 | 21134 | | |
21125 | 21135 | | |
| 21136 | + | |
21126 | 21137 | | |
21127 | 21138 | | |
21128 | 21139 | | |
| |||
21732 | 21743 | | |
21733 | 21744 | | |
21734 | 21745 | | |
| 21746 | + | |
21735 | 21747 | | |
21736 | 21748 | | |
21737 | 21749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
0 commit comments