fix(ci): attest releases and validate offline examples

This commit is contained in:
yeasy
2026-07-10 19:29:30 -07:00
parent daa6661b2b
commit ee0fbd7d38
15 changed files with 11967 additions and 59 deletions
+9
View File
@@ -11,6 +11,13 @@ from typing import List, Optional
ROOT = Path(__file__).resolve().parents[1]
FIXTURE_ROOT = ROOT / "examples" / "validated"
KUBERNETES_SCHEMA_ROOT = (
FIXTURE_ROOT / "kubernetes" / "schemas" / "v1.31.0-standalone-strict"
)
KUBERNETES_SCHEMA_LOCATION = (
f"file://{KUBERNETES_SCHEMA_ROOT.as_posix()}/"
"{{ .ResourceKind }}{{ .KindSuffix }}.json"
)
@dataclass(frozen=True)
@@ -56,6 +63,8 @@ CHECKS = (
"kubeconform",
"-strict",
"-summary",
"-schema-location",
KUBERNETES_SCHEMA_LOCATION,
"-kubernetes-version",
"1.31.0",
str(FIXTURE_ROOT / "kubernetes" / "web.yaml"),