mirror of
https://github.com/open-webui/terminals.git
synced 2026-12-05 11:07:56 -05:00
refac
This commit is contained in:
1 parent
0e89fe7829
commit
be10268c03
3 files changed
+40
No files matched your search
@@ -211,6 +211,9 @@ def _apply_pod_template(pod_manifest: dict, pod_template: dict | None) -> dict:
|
||||
{},
|
||||
)
|
||||
generated_container = generated_spec["containers"][0]
|
||||
for field in ("readinessProbe", "livenessProbe"):
|
||||
if field in template_container:
|
||||
container[field] = template_container[field]
|
||||
for field in ("env", "ports", "volumeMounts"):
|
||||
container[field] = _merge_by_name(
|
||||
template_container.get(field), generated_container.get(field)
|
||||
|
||||
Reference in new issue
Block a user