UNPKG

kubernetes-models

Version:
261 lines (260 loc) 7.86 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiCoreV1Affinity_1 = require("./IoK8sApiCoreV1Affinity.js"); const IoK8sApiCoreV1Container_1 = require("./IoK8sApiCoreV1Container.js"); const IoK8sApiCoreV1PodDNSConfig_1 = require("./IoK8sApiCoreV1PodDNSConfig.js"); const IoK8sApiCoreV1EphemeralContainer_1 = require("./IoK8sApiCoreV1EphemeralContainer.js"); const IoK8sApiCoreV1HostAlias_1 = require("./IoK8sApiCoreV1HostAlias.js"); const IoK8sApiCoreV1LocalObjectReference_1 = require("./IoK8sApiCoreV1LocalObjectReference.js"); const IoK8sApiCoreV1PodOS_1 = require("./IoK8sApiCoreV1PodOS.js"); const IoK8sApimachineryPkgApiResourceQuantity_1 = require("@kubernetes-models/apimachinery/_schemas/IoK8sApimachineryPkgApiResourceQuantity"); const IoK8sApiCoreV1PodReadinessGate_1 = require("./IoK8sApiCoreV1PodReadinessGate.js"); const IoK8sApiCoreV1PodSecurityContext_1 = require("./IoK8sApiCoreV1PodSecurityContext.js"); const IoK8sApiCoreV1Toleration_1 = require("./IoK8sApiCoreV1Toleration.js"); const IoK8sApiCoreV1TopologySpreadConstraint_1 = require("./IoK8sApiCoreV1TopologySpreadConstraint.js"); const IoK8sApiCoreV1Volume_1 = require("./IoK8sApiCoreV1Volume.js"); const schema = { "properties": { "activeDeadlineSeconds": { "format": "int64", "type": "integer", "nullable": true }, "affinity": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.Affinity#" }, { "type": "null" } ] }, "automountServiceAccountToken": { "type": "boolean", "nullable": true }, "containers": { "items": { "$ref": "io.k8s.api.core.v1.Container#" }, "type": "array" }, "dnsConfig": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.PodDNSConfig#" }, { "type": "null" } ] }, "dnsPolicy": { "enum": [ "ClusterFirst", "ClusterFirstWithHostNet", "Default", "None" ], "type": "string", "nullable": true }, "enableServiceLinks": { "type": "boolean", "nullable": true }, "ephemeralContainers": { "items": { "$ref": "io.k8s.api.core.v1.EphemeralContainer#" }, "type": "array", "nullable": true }, "hostAliases": { "items": { "$ref": "io.k8s.api.core.v1.HostAlias#" }, "type": "array", "nullable": true }, "hostIPC": { "type": "boolean", "nullable": true }, "hostNetwork": { "type": "boolean", "nullable": true }, "hostPID": { "type": "boolean", "nullable": true }, "hostUsers": { "type": "boolean", "nullable": true }, "hostname": { "type": "string", "nullable": true }, "imagePullSecrets": { "items": { "$ref": "io.k8s.api.core.v1.LocalObjectReference#" }, "type": "array", "nullable": true }, "initContainers": { "items": { "$ref": "io.k8s.api.core.v1.Container#" }, "type": "array", "nullable": true }, "nodeName": { "type": "string", "nullable": true }, "nodeSelector": { "additionalProperties": { "type": "string" }, "type": "object", "nullable": true }, "os": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.PodOS#" }, { "type": "null" } ] }, "overhead": { "additionalProperties": { "$ref": "io.k8s.apimachinery.pkg.api.resource.Quantity#" }, "type": "object", "nullable": true }, "preemptionPolicy": { "type": "string", "nullable": true }, "priority": { "format": "int32", "type": "integer", "nullable": true }, "priorityClassName": { "type": "string", "nullable": true }, "readinessGates": { "items": { "$ref": "io.k8s.api.core.v1.PodReadinessGate#" }, "type": "array", "nullable": true }, "restartPolicy": { "enum": [ "Always", "Never", "OnFailure" ], "type": "string", "nullable": true }, "runtimeClassName": { "type": "string", "nullable": true }, "schedulerName": { "type": "string", "nullable": true }, "securityContext": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.PodSecurityContext#" }, { "type": "null" } ] }, "serviceAccount": { "type": "string", "nullable": true }, "serviceAccountName": { "type": "string", "nullable": true }, "setHostnameAsFQDN": { "type": "boolean", "nullable": true }, "shareProcessNamespace": { "type": "boolean", "nullable": true }, "subdomain": { "type": "string", "nullable": true }, "terminationGracePeriodSeconds": { "format": "int64", "type": "integer", "nullable": true }, "tolerations": { "items": { "$ref": "io.k8s.api.core.v1.Toleration#" }, "type": "array", "nullable": true }, "topologySpreadConstraints": { "items": { "$ref": "io.k8s.api.core.v1.TopologySpreadConstraint#" }, "type": "array", "nullable": true }, "volumes": { "items": { "$ref": "io.k8s.api.core.v1.Volume#" }, "type": "array", "nullable": true } }, "required": [ "containers" ], "type": "object" }; function addSchema() { (0, IoK8sApiCoreV1Affinity_1.addSchema)(); (0, IoK8sApiCoreV1Container_1.addSchema)(); (0, IoK8sApiCoreV1PodDNSConfig_1.addSchema)(); (0, IoK8sApiCoreV1EphemeralContainer_1.addSchema)(); (0, IoK8sApiCoreV1HostAlias_1.addSchema)(); (0, IoK8sApiCoreV1LocalObjectReference_1.addSchema)(); (0, IoK8sApiCoreV1PodOS_1.addSchema)(); (0, IoK8sApimachineryPkgApiResourceQuantity_1.addSchema)(); (0, IoK8sApiCoreV1PodReadinessGate_1.addSchema)(); (0, IoK8sApiCoreV1PodSecurityContext_1.addSchema)(); (0, IoK8sApiCoreV1Toleration_1.addSchema)(); (0, IoK8sApiCoreV1TopologySpreadConstraint_1.addSchema)(); (0, IoK8sApiCoreV1Volume_1.addSchema)(); (0, validate_1.register)("io.k8s.api.core.v1.PodSpec", schema); } exports.addSchema = addSchema;