mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
updates
This commit is contained in:
18
src/custom-resouces/http-service/http-service.schemas.ts
Normal file
18
src/custom-resouces/http-service/http-service.schemas.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
const httpServiceSpecSchema = z.object({
|
||||
environment: z.string(),
|
||||
subdomain: z.string(),
|
||||
destination: z.object({
|
||||
host: z.string(),
|
||||
port: z
|
||||
.object({
|
||||
number: z.number().optional(),
|
||||
protocol: z.enum(['http', 'https']).optional(),
|
||||
name: z.string().optional(),
|
||||
})
|
||||
.optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
export { httpServiceSpecSchema };
|
||||
Reference in New Issue
Block a user