mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
20 lines
611 B
TypeScript
20 lines
611 B
TypeScript
import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts';
|
|
import { GROUP } from '../../utils/consts.ts';
|
|
|
|
import { RedisServerController } from './redis-server.controller.ts';
|
|
import { redisServerSpecSchema } from './redis-server.schemas.ts';
|
|
|
|
const redisServerDefinition = createCustomResourceDefinition({
|
|
group: GROUP,
|
|
version: 'v1',
|
|
kind: 'RedisServer',
|
|
names: {
|
|
plural: 'redis-servers',
|
|
singular: 'redis-server',
|
|
},
|
|
spec: redisServerSpecSchema,
|
|
create: (options) => new RedisServerController(options),
|
|
});
|
|
|
|
export { redisServerDefinition };
|