kubernetes-models
Version:
74 lines (73 loc) • 2.03 kB
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiDiscoveryV1EndpointConditions } from "./IoK8sApiDiscoveryV1EndpointConditions.mjs";
import { addSchema as IoK8sApiDiscoveryV1EndpointHints } from "./IoK8sApiDiscoveryV1EndpointHints.mjs";
import { addSchema as IoK8sApiCoreV1ObjectReference } from "./IoK8sApiCoreV1ObjectReference.mjs";
const schema = {
"properties": {
"addresses": {
"items": {
"type": "string"
},
"type": "array"
},
"conditions": {
"oneOf": [
{
"$ref": "io.k8s.api.discovery.v1.EndpointConditions#"
},
{
"type": "null"
}
]
},
"deprecatedTopology": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"nullable": true
},
"hints": {
"oneOf": [
{
"$ref": "io.k8s.api.discovery.v1.EndpointHints#"
},
{
"type": "null"
}
]
},
"hostname": {
"type": "string",
"nullable": true
},
"nodeName": {
"type": "string",
"nullable": true
},
"targetRef": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.ObjectReference#"
},
{
"type": "null"
}
]
},
"zone": {
"type": "string",
"nullable": true
}
},
"required": [
"addresses"
],
"type": "object"
};
export function addSchema() {
IoK8sApiDiscoveryV1EndpointConditions();
IoK8sApiDiscoveryV1EndpointHints();
IoK8sApiCoreV1ObjectReference();
register("io.k8s.api.discovery.v1.Endpoint", schema);
}