kubernetes-models
Version:
88 lines (87 loc) • 2.47 kB
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiCoreV1ExecAction } from "./IoK8sApiCoreV1ExecAction.mjs";
import { addSchema as IoK8sApiCoreV1GRPCAction } from "./IoK8sApiCoreV1GRPCAction.mjs";
import { addSchema as IoK8sApiCoreV1HTTPGetAction } from "./IoK8sApiCoreV1HTTPGetAction.mjs";
import { addSchema as IoK8sApiCoreV1TCPSocketAction } from "./IoK8sApiCoreV1TCPSocketAction.mjs";
const schema = {
"properties": {
"exec": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.ExecAction#"
},
{
"type": "null"
}
]
},
"failureThreshold": {
"format": "int32",
"type": "integer",
"nullable": true
},
"grpc": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.GRPCAction#"
},
{
"type": "null"
}
]
},
"httpGet": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.HTTPGetAction#"
},
{
"type": "null"
}
]
},
"initialDelaySeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"periodSeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"successThreshold": {
"format": "int32",
"type": "integer",
"nullable": true
},
"tcpSocket": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.TCPSocketAction#"
},
{
"type": "null"
}
]
},
"terminationGracePeriodSeconds": {
"format": "int64",
"type": "integer",
"nullable": true
},
"timeoutSeconds": {
"format": "int32",
"type": "integer",
"nullable": true
}
},
"type": "object"
};
export function addSchema() {
IoK8sApiCoreV1ExecAction();
IoK8sApiCoreV1GRPCAction();
IoK8sApiCoreV1HTTPGetAction();
IoK8sApiCoreV1TCPSocketAction();
register("io.k8s.api.core.v1.Probe", schema);
}