mirror of
https://github.com/open-webui/terminals.git
synced 2026-11-05 01:37:21 +00:00
[PR #14] [MERGED] fix: ensure label consistency between backend types #46
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#46
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/terminals/pull/14
Author: @james-westbrook
Created: 3/29/2026
Status: ✅ Merged
Merged: 3/29/2026
Merged by: @tjbck
Base:
main← Head:fix-label-consistency📝 Commits (1)
fd3ca8bfix: ensure label consistency between backend types and across user-specific resources📊 Changes
1 file changed (+23 additions, -15 deletions)
View changed files
📝
operator/handler.py(+23 -15)📄 Description
Description
Fixes label inconsistency between backends & adds user-id labels to operator resources.
Problem
The
kubernetes-operatorbackend used a differentmanaged-bylabel value than every other backend:app.kubernetes.io/managed-bykubernetesterminalsdockerterminalskubernetes-operator(CRs)terminalsopen-terminal-operator← mismatchThis meant cross-backend queries filtered on
managed-by=terminalswould miss operator-created pods.Additionally, operator-created resources were missing two useful labels:
app.kubernetes.io/part-of— not set at allopenwebui.com/user-id— present on resources from other backends but absent from operator-created onesRoot Cause
The operator's
_labels()helper inhandler.pyhard-codedmanaged-by: open-terminal-operatorand had no access to the user ID from the Terminal CR spec.Fix
operator/handler.pymanaged-byfromopen-terminal-operatortoterminalsto align with all other backends.part-of: open-terminallabel.user_idparameter to_labels()— when provided, emitsopenwebui.com/user-idon every child resource (pod, service, secret, PVC).user_idfrom the Terminal CR spec through all four_build_*_manifest()functions and their call sites inon_create().managed-by=open-terminal-operatortomanaged-by=terminals.Related Issues
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.