Skip to content

Commit

Permalink
refactor(filebrowser): add env variable for differentiating filebrows…
Browse files Browse the repository at this point in the history
…er databases
  • Loading branch information
tunahanertekin committed Dec 13, 2023
1 parent 694cda9 commit a72f246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/resources/robot_ide.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func GetRobotIDEPod(robotIDE *robotv1alpha1.RobotIDE, podNamespacedName *types.N
Env: []corev1.EnvVar{
internal.Env("CODE_SERVER_PORT", strconv.Itoa(ROBOT_IDE_PORT)),
internal.Env("FILE_BROWSER_PORT", strconv.Itoa(internal.FILE_BROWSER_PORT)),
internal.Env("FILE_BROWSER_SERVICE", "code-server"),
internal.Env("ROBOT_NAMESPACE", robot.Namespace),
internal.Env("ROBOT_NAME", robot.Name),
internal.Env("WORKSPACES_PATH", robot.Spec.WorkspaceManagerTemplate.WorkspacesPath),
Expand Down
1 change: 1 addition & 0 deletions internal/resources/robot_vdi.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func GetRobotVDIPod(robotVDI *robotv1alpha1.RobotVDI, podNamespacedName *types.N
internal.Env("NEKO_NAT1TO1", robotVDI.Spec.NAT1TO1),
internal.Env("RESOLUTION", robotVDI.Spec.Resolution),
internal.Env("FILE_BROWSER_PORT", strconv.Itoa(internal.FILE_BROWSER_PORT)),
internal.Env("FILE_BROWSER_SERVICE", "vdi"),
},
Stdin: true,
TTY: true,
Expand Down

0 comments on commit a72f246

Please sign in to comment.