kubernetes-models
Version:
32 lines (31 loc) • 709 B
JavaScript
import { register } from "@kubernetes-models/validate";
const schema = {
"properties": {
"containerName": {
"type": "string",
"nullable": true
},
"operator": {
"enum": [
"In",
"NotIn"
],
"type": "string"
},
"values": {
"items": {
"format": "int32",
"type": "integer"
},
"type": "array"
}
},
"required": [
"operator",
"values"
],
"type": "object"
};
export function addSchema() {
register("io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement", schema);
}