Commit 97f01a9
authored
Adds CLI for Infrastructure Management (#14)
* Adds CLI to orchestrate infra setup/teardown
* Fix exceptions and err msgs
* fix down logic + improve maintainability
* Fixes issue when APIs are not enabled by skipping cleanup steps instead of hanging.
* address reviews + Moves GCS handling to pulumi.
* Uses py sdk instead of gcloud for container builds.
* update CLI to use new accelerator registry types
Replace dict-based accelerator configs with typed GpuConfig/TpuConfig
from the core registry. Introduces InfraConfig dataclass and removes
the now-redundant accelerator_configs.py lookup tables.
* disable allow_create for command
* remove dead code
* rebasing fixes
* Adds check for kubectl and docker in the prerequisites check
* use a released nvidia driver instead of master
* Adds an error helper
* rename prerequisites to prerequisites_check
* log error when checking for image existence
* improve conditional logic
* Adds label based filtering for resource cleanup1 parent 66fe26e commit 97f01a9
File tree
29 files changed
+1209
-727
lines changed- keras_remote
- backend
- cli
- commands
- infra
- core
- infra
- utils
29 files changed
+1209
-727
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
56 | 72 | | |
57 | 73 | | |
58 | 74 | | |
59 | 75 | | |
60 | 76 | | |
| 77 | + | |
61 | 78 | | |
62 | 79 | | |
63 | 80 | | |
64 | 81 | | |
65 | 82 | | |
66 | 83 | | |
67 | | - | |
| 84 | + | |
68 | 85 | | |
69 | 86 | | |
70 | | - | |
| 87 | + | |
71 | 88 | | |
72 | 89 | | |
73 | | - | |
| 90 | + | |
74 | 91 | | |
75 | 92 | | |
| 93 | + | |
76 | 94 | | |
77 | 95 | | |
78 | | - | |
79 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
80 | 116 | | |
81 | 117 | | |
82 | 118 | | |
| |||
124 | 160 | | |
125 | 161 | | |
126 | 162 | | |
127 | | - | |
| 163 | + | |
128 | 164 | | |
129 | 165 | | |
130 | 166 | | |
| |||
348 | 384 | | |
349 | 385 | | |
350 | 386 | | |
351 | | - | |
| 387 | + | |
352 | 388 | | |
353 | 389 | | |
354 | 390 | | |
355 | 391 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
360 | 399 | | |
361 | 400 | | |
362 | 401 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 58 | + | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
| |||
75 | 72 | | |
76 | 73 | | |
77 | 74 | | |
78 | | - | |
| 75 | + | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
| |||
212 | 209 | | |
213 | 210 | | |
214 | 211 | | |
215 | | - | |
216 | 212 | | |
217 | 213 | | |
218 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
175 | | - | |
| 174 | + | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
| |||
334 | 333 | | |
335 | 334 | | |
336 | 335 | | |
337 | | - | |
| 336 | + | |
338 | 337 | | |
339 | 338 | | |
340 | 339 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
0 commit comments