mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
lot more stuff
This commit is contained in:
19
src/custom-resouces/postgres-database/postgres-database.ts
Normal file
19
src/custom-resouces/postgres-database/postgres-database.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts';
|
||||
import { GROUP } from '../../utils/consts.ts';
|
||||
|
||||
import { postgresDatabaseSpecSchema } from './portgres-database.schemas.ts';
|
||||
import { PostgresDatabaseResource } from './postgres-database.resource.ts';
|
||||
|
||||
const postgresDatabaseDefinition = createCustomResourceDefinition({
|
||||
group: GROUP,
|
||||
version: 'v1',
|
||||
kind: 'PostgresDatabase',
|
||||
names: {
|
||||
plural: 'postgresdatabases',
|
||||
singular: 'postgresdatabase',
|
||||
},
|
||||
spec: postgresDatabaseSpecSchema,
|
||||
create: (options) => new PostgresDatabaseResource(options),
|
||||
});
|
||||
|
||||
export { postgresDatabaseDefinition };
|
||||
Reference in New Issue
Block a user