Hi all, I'd like to discuss what the operator health probe should do when one of its informers is broken. Design doc with the scenarios and pictures can be found here [1].
Quick context - The incident behind FLINK-41441 [2] and FLINK-41465 [3] made us look at the probe's informer rules as a whole, and FLINK-41035 [4] showed how easily a fix in one spot breaks a verdict in another. So we walked through every situation, one and two watched namespaces, startup failures, namespaces added or removed at runtime, and the staleness check. The essence of the proposal is one idea: judge health per watched namespace. The probe should ask which namespaces the operator can still serve correctly, fail only when the answer is none, and say which ones it cannot serve otherwise. Everything below is that idea applied to the cases we found. The verdicts the operator health probe gives today are right, with one exception. What we propose to change sits around them: - A broken namespace is invisible beyond one log line. We report every namespace the operator cannot serve, one ERROR per transition and a gauge per namespace. kubernetes.operator.startup.stop-on-informer-error has no job left once the probe fails exactly when no namespace can be served, and it is what causes a crash loop. We deprecate it: default false in 1.17, gone in 1.18. - The one verdict change: two namespaces broken in different ways pass today because each resource type still works somewhere. They should fail because the operator can serve neither. - A namespace added at runtime whose informers fail to start restarts the operator. The restart cannot help, the informer retries on its own, and with the default startup flag it becomes a crash loop that takes the healthy namespaces down too. We drop that restart. - The staleness check follows the same rule: a stale namespace among healthy ones is reported, the probe fails once a type is stale everywhere. I'd like to hear in particular whether anyone relies on that restart or on the strict startup flag, whether the 1.17/1.18 timeline works, and any preference on the metric's shape. If nobody objects, I'll proceed with the current proposal & design. Best, Dennis [1] https://docs.google.com/document/d/156ZYhturGdGx_VN7N8g_nrowUZkbNE2rG_MAD6FamZg/edit?usp=sharing [2] https://issues.apache.org/jira/browse/FLINK-41441 [3] https://issues.apache.org/jira/browse/FLINK-41465 [4] https://issues.apache.org/jira/browse/FLINK-41035
