feat(operator): 状态迁移、超时、自动重建、空闲停机与 RCON Secret 创建写 Event 和结构化日志,RBAC 增加 events create/patch

This commit is contained in:
Lemon-miaow committed 2026-09-25 19:32:25 +08:00
1 parent a977e229ca
commit b7d4275ca9
5 files changed
+206 -9

No files matched your search

+3 -2
View File
@@ -120,8 +120,9 @@ func cmdOperator(args []string, _, stderr io.Writer) int {
Jobs: mgr.GetAPIReader(),
// Uncached too: RCON Secrets are read by name, so the Role grants
// secrets:get without the list/watch an informer would need.
Secrets: mgr.GetAPIReader(),
Watch: watch,
Secrets: mgr.GetAPIReader(),
Recorder: mgr.GetEventRecorderFor("felis-operator"),
Watch: watch,
}
if err := r.SetupWithManager(mgr); err != nil {
fmt.Fprintf(stderr, "felis operator: setup controller: %v\n", err)