Commit d483d25
Add/lifecycle heartbeat (#1116)
* add lifecycle heartbeat
* Lifecycle heartbeat unit test
* Refactor heartbeat logging statements
* Heartbeat e2e test
* Remove error handling for using heartbeat and imds together
* add e2e test for lifecycle heartbeat
* Add check heartbeat timeout and compare to heartbeat interval
* Add error handling for using heartbeat and imds together
* fix config error message
* update error message for heartbeat config
* Fix heartbeat flag explanation
* Update readme for new heartbeat feature
* Fix readme for heartbeat section
* Update readme on the concurrency of heartbeat
* fix: stop heartbeat when target is invalid
* Added heartbeat test for handling invalid lifecycle action
* incorporated unsupoorted error types for unit testing
* fix unit-test: reset heartbeatCallCount each test
* use helper function to reduce repetitive code in heartbeat unit test
* Update readme. Moved heartbeat under Queue Processor
* Fix config.go for better readability and check until < interval
* Update heartbeat to have better logging
* Update unit test to cover whole process of heartbeat start and closure
* Update heartbeat e2e test. Auto-value calculations for future modification
* Add inline comment for heartbeatUntil default behavior
* Fixed e2e variables to have double quotes
* fix readme for heartbeat
* Added new flags in config test
* Fixed typo in heartbeat e2e test
---------
Co-authored-by: Heeyoung Jung <jhyeong@amazon.com>1 parent 7d52be6 commit d483d25
File tree
9 files changed
+604
-18
lines changed- config/helm/aws-node-termination-handler/templates
- pkg
- config
- monitor/sqsevent
- node
- test
- test/e2e
9 files changed
+604
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 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 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
84 | 153 | | |
85 | 154 | | |
86 | 155 | | |
| |||
91 | 160 | | |
92 | 161 | | |
93 | 162 | | |
| 163 | + | |
94 | 164 | | |
95 | 165 | | |
96 | 166 | | |
| |||
626 | 696 | | |
627 | 697 | | |
628 | 698 | | |
629 | | - | |
630 | | - | |
| 699 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
| |||
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| 238 | + | |
| 239 | + | |
233 | 240 | | |
234 | 241 | | |
235 | 242 | | |
| |||
274 | 281 | | |
275 | 282 | | |
276 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
277 | 305 | | |
278 | 306 | | |
279 | 307 | | |
| |||
332 | 360 | | |
333 | 361 | | |
334 | 362 | | |
| 363 | + | |
| 364 | + | |
335 | 365 | | |
336 | 366 | | |
337 | 367 | | |
| |||
383 | 413 | | |
384 | 414 | | |
385 | 415 | | |
386 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
387 | 419 | | |
388 | 420 | | |
389 | 421 | | |
| |||
424 | 456 | | |
425 | 457 | | |
426 | 458 | | |
| 459 | + | |
| 460 | + | |
427 | 461 | | |
428 | 462 | | |
429 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
104 | | - | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| 124 | + | |
| 125 | + | |
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
| |||
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
131 | | - | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
| 154 | + | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
| |||
176 | 184 | | |
177 | 185 | | |
178 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
179 | 190 | | |
180 | 191 | | |
181 | 192 | | |
| |||
201 | 212 | | |
202 | 213 | | |
203 | 214 | | |
| 215 | + | |
| 216 | + | |
204 | 217 | | |
205 | 218 | | |
206 | 219 | | |
| |||
229 | 242 | | |
230 | 243 | | |
231 | 244 | | |
| 245 | + | |
| 246 | + | |
232 | 247 | | |
233 | 248 | | |
234 | 249 | | |
| |||
0 commit comments