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 16, 2024
1 parent 195dc0d commit 51eb843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/devbox/internal/controller/devbox_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ func (r *DevboxReconciler) generateProxyPodJWT(ctx context.Context, devbox *devb
if err != nil {
return "", err
}
fmt.Println("生成的token为:%s", signedString)
fmt.Printf("111生成的token为:%s\n", signedString)
return token.SignedString(r.ShutdownServerKey)
}

Expand All @@ -633,7 +633,7 @@ func (r *DevboxReconciler) generateProxyPodEnv(ctx context.Context, devbox *devb
Name: "JWT_TOKEN",
Value: token,
})
fmt.Printf("生成的token为:%s\n", token)
fmt.Printf("生成的token为:%s\n\n", token)
}
sshPort := "22"
for _, port := range servicePorts {
Expand Down

0 comments on commit 51eb843

Please sign in to comment.