kubernetes-models
Version:
26 lines (25 loc) • 701 B
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiCoreV1Toleration } from "./IoK8sApiCoreV1Toleration.mjs";
const schema = {
"properties": {
"nodeSelector": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"nullable": true
},
"tolerations": {
"items": {
"$ref": "io.k8s.api.core.v1.Toleration#"
},
"type": "array",
"nullable": true
}
},
"type": "object"
};
export function addSchema() {
IoK8sApiCoreV1Toleration();
register("io.k8s.api.node.v1.Scheduling", schema);
}