Commit Graph
42 Commits
Author SHA1 Message Date
9d48c1852f feat(devbox): add startup configmap synchronization and volume manage… (#6175)
feat(devbox): add startup configmap synchronization and volume management (#6172)

* feat(devbox): add support for startup config map and related volume mounts

* Update controllers/devbox/internal/controller/devbox_controller.go



* Update controllers/devbox/internal/controller/devbox_controller.go



* Update controllers/devbox/internal/controller/helper/devbox.go



* Update controllers/devbox/internal/controller/helper/devbox.go



* fix(devbox): ensure both DEVBOX_STARTUP_CM_NAME and DEVBOX_STARTUP_CM_NAMESPACE are set together

* fix(devbox): update startup.sh check to ensure configmap data consistency

* fix(devbox): ensure devboxConfigmap data is initialized (#877)



---------

Signed-off-by: Yun Pan <dinoallo@netc.it>
Co-authored-by: cuisongliu <cuisongliu@qq.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-12 22:02:27 +08:00
Bearix c0fa294f8f feat:change devbox pod delete logic (#5666) 2025-06-27 18:09:57 +08:00
yy e381a9597f fix: devbox pod create logic should not retry on conflict, just return. (#5543) 2025-04-17 18:01:23 +08:00
Bearix 57fb06142a feat: devbox cold shutdown. (#5492)
* feat: cold shutdown.

* feat: cold shutdown.

* fix bug.

* change logic: using state.

* change if to switch.

* change if to switch.

* change if to switch.

* add change phase logic.
2025-04-09 11:38:21 +08:00
yy ac6458c681 fix: devbox controller with event filter. (#5460) 2025-03-12 17:07:22 +08:00
yy 3be90e5328 feat: devbox controller concurrent and config qps flag. (#5365)
* feat: add flag to set config qps and burst.

* feat: support concurrent devbox controller.
2025-02-11 15:25:50 +08:00
yy 365aededad feat: support node selector and runtime class name for devbox. support custom resource name. (#5330) 2025-01-07 17:57:03 +08:00
yy df6eef64c2 step2: change pod create logic from devbox config, delete runtime and runtimeclass crd. (#5328) 2025-01-07 15:41:30 +08:00
yy b46d3763cd step1: copy runtime config to devbox crd, add runtime id. (#5326) 2025-01-07 15:24:22 +08:00
yy c808ad6bcb fix: change ssh key mode, mount key by subpath. (#5203)
* change ssh key mode, mount key by subpath.

* remove private key mount.
2024-11-12 16:04:32 +08:00
yy a927563bab feat: delete password, add authorized_key. (#5194)
* feat: delete password, add authorized_key.

* fix init secret.

* change ssh key mode.
2024-11-11 16:07:07 +08:00
zzjin 73a00935f3 Update controller, allow set different cpu/memory request rate. (#5195)
Signed-off-by: zzjin <tczzjin@gmail.com>
2024-11-08 10:37:54 +08:00
yy e6a2f8b3fa change devbox to stop if exceeded quota (#5182) 2024-10-31 16:53:45 +08:00
yy 5e84ccb90d feat: add jwt secret in devbox secret. (#5166) 2024-10-22 16:27:59 +08:00
zzjin 13068953ef Update devbox controller, add support init request ephemeral storage. (#5156)
* Update devbox controller, add support init request ephemeral storage.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix controller reconcile ignore.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix typo.

Signed-off-by: zzjin <tczzjin@gmail.com>

---------

Signed-off-by: zzjin <tczzjin@gmail.com>
2024-10-16 21:36:48 +08:00
yy 22d9a138f9 fix devbox phase generate. (#5120) 2024-09-28 15:15:23 +08:00
yy 8c0c345923 devobx ignore extra ports. (#5112) 2024-09-26 14:52:49 +08:00
yy 103c3ac27c add devbox runtime app port. (#5099)
* fix rbac

* add runtime app ports.
2024-09-24 16:04:44 +08:00
yy bcb8ab419c add LastTerminatedState and improve squash logic for devbox. (#5080)
* add LastTerminatedState for devbox.

Signed-off-by: yy <lingdie.yy@outlook.com>

* fix makefile.

Signed-off-by: yy <lingdie.yy@outlook.com>

* fix requeue.

* fix enqueue logic

* add state and rename last state

* add check pod container size

* add squash check.

---------

Signed-off-by: yy <lingdie.yy@outlook.com>
2024-09-19 16:22:14 +08:00
yy 1decf9a848 Fix devbox podPhase logic and license in deploy.yaml.tmpl (#5067)
* fix license.

Signed-off-by: yy <lingdie.yy@outlook.com>

* fix devbox version

* fix status.

---------

Signed-off-by: yy <lingdie.yy@outlook.com>
2024-09-12 14:28:57 +08:00
yy 7a19c64dba upgrade devbox runtime crd, rewrite devbox controller. (#5066)
* upgrade devbox runtime crd, rewrite devbox controller.

* fix comment.

* fix license

* remove duplicate get

* fix event massage

* add new commit history if pod is not in devbox commit historys.

* fix SEALOS_DEVBOX_NAME env

* add label to devbox controller predicate

* fix go version

* fix lint
2024-09-11 16:37:15 +08:00
抒情熊 b03274cf3f remove pod finalizer (#5060)
* remove pod finalizer

* remove pod finalizer

* remove pod finalizer
2024-09-10 15:34:20 +08:00
抒情熊 60c4065bb9 add service port (#5048)
* add service port

* fix bug

* fix bug
2024-09-06 15:39:13 +08:00
抒情熊 e4e57023de add random (#5050) 2024-09-06 12:15:09 +08:00
抒情熊 4a17349ac2 add devbox node and containerId (#5045)
* add devbox node and containerId

* add devbox node and containerId
2024-09-05 18:18:43 +08:00
抒情熊 0ed063560f add devbox phase and controller (#5042)
* fix ssh volume bug

* add devbox phase and controller

* add devbox phase and controller

* add devbox phase and controller

* add devbox phase and controller

* add devbox phase and controller

* add devbox phase and controller

* add devbox phase and controller

* add devbox phase and controller

* add devbox phase and controller

* add devbox phase and controller
2024-09-05 16:49:38 +08:00
yy 7d882d0504 add logs for CheckPodConsistency. (#5035)
* add log to debug.

Signed-off-by: yy <lingdie.yy@outlook.com>

* add log to debug.

Signed-off-by: yy <lingdie.yy@outlook.com>

* add log to debug.

Signed-off-by: yy <lingdie.yy@outlook.com>

---------

Signed-off-by: yy <lingdie.yy@outlook.com>
2024-09-04 13:21:49 +08:00
yy 980e796e93 add devbox default runtime ref namespace to devbox-system. (#5034)
* add devbox default runtime ref namespace to devbox-system.

Signed-off-by: yy <lingdie.yy@outlook.com>

* set default runtime image ref to self ns.

Signed-off-by: yy <lingdie.yy@outlook.com>

---------

Signed-off-by: yy <lingdie.yy@outlook.com>
2024-09-04 11:56:17 +08:00
yy 4e13ab5fd8 fix devbox get runtime. (#5030)
Signed-off-by: yy <lingdie.yy@outlook.com>
2024-09-03 17:19:51 +08:00
yy 306bbda519 add devbox controller rbac. (#5028) 2024-09-03 16:44:04 +08:00
yy 5d1d9ba83e change runtime and runtime class to namespace scope, improve devbox c… (#5024)
* change runtime and runtime class to namespace scope, improve devbox create logic, add container configs to runtime and devbox crd.

* fix lint.

* fix format.

* fix deploy yaml.
2024-09-02 18:02:07 +08:00
抒情熊 569bcfd270 add extraEnv toleration affinity,ephemeral-storage limit (#5023) 2024-09-02 15:22:47 +08:00
抒情熊 35c1c569d8 change label location (#5022) 2024-09-02 13:26:40 +08:00
yy 3d625499da add additionalPrinterColumns for devbox. (#5020)
* add additionalPrinterColumns for devbox.

* add ResourceVersionChangedPredicate for devbox pod change status to reconcile devbox.
2024-08-31 15:31:11 +08:00
yy e3c9b629b4 add default rbac rules for devbox runtime and runtime class. (#5012)
* add retry logic when get service, fix rbac.

* fix license.

* add RetryOnConflict when sync pod
2024-08-31 15:00:33 +08:00
yy d2eb60c857 update devbox to add delete resource. (#5017)
* update devbox to add delete resource.

* update devbox to add delete resource.
2024-08-30 18:01:17 +08:00
抒情熊 d58375ebd6 add devbox restart pod (#5010)
* add devbox restart pod
2024-08-30 11:39:54 +08:00
yy e52f5d3c51 add devbox pod hostname set to devbox name (#5015) 2024-08-30 10:47:44 +08:00
yy 7e77b7a879 add devbox controller rbac, enable in ci to build docker images (#5009)
* add devbox controller rbac, enable in ci to build docker images

* add devbox controller rbac, enable in ci to build docker images

* add devbox controller rbac, enable in ci to build docker images
2024-08-29 14:34:42 +08:00
抒情熊 5877ddb053 add generate public and private key (#5004)
* add generate public and private key

* add generate public and private key

* add generate public and private key

* add generate public and private key

* add generate public and private key

* add generate public and private key

* fix bug

* Changes

* Changes

* Changes

* Changes

* Changes
2024-08-29 12:37:50 +08:00
yy fd6733eaab set AutomountServiceAccountToken to false (#5001) 2024-08-27 18:20:41 +08:00
yy a3c9c55ae7 add devbox controller. (#4999)
* add devbox controller

* add devbox controller

* fix lint and delete useless ops controller

* fix lint and delete useless ops controller

* add license and fix fmt.
2024-08-27 15:09:30 +08:00