How-to guide Policy, CI, and compliance
Disable scorecard rules
Exclude a scorecard rule while leaving the rest of its rule set enabled.
Disable an individual rule through scorecard.ruleOverrides.byRule. This
keeps the rest of its built-in or custom category active.
This guide assumes the rule is in the active set. The built-in rules are,
by default; a custom rule must be present under scorecard.rules.
Add the override
Section titled “Add the override”Use the rule’s full <category>.<rule> name and set enabled = false:
scorecard.ruleOverrides.byRule."reliability.hasProbes".enabled = false;Kix excludes the rule before evaluating it, so it produces no findings. Other reliability rules continue to run.
Check the result
Section titled “Check the result”Run the cluster checks:
❱ kix check 19-scorecards
TOOL RESULT DETAILS
eval pass 24 manifests evaluated
scorecard pass 0 errors, 6 warnings, 2 info Confirm that the disabled rule no longer appears in the findings. If it still appears, check that the override includes the category and matches the rule name exactly.
To restore the rule, remove the override. Prefer removing it over setting
enabled = true, so the cluster inherits future changes to the surrounding
configuration without an unnecessary exception.