Co-authored-by: panxiao81 <[email protected]>
This commit was merged in pull request #160.
This commit is contained in:
@@ -10,11 +10,11 @@ import sys
|
||||
import yaml
|
||||
|
||||
groups = []
|
||||
for name in ("kubernetes-health", "host-health", "monitoring-delivery"):
|
||||
for name in ("kubernetes-health", "host-health", "monitoring-delivery", "platform-controllers", "data-services"):
|
||||
path = pathlib.Path(sys.argv[1]) / f"{name}.yaml"
|
||||
groups.extend(yaml.safe_load(path.read_text())["spec"]["groups"])
|
||||
pathlib.Path(sys.argv[2]).write_text(yaml.safe_dump({"groups": groups}, allow_unicode=True))
|
||||
PY
|
||||
cp "$test_dir/foundation.test.yaml" "$check_dir/foundation.test.yaml"
|
||||
cp "$test_dir/"*.test.yaml "$check_dir/"
|
||||
promtool check rules "$check_dir/rules.yaml"
|
||||
promtool test rules "$check_dir/foundation.test.yaml"
|
||||
promtool test rules "$check_dir/"*.test.yaml
|
||||
|
||||
Reference in New Issue
Block a user