kubernetes-models
Version:
27 lines (26 loc) • 700 B
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiCoreV1PortStatus } from "./IoK8sApiCoreV1PortStatus.mjs";
const schema = {
"properties": {
"hostname": {
"type": "string",
"nullable": true
},
"ip": {
"type": "string",
"nullable": true
},
"ports": {
"items": {
"$ref": "io.k8s.api.core.v1.PortStatus#"
},
"type": "array",
"nullable": true
}
},
"type": "object"
};
export function addSchema() {
IoK8sApiCoreV1PortStatus();
register("io.k8s.api.core.v1.LoadBalancerIngress", schema);
}