mirror of
https://github.com/open-webui/terminals.git
synced 2026-11-05 01:37:21 +00:00
[GH-ISSUE #64] Named-policy route ignores TERMINALS_KUBERNETES_IMAGE: merge_policy_defaults injects TERMINALS_IMAGE (default :latest) into every policy spec #35
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/terminals#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wa91h on GitHub (Sep 17, 2026).
Original GitHub issue: https://github.com/open-webui/terminals/issues/64
Version:
terminals0.2.4 (unchanged onmain) · backendkubernetes-operator· installed via theterminalsHelm chart 0.7.0, which sets onlyTERMINALS_KUBERNETES_IMAGEWhat happens
terminals/utils/policy_specs.py:and
backends/kubernetes_operator.py:effective_kubernetes_image(kubernetes_image or image) is only consulted when the spec has noimage— but for any request through/p/<policy>the spec always has one, because the merge putsettings.imagethere. So:TERMINALS_KUBERNETES_IMAGE(pinned by the chart) ✔/p/<policy>route, policy withoutimage→TERMINALS_IMAGE→open-terminal:latest✘The Helm chart never sets
TERMINALS_IMAGE, so every chart user who adopts a policy (the only way to get persistence) silently runs an unpinned image. Observed: first policy-provisioned pod pulledopen-terminal:latestwhileterminalImagewas pinned to0.12.5.Expected
merge_policy_defaults(or_create_terminal_cr) should default tosettings.effective_kubernetes_imageon the kubernetes backends, i.e.kubernetes_imagemust win overimagewhen the policy itself does not set one. A policy-setimageshould of course still override both.Workaround
Set
TERMINALS_IMAGEto the same value asTERMINALS_KUBERNETES_IMAGE(chart:orchestrator.extraEnvVars).@owui-terminator[bot] commented on GitHub (Sep 17, 2026):
⚠️ Missing Issue Title Prefix
@wa91h, your issue title is missing a categorising prefix (e.g.
bug:,feat:,docs:).Please update the title to lead with one of:
Example:
bug: Login fails when the password contains special characters