Files
box/packages/resource-storage/src/resources/storage.schemas.ts
Morten Olsen 772d078649 stuff
2025-10-29 23:58:02 +01:00

16 lines
289 B
TypeScript

import { z } from '@morten-olsen/box-k8s';
const hostSpec = z.object({
type: z.literal('host'),
path: z.string(),
});
const locationSpec = hostSpec;
const storageSpecSchema = z.object({
location: locationSpec,
backup: locationSpec.optional(),
});
export { storageSpecSchema };