From 4366ad97b80d2df0400e06e4b892fadab3939dc7 Mon Sep 17 00:00:00 2001 From: Kay Yan Date: Fri, 12 Jul 2024 23:17:45 +0800 Subject: [PATCH] feat: skip k3s node type EtcdIsVoter (#1167) Signed-off-by: Kay Yan Co-authored-by: Aris Boutselis --- pkg/analyzer/node.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/analyzer/node.go b/pkg/analyzer/node.go index fe5836ccbd..5c9bef04de 100644 --- a/pkg/analyzer/node.go +++ b/pkg/analyzer/node.go @@ -50,6 +50,9 @@ func (NodeAnalyzer) Analyze(a common.Analyzer) ([]common.Result, error) { break } failures = addNodeConditionFailure(failures, node.Name, nodeCondition) + // k3s `EtcdIsVoter`` should not be reported as an error + case v1.NodeConditionType("EtcdIsVoter"): + break default: if nodeCondition.Status != v1.ConditionFalse { failures = addNodeConditionFailure(failures, node.Name, nodeCondition)