UNPKG

kubernetes-models

Version:
47 lines (46 loc) 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiExtensionsV1beta1RollbackConfig_1 = require("./IoK8sApiExtensionsV1beta1RollbackConfig.js"); const schema = { "properties": { "apiVersion": { "type": "string", "enum": [ "extensions/v1beta1" ] }, "kind": { "type": "string", "enum": [ "DeploymentRollback" ] }, "name": { "type": "string" }, "rollbackTo": { "$ref": "io.k8s.api.extensions.v1beta1.RollbackConfig#" }, "updatedAnnotations": { "additionalProperties": { "type": "string" }, "type": "object", "nullable": true } }, "required": [ "name", "rollbackTo", "apiVersion", "kind" ], "type": "object" }; function addSchema() { (0, IoK8sApiExtensionsV1beta1RollbackConfig_1.addSchema)(); (0, validate_1.register)("io.k8s.api.extensions.v1beta1.DeploymentRollback", schema); } exports.addSchema = addSchema;