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:
@@ -0,0 +1,19 @@
|
||||
import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts';
|
||||
import { GROUP } from '../../utils/consts.ts';
|
||||
|
||||
import { postgresConnectionSpecSchema } from './posgtres-connection.schemas.ts';
|
||||
import { PostgresConnectionResource } from './postgres-connection.resource.ts';
|
||||
|
||||
const postgresConnectionDefinition = createCustomResourceDefinition({
|
||||
group: GROUP,
|
||||
version: 'v1',
|
||||
kind: 'PostgresConnection',
|
||||
names: {
|
||||
plural: 'postgresconnections',
|
||||
singular: 'postgresconnection',
|
||||
},
|
||||
spec: postgresConnectionSpecSchema,
|
||||
create: (options) => new PostgresConnectionResource(options),
|
||||
});
|
||||
|
||||
export { postgresConnectionDefinition };
|
||||
Reference in New Issue
Block a user