Commit 7957bec
🐛 fix: use cluster tag key to list managed egress-only internet gateway
The API for DescribeEgressOnlyInternetGateways does not support
attachment.vpc-id filter. Thus, the call will return all available
eigw. Consequences:
- CAPA incorrectly selects an unintended eigw for use. Leading to route
creation failure since the eigw belongs to a different VPC.
- CAPA incorrectly destroys all eigw of all VPCs. This is very
catastrophic as it can break other workloads.
This commit changes the filter to use cluster tag instead. Additional
safeguard is also included to check if the eigw is truly attached the
VPC.1 parent ecf83e5 commit 7957bec
File tree
2 files changed
+78
-14
lines changed- pkg/cloud/services/network
2 files changed
+78
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | | - | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
149 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
150 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
151 | 171 | | |
152 | 172 | | |
153 | | - | |
| 173 | + | |
154 | 174 | | |
155 | 175 | | |
156 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
75 | 76 | | |
76 | 77 | | |
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 | + | |
78 | 117 | | |
79 | 118 | | |
80 | 119 | | |
| |||
122 | 161 | | |
123 | 162 | | |
124 | 163 | | |
| 164 | + | |
125 | 165 | | |
126 | 166 | | |
127 | 167 | | |
128 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
129 | 171 | | |
130 | 172 | | |
131 | 173 | | |
| |||
139 | 181 | | |
140 | 182 | | |
141 | 183 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 184 | + | |
145 | 185 | | |
146 | 186 | | |
147 | 187 | | |
148 | 188 | | |
149 | 189 | | |
150 | 190 | | |
151 | | - | |
152 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
153 | 196 | | |
| 197 | + | |
154 | 198 | | |
155 | 199 | | |
156 | 200 | | |
| |||
199 | 243 | | |
200 | 244 | | |
201 | 245 | | |
202 | | - | |
203 | | - | |
| 246 | + | |
| 247 | + | |
204 | 248 | | |
205 | 249 | | |
206 | 250 | | |
| |||
0 commit comments