Commit Graph
54 Commits
Author SHA1 Message Date
Bearix c0fa294f8f feat:change devbox pod delete logic (#5666) 2025-06-27 18:09:57 +08:00
yyandjiahui 4cc740443a upgrade: controller runtime version (#5597)
* upgrade: controller runtime version

* Upgrade k8s.io/client-go version v0.28.3 => v0.32.1; Upgrade golang version v1.22 => 1.24 to be compatible with client-go v0.32.1

* fix ci

* fix ci

* skip md5 semgrep check

---------

Co-authored-by: jiahui <bxy4543@gmail.com>
2025-05-14 14:48:42 +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
yy cc8774a484 update: devbox deploy.yaml.tmpl to build latest cluster image (#5544) 2025-04-17 17:57:26 +08:00
yy e33104d21b fix: devbox release target image tag (#5527) 2025-04-15 17:57:35 +08:00
yy 3cd9604d84 fix: devbox release target image tag (#5525) 2025-04-09 11:39:27 +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 8b81bb67d0 fix: devbox release tag use last predicated success commit. (#5379) 2025-02-18 11:54:31 +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 c4281fe4ba fix: use container status to set commit status. (#5220) 2024-11-25 11:22:30 +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 32f6973cbd feat: add runtime version and state. (#5169)
* feat: add jwt secret in devbox secret.

* add runtime version and state.
2024-10-23 16:02:25 +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 9817f6fb81 devbox cache improve. (#5122) 2024-10-08 10:24:25 +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 bf2fe19c9d Devbox runtime support release command and args (#5078)
* add release command and args for release default commands.

* add default workingDir

* add make pre-deploy
2024-09-13 15:12:15 +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
Jiahui e10a76e5f8 Add terminate ns, skip notifications for abnormal users, set default.NodePort.Limit=10, adapt new user struct. (#5056)
* add terminate namespace with anno

* adapt account

* skip notification by abnormal users

* revert mod version
2024-09-11 15:56:46 +08:00
抒情熊 b03274cf3f remove pod finalizer (#5060)
* remove pod finalizer

* remove pod finalizer

* remove pod finalizer
2024-09-10 15:34:20 +08:00
抒情熊 d47170c689 add release old tag (#5053)
* add release old tag

* add release old tag

* add release old tag

* add release old tag
2024-09-09 18:08:15 +08:00
抒情熊 47001c9ba8 fix release bug (#5051) 2024-09-06 17:50:07 +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
抒情熊 95ce6b8177 fix ssh volume bug (#5039) 2024-09-05 11:22:47 +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