UNPKG

kubernetes-models

Version:
44 lines (43 loc) 969 B
import { register } from "@kubernetes-models/validate"; const schema = { "properties": { "apiGroups": { "items": { "type": "string" }, "type": "array" }, "clusterScope": { "type": "boolean", "nullable": true }, "namespaces": { "items": { "type": "string" }, "type": "array", "nullable": true }, "resources": { "items": { "type": "string" }, "type": "array" }, "verbs": { "items": { "type": "string" }, "type": "array" } }, "required": [ "verbs", "apiGroups", "resources" ], "type": "object" }; export function addSchema() { register("io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule", schema); }