Skip to content

Commit

Permalink
Forward compatibility terminal label. (#4921)
Browse files Browse the repository at this point in the history
Signed-off-by: zzjin <tczzjin@gmail.com>
  • Loading branch information
zzjin authored Jul 23, 2024
1 parent 80c052f commit 9468f7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/terminal/controllers/terminal_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ func (r *TerminalReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
PartOf: TerminalPartOf,
})

//Note: Fixme: For `Forward Compatibility` usage only, old resource controller need this label.
recLabels["TerminalID"] = terminal.Name

var hostname string
if err := r.syncDeployment(ctx, terminal, &hostname, recLabels); err != nil {
logger.Error(err, "create deployment failed")
Expand Down

0 comments on commit 9468f7f

Please sign in to comment.