-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
35 lines (34 loc) · 1.45 KB
/
Copy pathindex.ts
File metadata and controls
35 lines (34 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import type { ComponentType } from "react";
import type { ResourceFormProps } from "@/components/editor/resource-editor";
import { BackendForm } from "./backend-form";
import { GatewayForm } from "./gateway-form";
import { GatewayClassForm } from "./gatewayclass-form";
import { GrpcRouteForm } from "./grpcroute-form";
import { HttpRouteForm } from "./httproute-form";
import { ListenerSetForm } from "./listenerset-form";
import { BackendTlsPolicyForm } from "./backendtlspolicy-form";
import { ReferenceGrantForm } from "./referencegrant-form";
import { TlsRouteForm } from "./tlsroute-form";
import { ParametersForm } from "./parameters-form";
import { PolicyForm } from "./policy-form";
/**
* Kind-specific guided forms, keyed by registry id. Kinds without an entry
* fall back to YAML-only editing (still schema-validated and dry-run gated).
*/
export const FORMS: Record<string, ComponentType<ResourceFormProps>> = {
backends: BackendForm,
gateways: GatewayForm,
gatewayclasses: GatewayClassForm,
grpcroutes: GrpcRouteForm,
httproutes: HttpRouteForm,
listenersets: ListenerSetForm,
tlsroutes: TlsRouteForm,
backendtlspolicies: BackendTlsPolicyForm,
referencegrants: ReferenceGrantForm,
parameters: ParametersForm,
policies: PolicyForm,
// Enterprise kinds share the OSS spec shapes these forms edit; enterprise-
// only fields (entMcp, sharedExtensions, ...) remain YAML-side.
"ent-policies": PolicyForm,
"ent-parameters": ParametersForm,
};