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 ec3fd91 commit 2eeeb65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/devbox/internal/controller/devbox_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,8 @@ func (r *DevboxReconciler) generateProxyPodJWT(ctx context.Context, devbox *devb
func (r *DevboxReconciler) generateProxyPodEnv(ctx context.Context, devbox *devboxv1alpha1.Devbox, servicePorts []corev1.ServicePort) []corev1.EnvVar {
var envVars []corev1.EnvVar
autoShutdownEnabled := devbox.Spec.AutoShutdownSpec.Enable && r.EnableAutoShutdown
fmt.Println(devbox.Spec.AutoShutdownSpec.Enable)
fmt.Println(r.EnableAutoShutdown)
envVars = append(envVars, corev1.EnvVar{
Name: "ENABLE_AUTO_SHUTDOWN",
Value: strconv.FormatBool(autoShutdownEnabled),
Expand Down

0 comments on commit 2eeeb65

Please sign in to comment.