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:
19
src/custom-resouces/environment/environment.ts
Normal file
19
src/custom-resouces/environment/environment.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts';
|
||||
import { GROUP } from '../../utils/consts.ts';
|
||||
|
||||
import { EnvironmentController } from './environment.controller.ts';
|
||||
import { environmentSpecSchema } from './environment.schemas.ts';
|
||||
|
||||
const environmentDefinition = createCustomResourceDefinition({
|
||||
group: GROUP,
|
||||
version: 'v1',
|
||||
kind: 'Environment',
|
||||
names: {
|
||||
plural: 'environments',
|
||||
singular: 'environment',
|
||||
},
|
||||
spec: environmentSpecSchema,
|
||||
create: (options) => new EnvironmentController(options),
|
||||
});
|
||||
|
||||
export { environmentDefinition };
|
||||
Reference in New Issue
Block a user