kubernetes-models
Version:
58 lines (57 loc) • 1.84 kB
JavaScript
import { register } from "@kubernetes-models/validate";
import { addSchema as IoK8sApiCoreV1ConfigMapProjection } from "./IoK8sApiCoreV1ConfigMapProjection.mjs";
import { addSchema as IoK8sApiCoreV1DownwardAPIProjection } from "./IoK8sApiCoreV1DownwardAPIProjection.mjs";
import { addSchema as IoK8sApiCoreV1SecretProjection } from "./IoK8sApiCoreV1SecretProjection.mjs";
import { addSchema as IoK8sApiCoreV1ServiceAccountTokenProjection } from "./IoK8sApiCoreV1ServiceAccountTokenProjection.mjs";
const schema = {
"properties": {
"configMap": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.ConfigMapProjection#"
},
{
"type": "null"
}
]
},
"downwardAPI": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.DownwardAPIProjection#"
},
{
"type": "null"
}
]
},
"secret": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.SecretProjection#"
},
{
"type": "null"
}
]
},
"serviceAccountToken": {
"oneOf": [
{
"$ref": "io.k8s.api.core.v1.ServiceAccountTokenProjection#"
},
{
"type": "null"
}
]
}
},
"type": "object"
};
export function addSchema() {
IoK8sApiCoreV1ConfigMapProjection();
IoK8sApiCoreV1DownwardAPIProjection();
IoK8sApiCoreV1SecretProjection();
IoK8sApiCoreV1ServiceAccountTokenProjection();
register("io.k8s.api.core.v1.VolumeProjection", schema);
}