UNPKG

kubernetes-models

Version:
133 lines (132 loc) 3.52 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSchema = void 0; const validate_1 = require("@kubernetes-models/validate"); const IoK8sApiCoreV1ServicePort_1 = require("./IoK8sApiCoreV1ServicePort.js"); const IoK8sApiCoreV1SessionAffinityConfig_1 = require("./IoK8sApiCoreV1SessionAffinityConfig.js"); const schema = { "properties": { "allocateLoadBalancerNodePorts": { "type": "boolean", "nullable": true }, "clusterIP": { "type": "string", "nullable": true }, "clusterIPs": { "items": { "type": "string" }, "type": "array", "nullable": true }, "externalIPs": { "items": { "type": "string" }, "type": "array", "nullable": true }, "externalName": { "type": "string", "nullable": true }, "externalTrafficPolicy": { "enum": [ "Cluster", "Local" ], "type": "string", "nullable": true }, "healthCheckNodePort": { "format": "int32", "type": "integer", "nullable": true }, "internalTrafficPolicy": { "type": "string", "nullable": true }, "ipFamilies": { "items": { "type": "string" }, "type": "array", "nullable": true }, "ipFamilyPolicy": { "type": "string", "nullable": true }, "loadBalancerClass": { "type": "string", "nullable": true }, "loadBalancerIP": { "type": "string", "nullable": true }, "loadBalancerSourceRanges": { "items": { "type": "string" }, "type": "array", "nullable": true }, "ports": { "items": { "$ref": "io.k8s.api.core.v1.ServicePort#" }, "type": "array", "nullable": true }, "publishNotReadyAddresses": { "type": "boolean", "nullable": true }, "selector": { "additionalProperties": { "type": "string" }, "type": "object", "nullable": true }, "sessionAffinity": { "enum": [ "ClientIP", "None" ], "type": "string", "nullable": true }, "sessionAffinityConfig": { "oneOf": [ { "$ref": "io.k8s.api.core.v1.SessionAffinityConfig#" }, { "type": "null" } ] }, "type": { "enum": [ "ClusterIP", "ExternalName", "LoadBalancer", "NodePort" ], "type": "string", "nullable": true } }, "type": "object" }; function addSchema() { (0, IoK8sApiCoreV1ServicePort_1.addSchema)(); (0, IoK8sApiCoreV1SessionAffinityConfig_1.addSchema)(); (0, validate_1.register)("io.k8s.api.core.v1.ServiceSpec", schema); } exports.addSchema = addSchema;