补齐证书、秘密同步、GitOps 与数据服务监控 (#160)
yaml / yaml (push) Successful in 2m53s

Co-authored-by: panxiao81 <[email protected]>
This commit was merged in pull request #160.
This commit is contained in:
2026-09-25 19:36:30 +00:00
committed by panxiao81
parent acd4b55722
commit b75043cb45
9 changed files with 791 additions and 3 deletions
@@ -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