|
62 | 62 | """ |
63 | 63 | Deployer to use (options: Auto, Docker, Kubernetes). |
64 | 64 | """ |
65 | | - GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY: str | None = None |
66 | | - """ |
67 | | - Default container registry for deployer to pull images from. |
68 | | - If not set, it should be "docker.io". |
69 | | - If the image name already contains a registry, this setting will be ignored. |
70 | | - """ |
71 | | - GPUSTACK_RUNTIME_DEPLOY_DEFAULT_NAMESPACE: str | None = None |
72 | | - """ |
73 | | - Namespace for default runner images. |
74 | | - If not set, it should be "gpustack". |
75 | | - """ |
76 | | - GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY_USERNAME: str | None = None |
77 | | - """ |
78 | | - Username for the default container registry. |
79 | | - """ |
80 | | - GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY_PASSWORD: str | None = None |
81 | | - """ |
82 | | - Password for the default container registry. |
83 | | - """ |
84 | 65 | GPUSTACK_RUNTIME_DEPLOY_API_CALL_ERROR_DETAIL: bool = True |
85 | 66 | """ |
86 | 67 | Enable detailing the API call error during deployment. |
|
138 | 119 | """ |
139 | 120 | Correct the gpustack-runner image by rendering it with the host's detection. |
140 | 121 | """ |
| 122 | + GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_REGISTRY: str | None = None |
| 123 | + """ |
| 124 | + Default container registry for deployer to pull images from. |
| 125 | + If not set, it should be "docker.io". |
| 126 | + If the image name already contains a registry, this setting will be ignored. |
| 127 | + """ |
| 128 | + GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_NAMESPACE: str | None = None |
| 129 | + """ |
| 130 | + Namespace for default runner images. |
| 131 | + If not set, it should be "gpustack". |
| 132 | + """ |
| 133 | + GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_REGISTRY_USERNAME: str | None = None |
| 134 | + """ |
| 135 | + Username for the default container registry. |
| 136 | + """ |
| 137 | + GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_REGISTRY_PASSWORD: str | None = None |
| 138 | + """ |
| 139 | + Password for the default container registry. |
| 140 | + """ |
141 | 141 | GPUSTACK_RUNTIME_DEPLOY_IMAGE_PULL_POLICY: str | None = None |
142 | 142 | """ |
143 | 143 | Image pull policy for the deployer (e.g., Always, IfNotPresent, Never). |
|
299 | 299 | "GPUSTACK_RUNTIME_DEPLOY", |
300 | 300 | "Auto", |
301 | 301 | ), |
302 | | - "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY": lambda: trim_str( |
303 | | - getenvs( |
304 | | - keys=[ |
305 | | - "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY", |
306 | | - "GPUSTACK_SYSTEM_DEFAULT_CONTAINER_REGISTRY", # Compatible with gpustack/gpustack. |
307 | | - ], |
308 | | - ), |
309 | | - ), |
310 | | - "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_NAMESPACE": lambda: trim_str( |
311 | | - getenv("GPUSTACK_RUNTIME_DEPLOY_DEFAULT_NAMESPACE"), |
312 | | - ), |
313 | | - "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY_USERNAME": lambda: trim_str( |
314 | | - getenv("GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY_USERNAME"), |
315 | | - ), |
316 | | - "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY_PASSWORD": lambda: getenv( |
317 | | - "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY_PASSWORD", |
318 | | - ), |
319 | 302 | "GPUSTACK_RUNTIME_DEPLOY_API_CALL_ERROR_DETAIL": lambda: to_bool( |
320 | 303 | getenv("GPUSTACK_RUNTIME_DEPLOY_API_CALL_ERROR_DETAIL", "1"), |
321 | 304 | ), |
|
349 | 332 | "GPUSTACK_RUNTIME_DEPLOY_CORRECT_RUNNER_IMAGE": lambda: to_bool( |
350 | 333 | getenv("GPUSTACK_RUNTIME_DEPLOY_CORRECT_RUNNER_IMAGE", "1"), |
351 | 334 | ), |
| 335 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_REGISTRY": lambda: trim_str( |
| 336 | + getenvs( |
| 337 | + keys=[ |
| 338 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_REGISTRY", |
| 339 | + # TODO(thxCode): Backward compatibility, remove in v0.1.45 later. |
| 340 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY", |
| 341 | + # Compatible with gpustack/gpustack. |
| 342 | + "GPUSTACK_SYSTEM_DEFAULT_CONTAINER_REGISTRY", |
| 343 | + ], |
| 344 | + ), |
| 345 | + ), |
| 346 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_NAMESPACE": lambda: trim_str( |
| 347 | + getenvs( |
| 348 | + keys=[ |
| 349 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_NAMESPACE", |
| 350 | + # TODO(thxCode): Backward compatibility, remove in v0.1.45 later. |
| 351 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_NAMESPACE", |
| 352 | + ], |
| 353 | + ), |
| 354 | + ), |
| 355 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_REGISTRY_USERNAME": lambda: trim_str( |
| 356 | + getenvs( |
| 357 | + keys=[ |
| 358 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_REGISTRY_USERNAME", |
| 359 | + # TODO(thxCode): Backward compatibility, remove in v0.1.45 later. |
| 360 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY_USERNAME", |
| 361 | + ], |
| 362 | + ), |
| 363 | + ), |
| 364 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_REGISTRY_PASSWORD": lambda: getenvs( |
| 365 | + keys=[ |
| 366 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_IMAGE_REGISTRY_PASSWORD", |
| 367 | + # TODO(thxCode): Backward compatibility, remove in v0.1.45 later. |
| 368 | + "GPUSTACK_RUNTIME_DEPLOY_DEFAULT_REGISTRY_PASSWORD", |
| 369 | + ], |
| 370 | + ), |
352 | 371 | "GPUSTACK_RUNTIME_DEPLOY_IMAGE_PULL_POLICY": lambda: choice( |
353 | 372 | getenv( |
354 | 373 | "GPUSTACK_RUNTIME_DEPLOY_IMAGE_PULL_POLICY", |
|
0 commit comments