How-to guide / Policy, CI, and compliance
Disable scorecard rules
These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.
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:
1scorecard.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 22 manifests evaluated
scorecard pass 0 errors, 2 warnings, 2 info
reliability.boundedResources (warning), 2:
app-v1/gateway/gateway: container 'nginx' is missing resource settings: requests.cpu, requests.memory, limits.cpu, limits.memory. Set CPU and memory requests and limits. Without a memory limit, a workload can exhaust the node's memory.
app-v2/gateway/gateway: container 'nginx' is missing resource settings: requests.cpu, requests.memory, limits.cpu, limits.memory. Set CPU and memory requests and limits. Without a memory limit, a workload can exhaust the node's memory.
2 info finding(s) not listed; run with -v to list them. 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.