UNPKG

kubernetes-models

Version:
56 lines (55 loc) 1.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiFlowcontrolV1beta2GroupSubject_1 = require("./IoK8sApiFlowcontrolV1beta2GroupSubject.js"); const IoK8sApiFlowcontrolV1beta2ServiceAccountSubject_1 = require("./IoK8sApiFlowcontrolV1beta2ServiceAccountSubject.js"); const IoK8sApiFlowcontrolV1beta2UserSubject_1 = require("./IoK8sApiFlowcontrolV1beta2UserSubject.js"); const schema = { "properties": { "group": { "oneOf": [ { "$ref": "io.k8s.api.flowcontrol.v1beta2.GroupSubject#" }, { "type": "null" } ] }, "kind": { "type": "string" }, "serviceAccount": { "oneOf": [ { "$ref": "io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject#" }, { "type": "null" } ] }, "user": { "oneOf": [ { "$ref": "io.k8s.api.flowcontrol.v1beta2.UserSubject#" }, { "type": "null" } ] } }, "required": [ "kind" ], "type": "object" }; function addSchema() { (0, IoK8sApiFlowcontrolV1beta2GroupSubject_1.addSchema)(); (0, IoK8sApiFlowcontrolV1beta2ServiceAccountSubject_1.addSchema)(); (0, IoK8sApiFlowcontrolV1beta2UserSubject_1.addSchema)(); (0, validate_1.register)("io.k8s.api.flowcontrol.v1beta2.Subject", schema); } exports.addSchema = addSchema;