mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
23 lines
519 B
TypeScript
23 lines
519 B
TypeScript
import { z } from 'zod';
|
|
|
|
const postgresDatabaseSpecSchema = z.object({
|
|
secretRef: z.string(),
|
|
});
|
|
|
|
const postgresDatabaseSecretSchema = z.object({
|
|
host: z.string(),
|
|
port: z.string(),
|
|
user: z.string(),
|
|
password: z.string(),
|
|
});
|
|
|
|
const postgresDatabaseConnectionSecretSchema = z.object({
|
|
host: z.string(),
|
|
port: z.string(),
|
|
user: z.string(),
|
|
password: z.string(),
|
|
database: z.string(),
|
|
});
|
|
|
|
export { postgresDatabaseSpecSchema, postgresDatabaseSecretSchema, postgresDatabaseConnectionSecretSchema };
|