@dovetail-v2/refine 0.1.14-alpha.2 → 0.1.14-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/{MonacoYamlDiffEditor-b8dc52f9.js → MonacoYamlDiffEditor-2636b66c.js} +1 -1
  2. package/dist/{index-5616d403.js → index-45c3dd0a.js} +55 -39
  3. package/dist/refine.js +1 -1
  4. package/dist/refine.umd.cjs +54 -38
  5. package/lib/components/CronJobDropdown/index.d.ts +9 -0
  6. package/lib/components/Form/useReactHookForm.d.ts +3 -1
  7. package/lib/components/K8sDropdown/index.d.ts +9 -0
  8. package/lib/components/PodDropdown/index.d.ts +9 -0
  9. package/lib/components/ReplicasDropdown/index.d.ts +9 -0
  10. package/lib/components/Table/TableToolBar.d.ts +9 -0
  11. package/lib/components/Table/TableWidgets.d.ts +6 -0
  12. package/lib/components/WorkloadDropdown/index.d.ts +9 -0
  13. package/lib/constants/k8s.d.ts +4 -2
  14. package/lib/pages/storageclasses/index.d.ts +3 -1
  15. package/lib/src/App.d.ts +3 -0
  16. package/lib/src/Dovetail.d.ts +18 -0
  17. package/lib/src/components/Breadcrumb/index.d.ts +6 -0
  18. package/lib/src/components/ConditionsTable/ConditionsTable.d.ts +7 -0
  19. package/lib/src/components/ConditionsTable/index.d.ts +1 -0
  20. package/lib/src/components/CreateButton/index.d.ts +2 -0
  21. package/lib/src/components/CronJobDropdown/index.d.ts +9 -0
  22. package/lib/src/components/CronjobJobsTable/index.d.ts +8 -0
  23. package/lib/src/components/DeleteButton/index.d.ts +2 -0
  24. package/lib/src/components/DeleteManyButton/index.d.ts +4 -0
  25. package/lib/src/components/DrawerShow/DrawerShow.d.ts +9 -0
  26. package/lib/src/components/DrawerShow/index.d.ts +1 -0
  27. package/lib/src/components/DurationTime/index.d.ts +6 -0
  28. package/lib/src/components/EditButton/index.d.ts +2 -0
  29. package/lib/src/components/EditField/index.d.ts +15 -0
  30. package/lib/src/components/ErrorContent/index.d.ts +17 -0
  31. package/lib/src/components/EventsTable/EventsTable.d.ts +6 -0
  32. package/lib/src/components/EventsTable/index.d.ts +1 -0
  33. package/lib/src/components/Form/FormModal.d.ts +9 -0
  34. package/lib/src/components/Form/RefineFormContent.d.ts +12 -0
  35. package/lib/src/components/Form/RefineFormPage.d.ts +7 -0
  36. package/lib/src/components/Form/YamlForm.d.ts +29 -0
  37. package/lib/src/components/Form/index.d.ts +7 -0
  38. package/lib/src/components/Form/type.d.ts +17 -0
  39. package/lib/src/components/Form/useFieldsConfig.d.ts +4 -0
  40. package/lib/src/components/Form/useReactHookForm.d.ts +30 -0
  41. package/lib/src/components/Form/useRefineForm.d.ts +13 -0
  42. package/lib/src/components/Form/useYamlForm.d.ts +50 -0
  43. package/lib/src/components/FormErrorAlert/index.d.ts +9 -0
  44. package/lib/src/components/FormLayout/index.d.ts +7 -0
  45. package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +6 -0
  46. package/lib/src/components/FormWidgets/MetadataForm.d.ts +2 -0
  47. package/lib/src/components/FormWidgets/NameInputWidget.d.ts +51 -0
  48. package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +9 -0
  49. package/lib/src/components/FormWidgets/index.d.ts +4 -0
  50. package/lib/src/components/FormWidgets/widget.d.ts +5 -0
  51. package/lib/src/components/ImageNames/index.d.ts +5 -0
  52. package/lib/src/components/IngressRulesComponent/index.d.ts +5 -0
  53. package/lib/src/components/IngressRulesTable/IngressRulesTable.d.ts +7 -0
  54. package/lib/src/components/IngressRulesTable/index.d.ts +1 -0
  55. package/lib/src/components/K8sDropdown/index.d.ts +9 -0
  56. package/lib/src/components/KeyValue/KeyValue.d.ts +7 -0
  57. package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +6 -0
  58. package/lib/src/components/KeyValue/KeyValueSecret.d.ts +5 -0
  59. package/lib/src/components/KeyValue/index.d.ts +3 -0
  60. package/lib/src/components/Layout/index.d.ts +3 -0
  61. package/lib/src/components/LinkFallback/index.d.ts +4 -0
  62. package/lib/src/components/ListPage/index.d.ts +10 -0
  63. package/lib/src/components/Menu/index.d.ts +2 -0
  64. package/lib/src/components/NamespacesFilter/index.d.ts +11 -0
  65. package/lib/src/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +8 -0
  66. package/lib/src/components/NetworkPolicyRulesViewer/index.d.ts +1 -0
  67. package/lib/src/components/PVCDistributeStorage/index.d.ts +16 -0
  68. package/lib/src/components/PageShow/PageShow.d.ts +12 -0
  69. package/lib/src/components/PageShow/index.d.ts +1 -0
  70. package/lib/src/components/PodContainersTable/PodContainersTable.d.ts +8 -0
  71. package/lib/src/components/PodContainersTable/index.d.ts +1 -0
  72. package/lib/src/components/PodDropdown/index.d.ts +9 -0
  73. package/lib/src/components/PodLog/index.d.ts +6 -0
  74. package/lib/src/components/PodSelectorTable/index.d.ts +6 -0
  75. package/lib/src/components/PodShellModal/PodShell.d.ts +18 -0
  76. package/lib/src/components/PodShellModal/index.d.ts +10 -0
  77. package/lib/src/components/PortsTable/index.d.ts +7 -0
  78. package/lib/src/components/ReferenceLink/index.d.ts +8 -0
  79. package/lib/src/components/ReplicasDropdown/index.d.ts +9 -0
  80. package/lib/src/components/ResourceCRUD/ResourceCRUD.d.ts +8 -0
  81. package/lib/src/components/ResourceCRUD/create/index.d.ts +8 -0
  82. package/lib/src/components/ResourceCRUD/index.d.ts +4 -0
  83. package/lib/src/components/ResourceCRUD/list/index.d.ts +9 -0
  84. package/lib/src/components/ResourceCRUD/show/index.d.ts +9 -0
  85. package/lib/src/components/ResourceFiledDisplays.d.ts +7 -0
  86. package/lib/src/components/ResourceLink/index.d.ts +8 -0
  87. package/lib/src/components/ResourceSelect/index.d.ts +12 -0
  88. package/lib/src/components/ResourceTable/index.d.ts +9 -0
  89. package/lib/src/components/ResourceUsageBar/index.d.ts +8 -0
  90. package/lib/src/components/Separator/index.d.ts +2 -0
  91. package/lib/src/components/ServiceComponents/index.d.ts +10 -0
  92. package/lib/src/components/Shell/ShellToolbar.d.ts +16 -0
  93. package/lib/src/components/Shell/index.d.ts +74 -0
  94. package/lib/src/components/ShowContent/ShowContent.d.ts +18 -0
  95. package/lib/src/components/ShowContent/fields.d.ts +76 -0
  96. package/lib/src/components/ShowContent/groups.d.ts +24 -0
  97. package/lib/src/components/ShowContent/index.d.ts +4 -0
  98. package/lib/src/components/ShowContent/tabs.d.ts +5 -0
  99. package/lib/src/components/StateTag/StateTag.d.ts +10 -0
  100. package/lib/src/components/StateTag/index.d.ts +1 -0
  101. package/lib/src/components/Table/TableToolBar.d.ts +8 -0
  102. package/lib/src/components/Table/TableWidgets.d.ts +6 -0
  103. package/lib/src/components/Table/index.d.ts +43 -0
  104. package/lib/src/components/Tabs/index.d.ts +10 -0
  105. package/lib/src/components/Tags/index.d.ts +6 -0
  106. package/lib/src/components/TextTags/index.d.ts +6 -0
  107. package/lib/src/components/Time/index.d.ts +8 -0
  108. package/lib/src/components/ValueDisplay/index.d.ts +9 -0
  109. package/lib/src/components/WorkloadDropdown/index.d.ts +9 -0
  110. package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +9 -0
  111. package/lib/src/components/WorkloadPodsTable/index.d.ts +1 -0
  112. package/lib/src/components/WorkloadReplicas/index.d.ts +17 -0
  113. package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.d.ts +9 -0
  114. package/lib/src/components/YamlEditor/MonacoYamlEditor.d.ts +19 -0
  115. package/lib/src/components/YamlEditor/YamlEditorComponent.d.ts +27 -0
  116. package/lib/src/components/YamlEditor/index.d.ts +1 -0
  117. package/lib/src/components/YamlEditor/style.d.ts +11 -0
  118. package/lib/src/components/YamlEditor/yaml.worker.d.ts +1 -0
  119. package/lib/src/components/index.d.ts +49 -0
  120. package/lib/src/constants/auth.d.ts +5 -0
  121. package/lib/src/constants/index.d.ts +3 -0
  122. package/lib/src/constants/k8s.d.ts +522 -0
  123. package/lib/src/constants/state.d.ts +15 -0
  124. package/lib/src/contexts/component.d.ts +8 -0
  125. package/lib/src/contexts/configs.d.ts +4 -0
  126. package/lib/src/contexts/global-store.d.ts +6 -0
  127. package/lib/src/contexts/index.d.ts +3 -0
  128. package/lib/src/hooks/index.d.ts +8 -0
  129. package/lib/src/hooks/useDeleteModal/index.d.ts +1 -0
  130. package/lib/src/hooks/useDeleteModal/useDeleteManyModal.d.ts +8 -0
  131. package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +7 -0
  132. package/lib/src/hooks/useDownloadYAML.d.ts +7 -0
  133. package/lib/src/hooks/useEagleTable/columns.d.ts +47 -0
  134. package/lib/src/hooks/useEagleTable/index.d.ts +2 -0
  135. package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +56 -0
  136. package/lib/src/hooks/useEdit.d.ts +4 -0
  137. package/lib/src/hooks/useGlobalStore.d.ts +3 -0
  138. package/lib/src/hooks/useK8sYamlEditor.d.ts +5 -0
  139. package/lib/src/hooks/useNamespaceRefineFilter.d.ts +5 -0
  140. package/lib/src/hooks/useOpenForm.d.ts +8 -0
  141. package/lib/src/hooks/useSchema.d.ts +21 -0
  142. package/lib/src/hooks/useSubmitForm.d.ts +14 -0
  143. package/lib/src/hooks/useTableData.d.ts +20 -0
  144. package/lib/src/i18n.d.ts +371 -0
  145. package/lib/src/index.d.ts +12 -0
  146. package/lib/src/locales/en-US/index.d.ts +175 -0
  147. package/lib/src/locales/index.d.ts +2 -0
  148. package/lib/src/locales/zh-CN/index.d.ts +193 -0
  149. package/lib/src/main.d.ts +3 -0
  150. package/lib/src/models/cronjob-model.d.ts +15 -0
  151. package/lib/src/models/daemonset-model.d.ts +15 -0
  152. package/lib/src/models/deployment-model.d.ts +13 -0
  153. package/lib/src/models/event-model.d.ts +7 -0
  154. package/lib/src/models/index.d.ts +19 -0
  155. package/lib/src/models/ingress-model.d.ts +20 -0
  156. package/lib/src/models/job-model.d.ts +20 -0
  157. package/lib/src/models/network-policy-model.d.ts +9 -0
  158. package/lib/src/models/node-model.d.ts +17 -0
  159. package/lib/src/models/persistent-volume-claim.d.ts +13 -0
  160. package/lib/src/models/persistent-volume.d.ts +13 -0
  161. package/lib/src/models/pod-metrics-model.d.ts +8 -0
  162. package/lib/src/models/pod-model.d.ts +20 -0
  163. package/lib/src/models/resource-model.d.ts +21 -0
  164. package/lib/src/models/service-model.d.ts +24 -0
  165. package/lib/src/models/statefulset-model.d.ts +13 -0
  166. package/lib/src/models/storage-class.d.ts +16 -0
  167. package/lib/src/models/types/index.d.ts +1 -0
  168. package/lib/src/models/types/metric.d.ts +25 -0
  169. package/lib/src/models/workload-base-model.d.ts +12 -0
  170. package/lib/src/models/workload-model.d.ts +18 -0
  171. package/lib/src/pages/configmaps/index.d.ts +4 -0
  172. package/lib/src/pages/cronjobs/create/index.d.ts +3 -0
  173. package/lib/src/pages/cronjobs/index.d.ts +3 -0
  174. package/lib/src/pages/cronjobs/list/index.d.ts +3 -0
  175. package/lib/src/pages/cronjobs/show/index.d.ts +3 -0
  176. package/lib/src/pages/daemonsets/create/index.d.ts +3 -0
  177. package/lib/src/pages/daemonsets/index.d.ts +3 -0
  178. package/lib/src/pages/daemonsets/list/index.d.ts +3 -0
  179. package/lib/src/pages/daemonsets/show/index.d.ts +3 -0
  180. package/lib/src/pages/deployments/index.d.ts +2 -0
  181. package/lib/src/pages/deployments/list/index.d.ts +3 -0
  182. package/lib/src/pages/deployments/show/index.d.ts +3 -0
  183. package/lib/src/pages/ingresses/index.d.ts +4 -0
  184. package/lib/src/pages/jobs/index.d.ts +4 -0
  185. package/lib/src/pages/networkPolicies/index.d.ts +4 -0
  186. package/lib/src/pages/nodes/index.d.ts +2 -0
  187. package/lib/src/pages/nodes/list/index.d.ts +3 -0
  188. package/lib/src/pages/nodes/show/index.d.ts +3 -0
  189. package/lib/src/pages/persistentvolumeclaims/index.d.ts +4 -0
  190. package/lib/src/pages/persistentvolumes/index.d.ts +4 -0
  191. package/lib/src/pages/pods/create/index.d.ts +3 -0
  192. package/lib/src/pages/pods/index.d.ts +3 -0
  193. package/lib/src/pages/pods/list/index.d.ts +3 -0
  194. package/lib/src/pages/pods/show/index.d.ts +3 -0
  195. package/lib/src/pages/secrets/index.d.ts +4 -0
  196. package/lib/src/pages/services/index.d.ts +4 -0
  197. package/lib/src/pages/statefulsets/index.d.ts +4 -0
  198. package/lib/src/pages/storageclasses/form/index.d.ts +9 -0
  199. package/lib/src/pages/storageclasses/index.d.ts +48 -0
  200. package/lib/src/plugins/index.d.ts +4 -0
  201. package/lib/src/plugins/model-plugin.d.ts +13 -0
  202. package/lib/src/plugins/relation-plugin.d.ts +26 -0
  203. package/lib/src/plugins/type.d.ts +8 -0
  204. package/lib/src/providers/index.d.ts +1 -0
  205. package/lib/src/providers/router-provider/index.d.ts +21 -0
  206. package/lib/src/styles/button.d.ts +1 -0
  207. package/lib/src/styles/modal.d.ts +1 -0
  208. package/lib/src/types/index.d.ts +1 -0
  209. package/lib/src/types/resource.d.ts +62 -0
  210. package/lib/src/utils/addId.d.ts +3 -0
  211. package/lib/src/utils/download.d.ts +1 -0
  212. package/lib/src/utils/error.d.ts +20 -0
  213. package/lib/src/utils/form.d.ts +3 -0
  214. package/lib/src/utils/index.d.ts +1 -0
  215. package/lib/src/utils/k8s.d.ts +3 -0
  216. package/lib/src/utils/labels.d.ts +9 -0
  217. package/lib/src/utils/match-selector.d.ts +3 -0
  218. package/lib/src/utils/openapi.d.ts +40 -0
  219. package/lib/src/utils/schema.d.ts +18 -0
  220. package/lib/src/utils/selector.d.ts +3 -0
  221. package/lib/src/utils/shell.d.ts +16 -0
  222. package/lib/src/utils/storage.d.ts +13 -0
  223. package/lib/src/utils/string.d.ts +1 -0
  224. package/lib/src/utils/time.d.ts +13 -0
  225. package/lib/src/utils/unit.d.ts +12 -0
  226. package/lib/src/utils/yaml.d.ts +2 -0
  227. package/lib/utils/string.d.ts +1 -0
  228. package/lib/vite.config.d.ts +2 -0
  229. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { WorkloadModel, JobModel } from '../../models';
