Skip to content

Commit

Permalink
chore(fmt): format code
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

feat:devbox controller support websocket
  • Loading branch information
bearslyricattack committed Dec 20, 2024
1 parent 7369a80 commit 20c9ce5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions controllers/devbox/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func main() {
var requestEphemeralStorage string
var limitEphemeralStorage string
var debugMode bool
var WebSocketImage string
flag.StringVar(&registryAddr, "registry-addr", "sealos.hub:5000", "The address of the registry")
flag.StringVar(&registryUser, "registry-user", "admin", "The user of the registry")
flag.StringVar(&registryPassword, "registry-password", "passw0rd", "The password of the registry")
Expand All @@ -93,6 +94,7 @@ func main() {
flag.Float64Var(&requestMemoryRate, "request-memory-rate", 10, "The request rate of memory limit in devbox.")
flag.StringVar(&requestEphemeralStorage, "request-ephemeral-storage", "500Mi", "The request value of ephemeral storage in devbox.")
flag.StringVar(&limitEphemeralStorage, "limit-ephemeral-storage", "10Gi", "The limit value of ephemeral storage in devbox.")
flag.StringVar(&WebSocketImage, "websocket-image", "jpillora/chisel", "The image name of devbox websocket proxy pod")
opts := zap.Options{
Development: true,
}
Expand Down
3 changes: 2 additions & 1 deletion controllers/devbox/internal/controller/devbox_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ package controller
import (
"context"
"fmt"
networkingv1 "k8s.io/api/networking/v1"
"time"

networkingv1 "k8s.io/api/networking/v1"

devboxv1alpha1 "github.com/labring/sealos/controllers/devbox/api/v1alpha1"
"github.com/labring/sealos/controllers/devbox/internal/controller/helper"
"github.com/labring/sealos/controllers/devbox/label"
Expand Down

0 comments on commit 20c9ce5

Please sign in to comment.