UNPKG

kubernetes-models

Version:
38 lines (37 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiAuthorizationV1NonResourceAttributes_1 = require("./IoK8sApiAuthorizationV1NonResourceAttributes.js"); const IoK8sApiAuthorizationV1ResourceAttributes_1 = require("./IoK8sApiAuthorizationV1ResourceAttributes.js"); const schema = { "properties": { "nonResourceAttributes": { "oneOf": [ { "$ref": "io.k8s.api.authorization.v1.NonResourceAttributes#" }, { "type": "null" } ] }, "resourceAttributes": { "oneOf": [ { "$ref": "io.k8s.api.authorization.v1.ResourceAttributes#" }, { "type": "null" } ] } }, "type": "object" }; function addSchema() { (0, IoK8sApiAuthorizationV1NonResourceAttributes_1.addSchema)(); (0, IoK8sApiAuthorizationV1ResourceAttributes_1.addSchema)(); (0, validate_1.register)("io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec", schema); } exports.addSchema = addSchema;