UNPKG

kubernetes-models

Version:
28 lines (27 loc) 619 B
import { register } from "@kubernetes-models/validate"; const schema = { "properties": { "allowed": { "type": "boolean" }, "denied": { "type": "boolean", "nullable": true }, "evaluationError": { "type": "string", "nullable": true }, "reason": { "type": "string", "nullable": true } }, "required": [ "allowed" ], "type": "object" }; export function addSchema() { register("io.k8s.api.authorization.v1.SubjectAccessReviewStatus", schema); }