stuff
This commit is contained in:
15
packages/resource-storage/src/resources/storage.schemas.ts
Normal file
15
packages/resource-storage/src/resources/storage.schemas.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user