kubernetes-models
Version:
40 lines (39 loc) • 919 B
JavaScript
import { register } from "@kubernetes-models/validate";
const schema = {
"properties": {
"effect": {
"enum": [
"NoExecute",
"NoSchedule",
"PreferNoSchedule"
],
"type": "string",
"nullable": true
},
"key": {
"type": "string",
"nullable": true
},
"operator": {
"enum": [
"Equal",
"Exists"
],
"type": "string",
"nullable": true
},
"tolerationSeconds": {
"format": "int64",
"type": "integer",
"nullable": true
},
"value": {
"type": "string",
"nullable": true
}
},
"type": "object"
};
export function addSchema() {
register("io.k8s.api.core.v1.Toleration", schema);
}