UNPKG

kubernetes-models

Version:
66 lines (65 loc) 2.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApimachineryPkgApisMetaV1ObjectMeta_1 = require("@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1ObjectMeta"); const IoK8sApiCoreV1ReplicationControllerSpec_1 = require("./IoK8sApiCoreV1ReplicationControllerSpec.js"); const IoK8sApiCoreV1ReplicationControllerStatus_1 = require("./IoK8sApiCoreV1ReplicationControllerStatus.js"); const schema = { "properties": { "apiVersion": { "type": "string", "enum": [ "v1" ] }, "kind": { "type": "string", "enum": [ "ReplicationController" ] }, "metadata": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#" }, { "type": "null" } ] }, "spec": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.ReplicationControllerSpec#" }, { "type": "null" } ] }, "status": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.ReplicationControllerStatus#" }, { "type": "null" } ] } }, "type": "object", "required": [ "apiVersion", "kind" ] }; function addSchema() { (0, IoK8sApimachineryPkgApisMetaV1ObjectMeta_1.addSchema)(); (0, IoK8sApiCoreV1ReplicationControllerSpec_1.addSchema)(); (0, IoK8sApiCoreV1ReplicationControllerStatus_1.addSchema)(); (0, validate_1.register)("io.k8s.api.core.v1.ReplicationController", schema); } exports.addSchema = addSchema;