docs(tests): document Helm selector guard limits

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
Assisted-by: LLM
This commit is contained in:
Ahmed Kamal committed 2026-11-01 02:17:57 +02:00
1 parent 2757e2c60a
commit 342283cfc7
1 file changed
+6 -3
+6 -3
View File
@@ -2,9 +2,7 @@
"""Reject added positional selectors on multi-resource Helm templates.
Usage: python3 hack/check-helm-document-indices.py <base-ref>
Requires mikefarah/yq, like the chart test tooling. Existing indices are left
alone. This static check counts --- separated blocks with a top-level kind;
it does not evaluate conditional documents or resources emitted by helpers/ranges.
Requires mikefarah/yq, like the chart test tooling.
"""
import json
@@ -19,6 +17,11 @@ def git(*args):
def check(base):
"""Check added indices, leaving existing ones alone.
This static check counts --- separated blocks with a top-level kind; it does
not evaluate conditional documents or resources emitted by helpers/ranges.
"""
root = Path(git("rev-parse", "--show-toplevel").strip())
additions = {}
path = None