mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +00:00
Add a countDistinct(<labelKey>) aggregate to the nodeResources analyzer "when" expression language. It counts distinct values of a node label across the filtered nodes and returns an int the existing comparison operators evaluate. Enables the AIR-238 3-AZ preflight: warn when Keeper-eligible nodes do not span 3 availability zones, e.g. "countDistinct(topology.kubernetes.io/zone) < 3". Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Xav Paice <xavpaice@users.noreply.github.com>