kubernetes-models
Version:
52 lines (51 loc) • 1.59 kB
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiFlowcontrolV1beta1GroupSubject } from "./IoK8sApiFlowcontrolV1beta1GroupSubject.mjs";
import { addSchema as IoK8sApiFlowcontrolV1beta1ServiceAccountSubject } from "./IoK8sApiFlowcontrolV1beta1ServiceAccountSubject.mjs";
import { addSchema as IoK8sApiFlowcontrolV1beta1UserSubject } from "./IoK8sApiFlowcontrolV1beta1UserSubject.mjs";
const schema = {
"properties": {
"group": {
"oneOf": [
{
"$ref": "io.k8s.api.flowcontrol.v1beta1.GroupSubject#"
},
{
"type": "null"
}
]
},
"kind": {
"type": "string"
},
"serviceAccount": {
"oneOf": [
{
"$ref": "io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject#"
},
{
"type": "null"
}
]
},
"user": {
"oneOf": [
{
"$ref": "io.k8s.api.flowcontrol.v1beta1.UserSubject#"
},
{
"type": "null"
}
]
}
},
"required": [
"kind"
],
"type": "object"
};
export function addSchema() {
IoK8sApiFlowcontrolV1beta1GroupSubject();
IoK8sApiFlowcontrolV1beta1ServiceAccountSubject();
IoK8sApiFlowcontrolV1beta1UserSubject();
register("io.k8s.api.flowcontrol.v1beta1.Subject", schema);
}