feat: execute jobs on Kubernetes #2

Open
panxiao81 wants to merge 3 commits from feat/kubernetes-job-controller into main
Owner

内容

  • 增加 Kubernetes execution adapter,映射领域 Job 到 batch/v1 Job
  • 增加 Job controller,支持显式 JobClass 解析、准入、幂等创建与状态观察
  • 支持取消、删除 finalizer、后端 ownership 校验与 ResultUnknown 恢复
  • 在 JobClass 丢失后继续观察已经持久化的 execution
  • 生成 controller 所需 RBAC

当前切片边界

  • 仅支持显式 jobClassName 和 Kubernetes adapter
  • 默认 class 选择、TTL、active deadline、完整 resource min/max policy 后续实现
  • OpenSandbox 不在本 PR

验证

  • go test -count=1 ./...
  • go vet ./...
  • bin/golangci-lint run
  • make manifests generate
## 内容 - 增加 Kubernetes execution adapter,映射领域 Job 到 `batch/v1 Job` - 增加 Job controller,支持显式 JobClass 解析、准入、幂等创建与状态观察 - 支持取消、删除 finalizer、后端 ownership 校验与 ResultUnknown 恢复 - 在 JobClass 丢失后继续观察已经持久化的 execution - 生成 controller 所需 RBAC ## 当前切片边界 - 仅支持显式 `jobClassName` 和 Kubernetes adapter - 默认 class 选择、TTL、active deadline、完整 resource min/max policy 后续实现 - OpenSandbox 不在本 PR ## 验证 - `go test -count=1 ./...` - `go vet ./...` - `bin/golangci-lint run` - `make manifests generate`
panxiao81 added 1 commit 2026-09-18 18:21:02 +00:00
feat: execute jobs on Kubernetes
Verify / test (pull_request) Successful in 7m25s
Verify / lint (pull_request) Successful in 8m9s
86effb72a8
panxiao81 added 1 commit 2026-09-18 18:30:18 +00:00
test: exercise controller with envtest
Verify / test (pull_request) Successful in 8m22s
Verify / lint (pull_request) Successful in 9m37s
06bc54e3cf
panxiao81 added 1 commit 2026-09-18 18:33:16 +00:00
docs: require integration tests for controllers
Verify / test (pull_request) Successful in 11m35s
Verify / lint (pull_request) Successful in 11m58s
f76978ca17
panxiao81 force-pushed feat/kubernetes-job-controller from ff21c5bfba to f76978ca17 2026-09-20 20:41:13 +00:00 Compare
All checks were successful
Verify / test (pull_request) Successful in 11m35s
Verify / lint (pull_request) Successful in 11m58s
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/kubernetes-job-controller:feat/kubernetes-job-controller
git checkout feat/kubernetes-job-controller
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: panxiao81/ayatori#2