Skip to content

Commit

Permalink
feat:websocket auto shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
bearslyricattack committed Dec 20, 2024
1 parent 957e67b commit 05da198
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/devbox/internal/controller/devbox_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,9 @@ func (r *DevboxReconciler) syncProxyPod(ctx context.Context, devbox *devboxv1alp
if devbox.Spec.State == devboxv1alpha1.DevboxStateRunning {
if errors.IsNotFound(err) {
wsDeployment, err = r.generateProxyPodDeployment(ctx, devbox, recLabels, servicePorts)
if err != nil {
return err
}
if _, err := controllerutil.CreateOrUpdate(ctx, r.Client, wsDeployment, func() error {
return controllerutil.SetControllerReference(devbox, wsDeployment, r.Scheme)
}); err != nil {
Expand Down

0 comments on commit 05da198

Please sign in to comment.