This repository was archived by the owner on Jun 29, 2022. It is now read-only.
Commit 5a25271
committed
pkg/platform/aks: implement PostApplyHook
This commit implements newly introduced platform.PostApplyHook for AKS
clusters, to address issue, where components depending on the storage
gets installed when default storage class has not been yet created by
the AKS controller, as this causes components to get stuck, which makes
cluster provisioning to fail.
The implemented hook lists available storage classes on the cluster and
returns when class with default storage class annotation is found.
Usually default storage class appears on the cluster within 5 minutes
after cluster creation, so 10 minutes timeout seems like a sane default
for this operation.
Closes #855
Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>1 parent 13a0041 commit 5a25271
1 file changed
+48
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
309 | 315 | | |
310 | 316 | | |
311 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
312 | 360 | | |
313 | 361 | | |
314 | 362 | | |
| |||
0 commit comments