feat: unify installation model catalog
This commit is contained in:
@@ -123,8 +123,9 @@ bindings = pathlib.Path(sys.argv[3]).read_text()
|
||||
if local.get("profile") != "local" or server.get("profile") != "server":
|
||||
raise SystemExit("installation examples must retain their local/server profiles")
|
||||
for document in (local, server):
|
||||
if "metadataGeneration" not in document or "authentication" not in document:
|
||||
raise SystemExit("installation example lacks metadata or authentication configuration")
|
||||
catalog = document.get("modelCatalog")
|
||||
if not isinstance(catalog, dict) or "providers" not in catalog or "authentication" not in document:
|
||||
raise SystemExit("installation example lacks model catalog or authentication configuration")
|
||||
if re.search(r"(?:KEY|PASSWORD|TOKEN|SECRET)=[^\n#<][^\n]*", bindings):
|
||||
raise SystemExit("workspace bindings example contains a secret value")
|
||||
PY
|
||||
|
||||
Reference in New Issue
Block a user