3
+ interface WorkloadReplicasFormProps {
4
+ defaultValue: number;
5
+ record: WorkloadModel;
6
+ label: string;
7
+ }
8
+ interface WorkloadReplicasFormHandler {
9
+ submit: () => Promise<unknown> | undefined;
10
+ }
11
+ export declare const WorkloadReplicasForm: React.ForwardRefExoticComponent<WorkloadReplicasFormProps & React.RefAttributes<WorkloadReplicasFormHandler>>;
12
+ export interface WorkloadReplicasProps {
13
+ record: WorkloadModel | JobModel;
14
+ editable?: boolean;
15
+ }
16
+ export declare function WorkloadReplicas({ record, editable }: WorkloadReplicasProps): JSX.Element;
17
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ id?: string;
4
+ origin: string;
5
+ height?: string;
6
+ modified: string;
7
+ };
8
+ declare const MonacoYamlDiffEditor: React.FC<Props>;
9
+ export default MonacoYamlDiffEditor;
@@ -0,0 +1,19 @@
1
+ import { type JSONSchema7 } from 'json-schema';
2
+ import * as monaco from 'monaco-editor';
3
+ import React from 'react';
4
+ type Props = {
5
+ className?: string;
6
+ id?: string;
7
+ defaultValue: string;
8
+ height?: string;
9
+ onChange?: (val: string) => void;
10
+ onValidate?: (valid: boolean, schemaValid: boolean) => void;
11
+ isScrollOnFocus?: boolean;
12
+ onEditorCreate?: (editor: monaco.editor.IStandaloneCodeEditor) => void;
13
+ onBlur?: () => void;
14
+ getInstance?: (ins: monaco.editor.IStandaloneCodeEditor) => void;
15
+ schemas?: JSONSchema7[] | null;
16
+ readOnly?: boolean;
17
+ };
18
+ declare const MonacoYamlEditor: React.FC<Props>;
19
+ export default MonacoYamlEditor;
@@ -0,0 +1,27 @@
1
+ import { JSONSchema7 } from 'json-schema';
2
+ import type * as monaco from 'monaco-editor';
3
+ import React from 'react';
4
+ export type YamlEditorProps = {
5
+ eleRef?: React.MutableRefObject<HTMLDivElement>;
6
+ title?: string;
7
+ defaultValue?: string;
8
+ errorMsgs?: string[];
9
+ schemas?: JSONSchema7[] | null;
10
+ id?: string;
11
+ className?: string;
12
+ height?: string;
13
+ collapsable?: boolean;
14
+ isDefaultCollapsed?: boolean;
15
+ readOnly?: boolean;
16
+ onChange?: (value: string) => void;
17
+ onValidate?: (valid: boolean, schemaValid: boolean) => void;
18
+ onEditorCreate?: (editor: monaco.editor.IStandaloneCodeEditor) => void;
19
+ onBlur?: () => void;
20
+ };
21
+ export type YamlEditorHandle = {
22
+ setValue: (value: string) => void;
23
+ setEditorValue: (value: string) => void;
24
+ getEditorValue: () => string;
25
+ getEditorInstance: () => monaco.editor.IStandaloneCodeEditor | null;
26
+ };
27
+ export declare const YamlEditorComponent: React.ForwardRefExoticComponent<YamlEditorProps & React.RefAttributes<YamlEditorHandle>>;
@@ -0,0 +1 @@
1
+ export * from './YamlEditorComponent';
@@ -0,0 +1,11 @@
1
+ export declare const ToolBarStyle: import("@linaria/core").LinariaClassName;
2
+ export declare const ToolBarHeaderStyle: import("@linaria/core").LinariaClassName;
3
+ export declare const ErrorIconStyle: import("@linaria/core").LinariaClassName;
4
+ export declare const WrapperStyle: import("@linaria/core").LinariaClassName;
5
+ export declare const TitleStyle: import("@linaria/core").LinariaClassName;
6
+ export declare const IconStyle: import("@linaria/core").LinariaClassName;
7
+ export declare const DisabledIconStyle: import("@linaria/core").LinariaClassName;
8
+ export declare const PlainCodeStyle: import("@linaria/core").LinariaClassName;
9
+ export declare const ErrorMsgStyle: import("@linaria/core").LinariaClassName;
10
+ export declare const ErrorWrapperStyle: import("@linaria/core").LinariaClassName;
11
+ export declare const YamlEditorStyle: import("@linaria/core").LinariaClassName;
@@ -0,0 +1 @@
1
+ import 'monaco-yaml/yaml.worker.js';
@@ -0,0 +1,49 @@
1
+ export * from './Breadcrumb';
2
+ export * from './FormWidgets';
3
+ export * from './PageShow';
4
+ export * from './Time';
5
+ export * from './ConditionsTable';
6
+ export * from './FormLayout';
7
+ export * from './FormErrorAlert';
8
+ export * from './PodContainersTable';
9
+ export * from './WorkloadDropdown';
10
+ export * from './ReplicasDropdown';
11
+ export * from './PodDropdown';
12
+ export * from './CreateButton';
13
+ export * from './ImageNames';
14
+ export * from './ResourceCRUD';
15
+ export * from './WorkloadPodsTable';
16
+ export * from './CronJobDropdown';
17
+ export * from './K8sDropdown';
18
+ export * from './ResourceUsageBar';
19
+ export * from './WorkloadReplicas';
20
+ export * from './CronjobJobsTable';
21
+ export * from './KeyValue';
22
+ export * from './Separator';
23
+ export * from './YamlEditor';
24
+ export * from './DeleteButton';
25
+ export * from './Layout';
26
+ export * from './ShowContent';
27
+ export * from './DeleteManyButton';
28
+ export * from './ListPage';
29
+ export * from './StateTag';
30
+ export * from './DrawerShow';
31
+ export * from './Menu';
32
+ export * from './Table';
33
+ export * from './EditButton';
34
+ export * from './ReferenceLink';
35
+ export * from './ResourceLink';
36
+ export * from './NamespacesFilter';
37
+ export * from './Form';
38
+ export * from './ServiceComponents';
39
+ export * from './Tags';
40
+ export * from './TextTags';
41
+ export * from './PodLog';
42
+ export * from './NetworkPolicyRulesViewer';
43
+ export * from './ResourceFiledDisplays';
44
+ export * from './Tabs';
45
+ export * as ValueDisplay from './ValueDisplay';
46
+ export * from './ResourceSelect';
47
+ export * from './Shell';
48
+ export * from './PodShellModal';
49
+ export * from './ResourceTable';
@@ -0,0 +1,5 @@
1
+ export declare enum AccessControlAuth {
2
+ Edit = "Edit",
3
+ Delete = "Delete",
4
+ Create = "Create"
5
+ }
@@ -0,0 +1,3 @@
1
+ export * from './k8s';
2
+ export * from './state';
3
+ export * from './auth';
@@ -0,0 +1,522 @@
1
+ export declare const BASE_INIT_VALUE: {
2
+ metadata: {
3
+ name: string;
4
+ namespace: string;
5
+ annotations: {};
6
+ labels: {};
7
+ };
8
+ };
9
+ export declare const DEPLOYMENT_INIT_VALUE: {
10
+ apiVersion: string;
11
+ kind: string;
12
+ metadata: {
13
+ name: string;
14
+ namespace: string;
15
+ };
16
+ spec: {
17
+ selector: {
18
+ matchLabels: {
19
+ app: string;
20
+ };
21
+ };
22
+ replicas: number;
23
+ template: {
24
+ metadata: {
25
+ labels: {
26
+ app: string;
27
+ };
28
+ };
29
+ spec: {
30
+ containers: {
31
+ name: string;
32
+ image: string;
33
+ ports: {
34
+ containerPort: number;
35
+ protocol: string;
36
+ }[];
37
+ }[];
38
+ };
39
+ };
40
+ strategy: {
41
+ type: string;
42
+ rollingUpdate: {
43
+ maxSurge: string;
44
+ maxUnavailable: string;
45
+ };
46
+ };
47
+ };
48
+ };
49
+ export declare const CRONJOB_INIT_VALUE: {
50
+ apiVersion: string;
51
+ kind: string;
52
+ metadata: {
53
+ name: string;
54
+ namespace: string;
55
+ };
56
+ spec: {
57
+ schedule: string;
58
+ jobTemplate: {
59
+ spec: {
60
+ template: {
61
+ spec: {
62
+ containers: {
63
+ name: string;
64
+ image: string;
65
+ args: string[];
66
+ }[];
67
+ restartPolicy: string;
68
+ };
69
+ };
70
+ };
71
+ };
72
+ };
73
+ };
74
+ export declare const DAEMONSET_INIT_VALUE: {
75
+ apiVersion: string;
76
+ kind: string;
77
+ metadata: {
78
+ name: string;
79
+ namespace: string;
80
+ };
81
+ spec: {
82
+ selector: {
83
+ matchLabels: {
84
+ app: string;
85
+ };
86
+ };
87
+ template: {
88
+ metadata: {
89
+ labels: {
90
+ app: string;
91
+ };
92
+ };
93
+ spec: {
94
+ containers: {
95
+ name: string;
96
+ image: string;
97
+ ports: {
98
+ containerPort: number;
99
+ }[];
100
+ }[];
101
+ };
102
+ };
103
+ };
104
+ };
105
+ export declare const JOB_INIT_VALUE: {
106
+ apiVersion: string;
107
+ kind: string;
108
+ metadata: {
109
+ name: string;
110
+ namespace: string;
111
+ };
112
+ spec: {
113
+ selector: {};
114
+ template: {
115
+ metadata: {
116
+ name: string;
117
+ };
118
+ spec: {
119
+ containers: {
120
+ name: string;
121
+ image: string;
122
+ command: string[];
123
+ }[];
124
+ restartPolicy: string;
125
+ };
126
+ };
127
+ };
128
+ };
129
+ export declare const STATEFULSET_INIT_VALUE: {
130
+ apiVersion: "apps/v1";
131
+ kind: "StatefulSet";
132
+ metadata: {
133
+ name: string;
134
+ namespace: string;
135
+ };
136
+ spec: {
137
+ serviceName: string;
138
+ replicas: number;
139
+ selector: {
140
+ matchLabels: {
141
+ app: string;
142
+ };
143
+ };
144
+ template: {
145
+ metadata: {
146
+ labels: {
147
+ app: string;
148
+ };
149
+ };
150
+ spec: {
151
+ terminationGracePeriodSeconds: number;
152
+ containers: {
153
+ name: string;
154
+ image: string;
155
+ command: string[];
156
+ args: string[];
157
+ ports: {
158
+ containerPort: number;
159
+ name: string;
160
+ }[];
161
+ volumeMounts: {
162
+ name: string;
163
+ mountPath: string;
164
+ }[];
165
+ }[];
166
+ };
167
+ };
168
+ volumeClaimTemplates: {
169
+ metadata: {
170
+ name: string;
171
+ };
172
+ spec: {
173
+ accessModes: string[];
174
+ resources: {
175
+ requests: {
176
+ storage: string;
177
+ };
178
+ };
179
+ };
180
+ }[];
181
+ };
182
+ };
183
+ export declare const POD_INIT_VALUE: {
184
+ apiVersion: string;
185
+ kind: string;
186
+ metadata: {
187
+ name: string;
188
+ namespace: string;
189
+ labels: {
190
+ app: string;
191
+ };
192
+ };
193
+ spec: {
194
+ securityContext: {
195
+ runAsNonRoot: boolean;
196
+ seccompProfile: {
197
+ type: string;
198
+ };
199
+ };
200
+ containers: {
201
+ name: string;
202
+ image: string;
203
+ ports: {
204
+ containerPort: number;
205
+ }[];
206
+ securityContext: {
207
+ allowPrivilegeEscalation: boolean;
208
+ capabilities: {
209
+ drop: string[];
210
+ };
211
+ };
212
+ }[];
213
+ };
214
+ };
215
+ export declare const SERVICE_CLUSTER_IP_INIT_VALUE: {
216
+ apiVersion: string;
217
+ kind: string;
218
+ metadata: {
219
+ name: string;
220
+ namespace: string;
221
+ };
222
+ spec: {
223
+ selector: {
224
+ app: string;
225
+ };
226
+ ports: {
227
+ name: string;
228
+ port: number;
229
+ protocol: string;
230
+ targetPort: number;
231
+ }[];
232
+ sessionAffinity: string;
233
+ type: string;
234
+ };
235
+ };
236
+ export declare const SERVICE_NODE_PORT_INIT_VALUE: {
237
+ apiVersion: string;
238
+ kind: string;
239
+ metadata: {
240
+ name: string;
241
+ namespace: string;
242
+ };
243
+ spec: {
244
+ selector: {
245
+ app: string;
246
+ };
247
+ ports: {
248
+ name: string;
249
+ port: number;
250
+ protocol: string;
251
+ targetPort: number;
252
+ }[];
253
+ sessionAffinity: string;
254
+ type: string;
255
+ };
256
+ };
257
+ export declare const SERVICE_LOAD_BALANCER_INIT_VALUE: {
258
+ apiVersion: string;
259
+ kind: string;
260
+ metadata: {
261
+ name: string;
262
+ namespace: string;
263
+ };
264
+ spec: {
265
+ selector: {
266
+ app: string;
267
+ };
268
+ ports: {
269
+ name: string;
270
+ port: number;
271
+ protocol: string;
272
+ targetPort: number;
273
+ }[];
274
+ sessionAffinity: string;
275
+ type: string;
276
+ };
277
+ };
278
+ export declare const SERVICE_EXTERNAL_NAME_INIT_VALUE: {
279
+ apiVersion: string;
280
+ kind: string;
281
+ metadata: {
282
+ name: string;
283
+ namespace: string;
284
+ };
285
+ spec: {
286
+ selector: {
287
+ app: string;
288
+ };
289
+ ports: {
290
+ name: string;
291
+ port: number;
292
+ protocol: string;
293
+ targetPort: number;
294
+ }[];
295
+ sessionAffinity: string;
296
+ type: string;
297
+ externalName: string;
298
+ };
299
+ };
300
+ export declare const SERVICE_HEADLESS_INIT_VALUE: {
301
+ apiVersion: string;
302
+ kind: string;
303
+ metadata: {
304
+ name: string;
305
+ namespace: string;
306
+ };
307
+ spec: {
308
+ selector: {
309
+ app: string;
310
+ };
311
+ clusterIP: string;
312
+ ports: {
313
+ name: string;
314
+ port: null;
315
+ protocol: string;
316
+ targetPort: null;
317
+ }[];
318
+ sessionAffinity: string;
319
+ type: string;
320
+ };
321
+ };
322
+ export declare const INGRESS_INIT_VALUE: {
323
+ apiVersion: string;
324
+ kind: string;
325
+ metadata: {
326
+ name: string;
327
+ namespace: string;
328
+ };
329
+ spec: {
330
+ rules: {
331
+ host: string;
332
+ http: {
333
+ paths: {
334
+ path: string;
335
+ pathType: string;
336
+ backend: {
337
+ service: {
338
+ name: string;
339
+ port: {
340
+ number: number;
341
+ };
342
+ };
343
+ };
344
+ }[];
345
+ };
346
+ }[];
347
+ };
348
+ };
349
+ export declare const NETWORK_POLICY_INIT_VALUE: {
350
+ apiVersion: string;
351
+ kind: string;
352
+ metadata: {
353
+ name: string;
354
+ namespace: string;
355
+ };
356
+ spec: {
357
+ podSelector: {};
358
+ policyTypes: never[];
359
+ };
360
+ };
361
+ export declare const CONFIG_MAP_INIT_VALUE: {
362
+ apiVersion: string;
363
+ kind: string;
364
+ metadata: {
365
+ name: string;
366
+ namespace: string;
367
+ };
368
+ data: {
369
+ key: string;
370
+ };
371
+ immutable: boolean;
372
+ };
373
+ export declare const SERVER_INSTANCE_INIT_VALUE: {
374
+ spec: {
375
+ address: {
376
+ host: string;
377
+ port: number;
378
+ protocol: string;
379
+ credentials: {
380
+ ssh: {
381
+ username: string;
382
+ password: string;
383
+ };
384
+ };
385
+ };
386
+ };
387
+ metadata: {
388
+ name: string;
389
+ namespace: string;
390
+ annotations: {};
391
+ labels: {};
392
+ };
393
+ apiVersion: string;
394
+ kind: string;
395
+ };
396
+ export declare const TIMESTAMP_LABEL = "sks.user.kubesmart.smtx.io/timestamp";
397
+ export declare const SECRET_OPAQUE_INIT_VALUE: {
398
+ apiVersion: string;
399
+ kind: string;
400
+ metadata: {
401
+ name: string;
402
+ namespace: string;
403
+ };
404
+ type: string;
405
+ data: {
406
+ key: string;
407
+ };
408
+ };
409
+ export declare const SECRET_IMAGE_REPO_INIT_VALUE: {
410
+ apiVersion: string;
411
+ kind: string;
412
+ metadata: {
413
+ name: string;
414
+ namespace: string;
415
+ };
416
+ type: string;
417
+ data: {
418
+ '.dockerconfigjson': string;
419
+ };
420
+ };
421
+ export declare const SECRET_BASIC_AUTH_INIT_VALUE: {
422
+ apiVersion: string;
423
+ kind: string;
424
+ metadata: {
425
+ name: string;
426
+ namespace: string;
427
+ };
428
+ type: string;
429
+ data: {
430
+ username: string;
431
+ password: string;
432
+ };
433
+ };
434
+ export declare const SECRET_SSH_AUTH_INIT_VALUE: {
435
+ apiVersion: string;
436
+ kind: string;
437
+ metadata: {
438
+ name: string;
439
+ namespace: string;
440
+ };
441
+ type: string;
442
+ data: {
443
+ 'ssh-publickey': string;
444
+ 'ssh-privatekey': string;
445
+ };
446
+ };
447
+ export declare const SECRET_TLS_INIT_VALUE: {
448
+ apiVersion: string;
449
+ kind: string;
450
+ metadata: {
451
+ name: string;
452
+ namespace: string;
453
+ };
454
+ type: string;
455
+ data: {
456
+ 'tls.crt': string;
457
+ 'tls.key': string;
458
+ };
459
+ };
460
+ export declare const SECRET_CUSTOM_INIT_VALUE: {
461
+ apiVersion: string;
462
+ kind: string;
463
+ metadata: {
464
+ name: string;
465
+ namespace: string;
466
+ };
467
+ type: string;
468
+ data: {};
469
+ };
470
+ export declare const NODE_INIT_VALUE: {
471
+ apiVersion: string;
472
+ kind: string;
473
+ metadata: {
474
+ name: string;
475
+ namespace: string;
476
+ };
477
+ spec: {};
478
+ };
479
+ export declare const STORAGE_CLASS_INIT_VALUE: {
480
+ apiVersion: string;
481
+ kind: string;
482
+ metadata: {
483
+ name: string;
484
+ };
485
+ parameters: {};
486
+ provisioner: string;
487
+ reclaimPolicy: string;
488
+ allowVolumeExpansion: boolean;
489
+ volumeBindingMode: string;
490
+ };
491
+ export declare const PV_INIT_VALUE: {
492
+ apiVersion: string;
493
+ kind: string;
494
+ metadata: {
495
+ name: string;
496
+ };
497
+ spec: {
498
+ accessModes: string[];
499
+ capacity: {
500
+ storage: string;
501
+ };
502
+ persistentVolumeReclaimPolicy: string;
503
+ volumeMode: string;
504
+ };
505
+ };
506
+ export declare const PVC_INIT_VALUE: {
507
+ apiVersion: string;
508
+ kind: string;
509
+ metadata: {
510
+ name: string;
511
+ namespace: string;
512
+ };
513
+ spec: {
514
+ accessModes: string[];
515
+ resources: {
516
+ requests: {
517
+ storage: string;
518
+ };
519
+ };
520
+ storageClassName: string;
521
+ };
522
+ };
@@ -0,0 +1,15 @@
1
+ export declare enum WorkloadState {
2
+ Terminated = "terminated",
3
+ UPDATING = "updating",
4
+ READY = "ready",
5
+ COMPLETED = "completed",
6
+ FAILED = "failed",
7
+ SUSPENDED = "suspended",
8
+ RUNNING = "running",
9
+ SUCCEEDED = "succeeded",
10
+ UNKNOWN = "unknown",
11
+ TERMINATING = "terminating",
12
+ PENDING = "pending",
13
+ WAITING = "waiting",
14
+ STOPPED = "stopped"
15
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import Table from 'src/components/Table';
3
+ import { Tabs } from 'src/components/Tabs';
4
+ declare const ComponentContext: import("react").Context<{
5
+ Table?: typeof Table | undefined;
6
+ Tabs?: typeof Tabs | undefined;
7
+ }>;
8
+ export default ComponentContext;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ResourceConfig } from 'src/types';
3
+ declare const ConfigsContext: import("react").Context<Record<string, ResourceConfig>>;
4
+ export default ConfigsContext;