mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-21 12:13:55 +09:00
docs(tests): document Helm selector guard limits
Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com> Assisted-by: LLM
This commit is contained in:
1 parent
2757e2c60a
commit
342283cfc7
1 file changed
+6
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user