fix(operator): 服务器未就绪时改了配置,operator 按新模板重建 pod-0,不再卡在旧镜像上

This commit is contained in:
Lemon-miaow committed 2026-09-27 04:03:15 +08:00
1 parent 0e08fa7ced
commit 2f920cf1c9
6 files changed
+320 -14

No files matched your search

+4 -1
View File
@@ -120,7 +120,10 @@ 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(),
Secrets: mgr.GetAPIReader(),
// And pods: pod-0 is read by name, so the Role grants pods:get and no
// namespace-wide pod informer runs.
Pods: mgr.GetAPIReader(),
Recorder: mgr.GetEventRecorderFor("felis-operator"),
Watch: watch,
}