kubernetes-models
Version:
42 lines (41 loc) • 979 B
JavaScript
import { register } from "@kubernetes-models/validate";
const schema = {
"properties": {
"apiGroups": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"apiVersions": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"operations": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"resources": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"scope": {
"type": "string",
"nullable": true
}
},
"type": "object"
};
export function addSchema() {
register("io.k8s.api.admissionregistration.v1.RuleWithOperations", schema);
}