fix(operator): 服务器未就绪时改了配置,operator 按新模板重建 pod-0,不再卡在旧镜像上
This commit is contained in:
6 files changed
+320
-14
No files matched your search
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user