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 13, 2024
1 parent 031cb18 commit a70e4ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/devbox/internal/controller/devbox_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ func (r *DevboxReconciler) generateProxyPodJWT(ctx context.Context, devbox *devb
},
}
token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims)
fmt.Printf("生成的token为:%s\n", token)
return token.SignedString(r.ShutdownServerKey)
}

Expand All @@ -629,8 +628,8 @@ func (r *DevboxReconciler) generateProxyPodEnv(ctx context.Context, devbox *devb
Name: "JWT_TOKEN",
Value: token,
})
fmt.Printf("生成的token为:%s\n", token)
}

sshPort := "22"
for _, port := range servicePorts {
if port.Name == "devbox-ssh-port" {
Expand Down

0 comments on commit a70e4ed

Please sign in to comment.