UNPKG

kubernetes-models

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