|
@@ -3,14 +3,17 @@ export type ScopeType =
|
|
|
| "cluster"
|
|
| "cluster"
|
|
|
| "settings"
|
|
| "settings"
|
|
|
| "namespace"
|
|
| "namespace"
|
|
|
- | "application";
|
|
|
|
|
|
|
+ | "application"
|
|
|
|
|
+ | "env_group"
|
|
|
|
|
+ | "job"
|
|
|
|
|
+ | "integrations";
|
|
|
|
|
|
|
|
export type Verbs = "get" | "list" | "create" | "update" | "delete";
|
|
export type Verbs = "get" | "list" | "create" | "update" | "delete";
|
|
|
|
|
|
|
|
export interface PolicyDocType {
|
|
export interface PolicyDocType {
|
|
|
scope: ScopeType;
|
|
scope: ScopeType;
|
|
|
verbs: Array<Verbs>;
|
|
verbs: Array<Verbs>;
|
|
|
- resources: string[];
|
|
|
|
|
|
|
+ resources?: string[];
|
|
|
children?: Partial<Record<ScopeType, PolicyDocType>>;
|
|
children?: Partial<Record<ScopeType, PolicyDocType>>;
|
|
|
}
|
|
}
|
|
|
|
|
|