@devtron-labs/devtron-fe-common-lib 1.5.0 → 1.5.1-beta-1
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.
- package/dist/{@code-editor-BhKgnbkm.js → @code-editor-nJMq__nd.js} +8157 -6868
- package/dist/{@common-rjsf-DIkXvOXb.js → @common-rjsf-D_HM1zib.js} +102 -90
- package/dist/{@framer-motion-CdgdF0KV.js → @framer-motion-CtC3e2uC.js} +1 -1
- package/dist/{@react-dates-CtQV2TLr.js → @react-dates-BlBjJ115.js} +31 -31
- package/dist/{@react-select-Cn3OpC9h.js → @react-select-CjYy5-X-.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CVJYfMx0.js → @react-virtualized-sticky-tree-DCAYOwGQ.js} +1 -1
- package/dist/{@vendor-CwAQS8iU.js → @vendor-CB7cq1II.js} +10317 -9365
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +7 -7
- package/dist/Common/CodeEditor/types.d.ts +9 -10
- package/dist/Common/CodeEditor/utils.d.ts +3 -0
- package/dist/Common/Constants.d.ts +6 -0
- package/dist/Common/MultiSelectCustomization.d.ts +2 -0
- package/dist/Common/RJSF/utils.d.ts +3 -0
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
- package/dist/Common/SegmentedControl/constants.d.ts +2 -0
- package/dist/Common/SegmentedControl/types.d.ts +7 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraUtilityContext.d.ts +3 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +7 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +115 -51
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +5 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +11 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +2 -0
- package/dist/Shared/Components/CICDHistory/types.d.ts +0 -2
- package/dist/Shared/Components/CMCS/ConfigMapSecretReadyOnly.d.ts +3 -0
- package/dist/Shared/Components/CMCS/constants.d.ts +23 -0
- package/dist/Shared/Components/CMCS/helpers.d.ts +1 -0
- package/dist/Shared/Components/CMCS/index.d.ts +6 -0
- package/dist/Shared/Components/CMCS/types.d.ts +24 -0
- package/dist/Shared/Components/CMCS/utils.d.ts +17 -0
- package/dist/Shared/Components/CMCS/validations.d.ts +3 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +5 -0
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +4 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +4 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionItem.d.ts +3 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/Suggestions.d.ts +3 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionsInfo.d.ts +2 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/constants.d.ts +7 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/index.d.ts +1 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +2 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +39 -0
- package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +1 -1
- package/dist/Shared/Components/Plugin/types.d.ts +2 -2
- package/dist/Shared/Components/Plugin/utils.d.ts +0 -16
- package/dist/Shared/Components/ReactSelect/constants.d.ts +1 -0
- package/dist/Shared/Components/ReactSelect/utils.d.ts +6 -0
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +8 -8
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +3 -0
- package/dist/Shared/Components/ThemeSwitcher/constants.d.ts +6 -0
- package/dist/Shared/Components/ThemeSwitcher/index.d.ts +1 -0
- package/dist/Shared/Components/ThemeSwitcher/types.d.ts +3 -0
- package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +3 -0
- package/dist/Shared/Components/ToggleResolveScopedVariables/index.d.ts +1 -0
- package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +10 -0
- package/dist/Shared/Components/UnsavedChanges/UnsavedChanges.component.d.ts +2 -0
- package/dist/Shared/Components/UnsavedChanges/index.d.ts +1 -0
- package/dist/Shared/Components/UnsavedChangesDialog/UnsavedChangesDialog.component.d.ts +3 -0
- package/dist/Shared/Components/UnsavedChangesDialog/index.d.ts +1 -0
- package/dist/Shared/Components/UnsavedChangesDialog/types.d.ts +5 -0
- package/dist/Shared/Components/index.d.ts +5 -0
- package/dist/Shared/Hooks/useForm/useForm.d.ts +7 -2
- package/dist/Shared/Providers/ThemeProvider/ThemeProvider.d.ts +3 -0
- package/dist/Shared/Providers/ThemeProvider/constants.d.ts +2 -0
- package/dist/Shared/Providers/ThemeProvider/index.d.ts +2 -0
- package/dist/Shared/Providers/ThemeProvider/types.d.ts +33 -0
- package/dist/Shared/Providers/ThemeProvider/utils.d.ts +4 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/Services/app.types.d.ts +72 -1
- package/dist/Shared/Services/index.d.ts +1 -0
- package/dist/Shared/validations.d.ts +4 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-laptop.485e21b4.svg +3 -0
- package/dist/assets/ic-moon.17d37c40.svg +3 -0
- package/dist/assets/{ic-nav-rocket.9e50bb61.svg → ic-nav-rocket.433c9706.svg} +1 -1
- package/dist/assets/{ic-rotate-devtron.200e165b.svg → ic-rotate-devtron.5a8363d8.svg} +87 -86
- package/dist/assets/ic-sun.33e8214b.svg +3 -0
- package/dist/assets/ic-view-variable-toggle.93c3599f.svg +19 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +723 -688
- package/package.json +3 -3
- package/dist/assets/ic-view-variable-toggle.c335dfa0.svg +0 -24
@@ -1,16 +1,16 @@
|
|
1
1
|
import { MODES } from '../Constants';
|
2
|
-
import { Action, CodeEditorInitialValueType, CodeEditorState
|
2
|
+
import { Action, CodeEditorInitialValueType, CodeEditorState } from './types';
|
3
3
|
export declare const CodeEditorReducer: (state: CodeEditorState, action: Action) => {
|
4
4
|
mode: any;
|
5
5
|
diffMode: boolean;
|
6
|
-
theme: CodeEditorThemesKeys;
|
6
|
+
theme: import('./types').CodeEditorThemesKeys;
|
7
7
|
code: string;
|
8
8
|
defaultCode: string;
|
9
9
|
noParsing: boolean;
|
10
10
|
} | {
|
11
11
|
diffMode: any;
|
12
12
|
mode: MODES;
|
13
|
-
theme: CodeEditorThemesKeys;
|
13
|
+
theme: import('./types').CodeEditorThemesKeys;
|
14
14
|
code: string;
|
15
15
|
defaultCode: string;
|
16
16
|
noParsing: boolean;
|
@@ -25,24 +25,24 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
|
|
25
25
|
code: any;
|
26
26
|
mode: MODES;
|
27
27
|
diffMode: boolean;
|
28
|
-
theme: CodeEditorThemesKeys;
|
28
|
+
theme: import('./types').CodeEditorThemesKeys;
|
29
29
|
defaultCode: string;
|
30
30
|
noParsing: boolean;
|
31
31
|
} | {
|
32
32
|
defaultCode: any;
|
33
33
|
mode: MODES;
|
34
34
|
diffMode: boolean;
|
35
|
-
theme: CodeEditorThemesKeys;
|
35
|
+
theme: import('./types').CodeEditorThemesKeys;
|
36
36
|
code: string;
|
37
37
|
noParsing: boolean;
|
38
38
|
} | {
|
39
39
|
height: any;
|
40
40
|
mode: MODES;
|
41
41
|
diffMode: boolean;
|
42
|
-
theme: CodeEditorThemesKeys;
|
42
|
+
theme: import('./types').CodeEditorThemesKeys;
|
43
43
|
code: string;
|
44
44
|
defaultCode: string;
|
45
45
|
noParsing: boolean;
|
46
46
|
};
|
47
47
|
export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
|
48
|
-
export declare const initialState: ({ mode, theme, value, defaultValue, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
48
|
+
export declare const initialState: ({ mode, theme, value, defaultValue, diffView, noParsing, tabSize, appTheme, }: CodeEditorInitialValueType) => CodeEditorState;
|
@@ -1,9 +1,15 @@
|
|
1
|
+
import { AppThemeType } from '../../Shared/Providers';
|
1
2
|
import { MODES } from '../Constants';
|
2
3
|
export interface InformationBarProps {
|
3
4
|
text: string;
|
4
5
|
className?: string;
|
5
6
|
children?: React.ReactNode;
|
6
7
|
}
|
8
|
+
export declare enum CodeEditorThemesKeys {
|
9
|
+
vsDarkDT = "vs-dark--dt",
|
10
|
+
vs = "vs",
|
11
|
+
networkStatusInterface = "network-status-interface"
|
12
|
+
}
|
7
13
|
interface CodeEditorBaseInterface {
|
8
14
|
value?: string;
|
9
15
|
lineDecorationsWidth?: number;
|
@@ -22,7 +28,7 @@ interface CodeEditorBaseInterface {
|
|
22
28
|
diffView?: boolean;
|
23
29
|
loading?: boolean;
|
24
30
|
customLoader?: JSX.Element;
|
25
|
-
theme?:
|
31
|
+
theme?: CodeEditorThemesKeys;
|
26
32
|
original?: string;
|
27
33
|
focus?: boolean;
|
28
34
|
validatorSchema?: any;
|
@@ -68,21 +74,14 @@ export interface Action {
|
|
68
74
|
type: ActionTypes;
|
69
75
|
value: any;
|
70
76
|
}
|
71
|
-
export
|
72
|
-
vsDarkDT = "vs-dark--dt",
|
73
|
-
deleteDraft = "delete-draft",
|
74
|
-
unpublished = "unpublished",
|
75
|
-
vs = "vs",
|
76
|
-
networkStatusInterface = "network-status-interface"
|
77
|
-
}
|
78
|
-
export interface CodeEditorInitialValueType {
|
77
|
+
export interface CodeEditorInitialValueType extends Pick<CodeEditorBaseInterface, 'theme'> {
|
79
78
|
mode: string;
|
80
79
|
diffView: boolean;
|
81
|
-
theme?: string;
|
82
80
|
value: string;
|
83
81
|
defaultValue: string;
|
84
82
|
noParsing?: boolean;
|
85
83
|
tabSize: number;
|
84
|
+
appTheme: AppThemeType;
|
86
85
|
}
|
87
86
|
export interface CodeEditorState {
|
88
87
|
mode: MODES;
|
@@ -23,6 +23,11 @@ export declare const PATTERNS: {
|
|
23
23
|
ALPHANUMERIC_WITH_SPECIAL_CHAR: RegExp;
|
24
24
|
ESCAPED_CHARACTERS: RegExp;
|
25
25
|
NUMBERS_WITH_SCOPE_VARIABLES: RegExp;
|
26
|
+
ALL_DIGITS_BETWEEN_0_AND_7: RegExp;
|
27
|
+
CONFIG_MAP_AND_SECRET_MULTIPLE_KEYS: RegExp;
|
28
|
+
CONFIG_MAP_AND_SECRET_KEY: RegExp;
|
29
|
+
CONFIGMAP_AND_SECRET_NAME: RegExp;
|
30
|
+
ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: RegExp;
|
26
31
|
};
|
27
32
|
export declare const URLS: {
|
28
33
|
LOGIN_SSO: string;
|
@@ -108,6 +113,7 @@ export declare const ROUTES: {
|
|
108
113
|
FILE_UPLOAD: string;
|
109
114
|
PLUGIN_GLOBAL_VARIABLES: string;
|
110
115
|
CONFIG_COMPARE_SECRET: string;
|
116
|
+
SCOPED_GLOBAL_VARIABLES: string;
|
111
117
|
CD_TRIGGER_POST: string;
|
112
118
|
DELETE_RESOURCE: string;
|
113
119
|
NODE_CAPACITY: string;
|
@@ -23,6 +23,8 @@ export declare const multiSelectStyles: {
|
|
23
23
|
option: (base: any, state: any) => any;
|
24
24
|
container: (base: any, state: any) => any;
|
25
25
|
valueContainer: (base: any, state: any) => any;
|
26
|
+
singleValue: (base: any) => any;
|
27
|
+
input: (base: any) => any;
|
26
28
|
};
|
27
29
|
export interface CustomSelect {
|
28
30
|
sortSelected?: boolean;
|
@@ -13,6 +13,9 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
13
13
|
loadingMessage: (base: any) => any;
|
14
14
|
noOptionsMessage: (base: any) => any;
|
15
15
|
multiValue: (base: any) => any;
|
16
|
+
singleValue: (base: any) => any;
|
17
|
+
input: (base: any) => any;
|
18
|
+
menu: (base: any) => any;
|
16
19
|
};
|
17
20
|
/**
|
18
21
|
* Returns the redirection props for a url
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SegmentedControlProps } from './types';
|
2
|
-
declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, }: SegmentedControlProps) => JSX.Element;
|
2
|
+
declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size, }: SegmentedControlProps) => JSX.Element;
|
3
3
|
export default SegmentedControl;
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { OptionType } from '../Types';
|
2
|
+
import { ComponentSizeType } from '../../Shared/constants';
|
3
|
+
import { ReactNode } from 'react';
|
2
4
|
export declare enum SegmentedControlVariant {
|
3
5
|
GRAY_ON_WHITE = "gui-yaml-switch",
|
4
6
|
WHITE_ON_GRAY = "gui-yaml-switch-window-bg"
|
5
7
|
}
|
6
8
|
export interface SegmentedControlProps {
|
7
|
-
tabs: OptionType[];
|
9
|
+
tabs: OptionType<string, ReactNode>[];
|
8
10
|
initialTab: string;
|
9
11
|
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
10
12
|
name: string;
|
@@ -12,4 +14,8 @@ export interface SegmentedControlProps {
|
|
12
14
|
disabled?: boolean;
|
13
15
|
rootClassName?: string;
|
14
16
|
variant?: SegmentedControlVariant;
|
17
|
+
/**
|
18
|
+
* @default ComponentSizeType.medium
|
19
|
+
*/
|
20
|
+
size?: ComponentSizeType.medium | ComponentSizeType.large;
|
15
21
|
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BuildInfraDescriptorProps } from './types';
|
2
|
-
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, tooltipNode, }: BuildInfraDescriptorProps) => JSX.Element;
|
2
|
+
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, tooltipNode, tooltipHeading, }: BuildInfraDescriptorProps) => JSX.Element;
|
3
3
|
export default Descriptor;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { UseBreadcrumbProps } from '@Common/BreadCrumb/Types';
|
2
|
-
import {
|
2
|
+
import { CMSecretComponentType } from '../../../Shared/index';
|
3
|
+
import { BuildInfraConfigTypes, BuildInfraFormFieldType, BuildInfraLocators, BuildInfraMetaConfigTypes, ProfileInputErrorType, HandleProfileInputChangeType, BuildInfraAPIVersionType, TargetPlatformErrorFields, ValidateRequestLimitType, RequestLimitConfigType, BuildInfraToleranceEffectType, BuildInfraToleranceOperatorType, BuildInfraInheritActionsOnSubValues, InfraConfigWithSubValues } from './types';
|
3
4
|
export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
|
4
5
|
readonly STEP: "any";
|
5
6
|
readonly MIN: 0;
|
@@ -59,4 +60,9 @@ export declare const ACTION_TO_PERSISTED_VALUE_MAP: Readonly<Record<RequestLimit
|
|
59
60
|
export declare const DEFAULT_TOLERANCE_EFFECT = BuildInfraToleranceEffectType.NO_SCHEDULE;
|
60
61
|
export declare const DEFAULT_TOLERANCE_OPERATOR = BuildInfraToleranceOperatorType.EQUALS;
|
61
62
|
export declare const INFRA_CONFIG_NOT_SUPPORTED_BY_BUILD_X: Partial<Record<BuildInfraConfigTypes, true>>;
|
63
|
+
export declare const INFRA_CONFIG_CONTAINING_SUB_VALUES: Record<InfraConfigWithSubValues, true>;
|
64
|
+
export declare const INFRA_CONFIG_TO_CM_SECRET_COMPONENT_TYPE_MAP: Partial<Record<BuildInfraConfigTypes, CMSecretComponentType>>;
|
65
|
+
export declare const CM_SECRET_COMPONENT_TYPE_TO_INFRA_CONFIG_MAP: Partial<Record<CMSecretComponentType, InfraConfigWithSubValues>>;
|
66
|
+
export declare const CM_SECRET_COMPONENT_TYPE_TO_LOCATOR_MAP: Partial<Record<CMSecretComponentType, BuildInfraLocators.CONFIG_MAP | BuildInfraLocators.SECRET>>;
|
62
67
|
export declare const USE_BUILD_X_DRIVER_FALLBACK = true;
|
68
|
+
export declare const BUILD_INFRA_SUB_VALUES_INHERIT_ACTIONS: Record<BuildInfraInheritActionsOnSubValues, true>;
|
@@ -5,6 +5,7 @@ export { default as BuildInfraProfileNameField } from './BuildInfraProfileNameFi
|
|
5
5
|
export { default as BuildInfraProfileDescriptionField } from './BuildInfraDescriptionField';
|
6
6
|
export { default as BuildInfraFormAction } from './BuildInfraFormAction';
|
7
7
|
export { default as useBuildInfraForm } from './UseBuildInfraForm';
|
8
|
+
export * from './BuildInfraUtilityContext';
|
8
9
|
export * from './services';
|
9
10
|
export * from './utils';
|
10
11
|
export * from './types';
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import { BuildInfraPayloadType } from '../../index';
|
1
2
|
import { BuildInfraProfileResponseType, GetBuildInfraProfileType, UpsertBuildInfraProfileServiceParamsType } from './types';
|
2
3
|
export declare const getBuildInfraProfileByName: ({ name, fromCreateView, canConfigureUseK8sDriver, }: GetBuildInfraProfileType) => Promise<BuildInfraProfileResponseType>;
|
4
|
+
export declare const createBuildInfraProfileService: (payload: BuildInfraPayloadType) => Promise<import('../../../Common').ResponseType<Promise<import('../../../Common').ResponseType<unknown>>>>;
|
3
5
|
export declare const upsertBuildInfraProfile: ({ name, profileInput, canConfigureUseK8sDriver, }: UpsertBuildInfraProfileServiceParamsType) => Promise<import('../../../Common').ResponseType<Promise<import('../../../Common').ResponseType<unknown>>>>;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { FormEvent, FunctionComponent, ReactNode } from 'react';
|
1
|
+
import { FormEvent, FunctionComponent, ReactNode, SyntheticEvent } from 'react';
|
2
2
|
import { BUILD_INFRA_INHERIT_ACTIONS, useBuildInfraForm } from '../../index';
|
3
3
|
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
4
|
-
import { ValidationResponseType } from '../../../Shared';
|
4
|
+
import { CMSecretComponentType, CMSecretConfigData, CMSecretPayloadType, ConfigMapSecretUseFormProps, getUniqueId, useForm, ValidationResponseType } from '../../../Shared';
|
5
5
|
import { ServerErrors } from '../../../Common';
|
6
6
|
/**
|
7
7
|
* Unique actions that will be dispatched and,
|
@@ -14,7 +14,9 @@ export declare enum BuildInfraConfigTypes {
|
|
14
14
|
MEMORY_REQUEST = "memory_request",
|
15
15
|
BUILD_TIMEOUT = "timeout",
|
16
16
|
NODE_SELECTOR = "node_selector",
|
17
|
-
TOLERANCE = "tolerations"
|
17
|
+
TOLERANCE = "tolerations",
|
18
|
+
CONFIG_MAP = "cm",
|
19
|
+
SECRET = "cs"
|
18
20
|
}
|
19
21
|
/**
|
20
22
|
* Combination of BuildInfraConfigTypes and BuildInfraMetaConfigTypes is going to derive error state and actions(actions will also be derived with BuildInfraInheritActions)
|
@@ -31,7 +33,9 @@ export declare enum BuildInfraLocators {
|
|
31
33
|
MEMORY = "memory",
|
32
34
|
BUILD_TIMEOUT = "timeout",
|
33
35
|
NODE_SELECTOR = "node selector",
|
34
|
-
TOLERANCE = "tolerance"
|
36
|
+
TOLERANCE = "tolerance",
|
37
|
+
CONFIG_MAP = "cm",
|
38
|
+
SECRET = "cs"
|
35
39
|
}
|
36
40
|
export type BuildInfraInheritActions = keyof typeof BUILD_INFRA_INHERIT_ACTIONS;
|
37
41
|
export declare enum BuildInfraProfileVariants {
|
@@ -52,6 +56,7 @@ export interface BuildInfraDescriptorProps {
|
|
52
56
|
tippyInfoText?: string;
|
53
57
|
tippyAdditionalContent?: ReactNode;
|
54
58
|
tooltipNode?: ReactNode;
|
59
|
+
tooltipHeading?: string;
|
55
60
|
}
|
56
61
|
export type NumericBuildInfraConfigTypes = Extract<BuildInfraConfigTypes, BuildInfraConfigTypes.BUILD_TIMEOUT | BuildInfraConfigTypes.CPU_LIMIT | BuildInfraConfigTypes.CPU_REQUEST | BuildInfraConfigTypes.MEMORY_LIMIT | BuildInfraConfigTypes.MEMORY_REQUEST>;
|
57
62
|
export interface BuildInfraActionType {
|
@@ -128,20 +133,38 @@ export type BuildInfraToleranceValueType = {
|
|
128
133
|
operator: BuildInfraToleranceOperatorType.EXISTS;
|
129
134
|
value?: never;
|
130
135
|
});
|
131
|
-
export type
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
}
|
136
|
-
|
137
|
-
|
138
|
-
unit
|
139
|
-
}
|
140
|
-
|
141
|
-
|
142
|
-
|
136
|
+
export type InfraConfigWithSubValues = Extract<BuildInfraConfigTypes, BuildInfraConfigTypes.CONFIG_MAP | BuildInfraConfigTypes.SECRET>;
|
137
|
+
type BuildInfraConfigTypeFormat<Key, Value, Unit> = {
|
138
|
+
key: Key;
|
139
|
+
value: Value;
|
140
|
+
} & ([Unit] extends [never] ? {
|
141
|
+
unit?: Unit;
|
142
|
+
} : {
|
143
|
+
unit: Unit;
|
144
|
+
});
|
145
|
+
type NumericBuildInfraConfigValueDTO = BuildInfraConfigTypeFormat<NumericBuildInfraConfigTypes, number, ConfigurationUnitType['name']>;
|
146
|
+
type NodeSelectorConfigDTO = BuildInfraConfigTypeFormat<BuildInfraConfigTypes.NODE_SELECTOR, BuildInfraNodeSelectorValueType[], never>;
|
147
|
+
type ToleranceConfigDTO = BuildInfraConfigTypeFormat<BuildInfraConfigTypes.TOLERANCE, BuildInfraToleranceValueType[], never>;
|
148
|
+
type BuildInfraCMCSConfigDTO = BuildInfraConfigTypeFormat<InfraConfigWithSubValues, CMSecretConfigData[], never>;
|
149
|
+
export type BuildInfraCMCSValueType = {
|
150
|
+
useFormProps: ConfigMapSecretUseFormProps;
|
151
|
+
id: ReturnType<typeof getUniqueId>;
|
152
|
+
isOverridden: boolean;
|
153
|
+
canOverride: boolean;
|
154
|
+
defaultValue: ConfigMapSecretUseFormProps | null;
|
155
|
+
defaultValueInitialResponse: CMSecretConfigData;
|
156
|
+
initialResponse: CMSecretConfigData;
|
143
157
|
};
|
144
|
-
interface
|
158
|
+
export interface BuildInfraCMCSConfigType extends Pick<BuildInfraCMCSConfigDTO, 'key' | 'unit'> {
|
159
|
+
value: BuildInfraCMCSValueType[];
|
160
|
+
}
|
161
|
+
interface BuildInfraCMCSPayloadConfigType extends Pick<BuildInfraCMCSConfigDTO, 'key' | 'unit'> {
|
162
|
+
value: CMSecretPayloadType[];
|
163
|
+
}
|
164
|
+
export type BuildInfraConfigDTO = NumericBuildInfraConfigValueDTO | NodeSelectorConfigDTO | ToleranceConfigDTO | BuildInfraCMCSConfigDTO;
|
165
|
+
export type BuildInfraConfigValuesType = NumericBuildInfraConfigValueDTO | NodeSelectorConfigDTO | ToleranceConfigDTO | BuildInfraCMCSConfigType;
|
166
|
+
export type BuildInfraConfigPayloadType = NumericBuildInfraConfigValueDTO | NodeSelectorConfigDTO | ToleranceConfigDTO | BuildInfraCMCSPayloadConfigType;
|
167
|
+
export interface BuildInfraProfileConfigBase {
|
145
168
|
id?: number;
|
146
169
|
/**
|
147
170
|
* This key holds value when we are inheriting values from other profiles in case of listing
|
@@ -151,21 +174,8 @@ interface BuildInfraProfileConfigBase {
|
|
151
174
|
targetPlatform: string;
|
152
175
|
}
|
153
176
|
export type BuildInfraConfigInfoType = BuildInfraConfigValuesType & BuildInfraProfileConfigBase;
|
154
|
-
export type BuildInfraConfigurationDTO =
|
155
|
-
|
156
|
-
* Maps target platform to its configuration values
|
157
|
-
*/
|
158
|
-
export type BuildInfraPlatformConfigurationMapDTO = Record<string, BuildInfraConfigurationDTO[]>;
|
159
|
-
export type BuildInfraConfigurationType = BuildInfraConfigInfoType & {
|
160
|
-
/**
|
161
|
-
* Used to display values in case of inheriting data
|
162
|
-
*/
|
163
|
-
defaultValue: BuildInfraConfigValuesType;
|
164
|
-
};
|
165
|
-
export type BuildInfraConfigurationMapTypeWithoutDefaultFallback = {
|
166
|
-
[key in BuildInfraConfigTypes]?: BuildInfraConfigInfoType;
|
167
|
-
};
|
168
|
-
export type BuildInfraConfigurationMapType = Record<BuildInfraConfigTypes, BuildInfraConfigurationType>;
|
177
|
+
export type BuildInfraConfigurationDTO = BuildInfraConfigDTO & Omit<BuildInfraProfileConfigBase, 'targetPlatform'>;
|
178
|
+
export type BuildInfraConfigurationItemPayloadType = Omit<BuildInfraProfileConfigBase, 'targetPlatform'> & BuildInfraConfigPayloadType;
|
169
179
|
export declare enum BuildXDriverType {
|
170
180
|
KUBERNETES = "kubernetes",
|
171
181
|
DOCKER_CONTAINER = "docker-container"
|
@@ -182,6 +192,24 @@ interface BuildInfraProfileBaseDTO {
|
|
182
192
|
*/
|
183
193
|
buildxDriverType?: BuildXDriverType;
|
184
194
|
}
|
195
|
+
export interface BuildInfraPayloadType extends BuildInfraProfileBaseDTO {
|
196
|
+
configurations: Record<string, BuildInfraConfigurationItemPayloadType[]>;
|
197
|
+
}
|
198
|
+
/**
|
199
|
+
* Maps target platform to its configuration values
|
200
|
+
*/
|
201
|
+
export type BuildInfraPlatformConfigurationMapDTO = Record<string, BuildInfraConfigurationDTO[]>;
|
202
|
+
export type BuildInfraConfigurationType = BuildInfraConfigInfoType & {
|
203
|
+
/**
|
204
|
+
* Used to display values in case of inheriting data
|
205
|
+
* This will be null in case of CM/CS
|
206
|
+
*/
|
207
|
+
defaultValue: BuildInfraConfigValuesType;
|
208
|
+
};
|
209
|
+
export type BuildInfraConfigurationMapTypeWithoutDefaultFallback = {
|
210
|
+
[key in BuildInfraConfigTypes]?: BuildInfraConfigInfoType;
|
211
|
+
};
|
212
|
+
export type BuildInfraConfigurationMapType = Record<BuildInfraConfigTypes, BuildInfraConfigurationType>;
|
185
213
|
export interface BuildInfraProfileBase extends Omit<BuildInfraProfileBaseDTO, 'buildxDriverType'> {
|
186
214
|
useK8sDriver?: boolean;
|
187
215
|
}
|
@@ -237,11 +265,12 @@ export declare enum ToleranceHeaderType {
|
|
237
265
|
VALUE = "VALUE",
|
238
266
|
EFFECT = "EFFECT"
|
239
267
|
}
|
268
|
+
export type BuildInfraCMCSErrorType = Record<InfraConfigWithSubValues, Record<BuildInfraCMCSValueType['id'], boolean>>;
|
240
269
|
/**
|
241
270
|
* Would be maintaining error state for name and description irrespective of platform
|
242
271
|
* For error states related to platform, we would not be letting user to switch platform if there are errors
|
243
272
|
*/
|
244
|
-
export type ProfileInputErrorType = Record<NumericBuildInfraConfigTypes | BuildInfraMetaConfigTypes | BuildInfraProfileAdditionalErrorKeysType.TARGET_PLATFORM, string> & Record<BuildInfraConfigTypes.NODE_SELECTOR, Record<BuildInfraNodeSelectorValueType['id'], Partial<Record<NodeSelectorHeaderType, string[]>>>> & Record<BuildInfraConfigTypes.TOLERANCE, Record<BuildInfraNodeSelectorValueType['id'], Partial<Record<ToleranceHeaderType, string[]
|
273
|
+
export type ProfileInputErrorType = Record<NumericBuildInfraConfigTypes | BuildInfraMetaConfigTypes | BuildInfraProfileAdditionalErrorKeysType.TARGET_PLATFORM, string> & Record<BuildInfraConfigTypes.NODE_SELECTOR, Record<BuildInfraNodeSelectorValueType['id'], Partial<Record<NodeSelectorHeaderType, string[]>>>> & Record<BuildInfraConfigTypes.TOLERANCE, Record<BuildInfraNodeSelectorValueType['id'], Partial<Record<ToleranceHeaderType, string[]>>>> & BuildInfraCMCSErrorType;
|
245
274
|
export type TargetPlatformErrorFields = BuildInfraConfigTypes | BuildInfraProfileAdditionalErrorKeysType;
|
246
275
|
export interface ProfileInputDispatchDataType {
|
247
276
|
targetPlatform: string;
|
@@ -252,7 +281,6 @@ interface NumericBuildInfraConfigPayloadType {
|
|
252
281
|
}
|
253
282
|
export declare enum BuildInfraProfileInputActionType {
|
254
283
|
ADD_TARGET_PLATFORM = "add_target_platform",
|
255
|
-
TOGGLE_USE_K8S_DRIVER = "toggle_use_k8s_driver",
|
256
284
|
REMOVE_TARGET_PLATFORM = "remove_target_platform",
|
257
285
|
RENAME_TARGET_PLATFORM = "rename_target_platform",
|
258
286
|
RESTORE_PROFILE_CONFIG_SNAPSHOT = "restore_profile_config_snapshot",
|
@@ -261,12 +289,13 @@ export declare enum BuildInfraProfileInputActionType {
|
|
261
289
|
EDIT_NODE_SELECTOR_ITEM = "edit_node_selector_item",
|
262
290
|
DELETE_TOLERANCE_ITEM = "delete_tolerance_item",
|
263
291
|
ADD_TOLERANCE_ITEM = "add_tolerance_item",
|
264
|
-
EDIT_TOLERANCE_ITEM = "edit_tolerance_item"
|
292
|
+
EDIT_TOLERANCE_ITEM = "edit_tolerance_item",
|
293
|
+
ADD_CM_CS_ITEM = "add_cm_cs_item",
|
294
|
+
SYNC_CM_CS_ITEM = "sync_cm_cs_item",
|
295
|
+
DELETE_CM_CS_ITEM = "delete_cm_cs_item"
|
265
296
|
}
|
297
|
+
export type BuildInfraInheritActionsOnSubValues = Extract<BuildInfraInheritActions, `activate_${BuildInfraLocators.CONFIG_MAP}` | `de_activate_${BuildInfraLocators.CONFIG_MAP}` | `activate_${BuildInfraLocators.SECRET}` | `de_activate_${BuildInfraLocators.SECRET}`>;
|
266
298
|
export type HandleProfileInputChangeType = {
|
267
|
-
action: BuildInfraProfileInputActionType.TOGGLE_USE_K8S_DRIVER;
|
268
|
-
data?: never;
|
269
|
-
} | {
|
270
299
|
action: NumericBuildInfraConfigTypes;
|
271
300
|
data: ProfileInputDispatchDataType & NumericBuildInfraConfigPayloadType;
|
272
301
|
} | {
|
@@ -275,8 +304,14 @@ export type HandleProfileInputChangeType = {
|
|
275
304
|
value: string;
|
276
305
|
};
|
277
306
|
} | {
|
278
|
-
action: BuildInfraInheritActions | BuildInfraProfileInputActionType.ADD_TARGET_PLATFORM | BuildInfraProfileInputActionType.REMOVE_TARGET_PLATFORM;
|
307
|
+
action: Exclude<BuildInfraInheritActions, BuildInfraInheritActionsOnSubValues> | BuildInfraProfileInputActionType.ADD_TARGET_PLATFORM | BuildInfraProfileInputActionType.REMOVE_TARGET_PLATFORM;
|
279
308
|
data: ProfileInputDispatchDataType;
|
309
|
+
} | {
|
310
|
+
action: BuildInfraInheritActionsOnSubValues;
|
311
|
+
data: ProfileInputDispatchDataType & {
|
312
|
+
componentType: CMSecretComponentType;
|
313
|
+
id: string;
|
314
|
+
};
|
280
315
|
} | {
|
281
316
|
action: BuildInfraProfileInputActionType.RENAME_TARGET_PLATFORM;
|
282
317
|
data: {
|
@@ -307,6 +342,24 @@ export type HandleProfileInputChangeType = {
|
|
307
342
|
} | {
|
308
343
|
action: BuildInfraProfileInputActionType.EDIT_TOLERANCE_ITEM;
|
309
344
|
data: ProfileInputDispatchDataType & Pick<BuildInfraToleranceValueType, 'id' | 'key' | 'value' | 'effect' | 'operator'>;
|
345
|
+
} | {
|
346
|
+
action: BuildInfraProfileInputActionType.ADD_CM_CS_ITEM;
|
347
|
+
data: ProfileInputDispatchDataType & Pick<BuildInfraCMCSValueType, 'id'> & {
|
348
|
+
infraConfigType: InfraConfigWithSubValues;
|
349
|
+
};
|
350
|
+
} | {
|
351
|
+
action: BuildInfraProfileInputActionType.SYNC_CM_CS_ITEM;
|
352
|
+
data: ProfileInputDispatchDataType & {
|
353
|
+
id: BuildInfraCMCSValueType['id'];
|
354
|
+
value: ConfigMapSecretUseFormProps;
|
355
|
+
hasError: boolean;
|
356
|
+
componentType: CMSecretComponentType;
|
357
|
+
};
|
358
|
+
} | {
|
359
|
+
action: BuildInfraProfileInputActionType.DELETE_CM_CS_ITEM;
|
360
|
+
data: ProfileInputDispatchDataType & Pick<BuildInfraCMCSValueType, 'id'> & {
|
361
|
+
componentType: CMSecretComponentType;
|
362
|
+
};
|
310
363
|
};
|
311
364
|
export interface UseBuildInfraFormResponseType {
|
312
365
|
isLoading: boolean;
|
@@ -324,7 +377,7 @@ export interface BuildInfraConfigFormProps extends Pick<UseBuildInfraFormRespons
|
|
324
377
|
unitsMap?: BuildInfraProfileResponseType['configurationUnits'];
|
325
378
|
configurationContainerLabel?: ReactNode;
|
326
379
|
}
|
327
|
-
export interface BuildInfraFormItemProps extends Pick<BuildInfraFormFieldType, 'marker' | 'heading'
|
380
|
+
export interface BuildInfraFormItemProps extends Pick<BuildInfraFormFieldType, 'marker' | 'heading'> {
|
328
381
|
children?: ReactNode;
|
329
382
|
/**
|
330
383
|
* If true, means profile is inheriting values from other profile (e.g, default)
|
@@ -334,11 +387,6 @@ export interface BuildInfraFormItemProps extends Pick<BuildInfraFormFieldType, '
|
|
334
387
|
* Would be false for last item
|
335
388
|
*/
|
336
389
|
showDivider?: boolean;
|
337
|
-
/**
|
338
|
-
* Would be used to dispatch inherit actions (activate_cpu, de_activate_cpu, etc)
|
339
|
-
*/
|
340
|
-
handleProfileInputChange: UseBuildInfraFormResponseType['handleProfileInputChange'];
|
341
|
-
locator: BuildInfraFormFieldType['locator'];
|
342
390
|
}
|
343
391
|
export interface ValidateRequestLimitType {
|
344
392
|
request: NumericBuildInfraConfigPayloadType;
|
@@ -349,7 +397,7 @@ export interface ValidateRequestLimitResponseType {
|
|
349
397
|
request: ValidationResponseType;
|
350
398
|
limit: ValidationResponseType;
|
351
399
|
}
|
352
|
-
export interface BuildInfraFormActionProps extends BuildInfraActionType
|
400
|
+
export interface BuildInfraFormActionProps extends BuildInfraActionType {
|
353
401
|
handleProfileInputChange: UseBuildInfraFormResponseType['handleProfileInputChange'];
|
354
402
|
currentValue: number;
|
355
403
|
error?: string;
|
@@ -364,6 +412,7 @@ export interface BuildInfraFormActionProps extends BuildInfraActionType, Pick<Bu
|
|
364
412
|
* @default false
|
365
413
|
*/
|
366
414
|
autoFocus?: boolean;
|
415
|
+
targetPlatform?: string;
|
367
416
|
}
|
368
417
|
export interface FooterProps {
|
369
418
|
/**
|
@@ -390,9 +439,15 @@ export interface BuildInfraInputFieldComponentProps {
|
|
390
439
|
currentValue: BuildInfraConfigValuesType['value'];
|
391
440
|
error?: string;
|
392
441
|
}
|
393
|
-
export
|
442
|
+
export type BuildInfraProfileMetaFieldProps = Pick<BuildInfraInputFieldComponentProps, 'error'> & {
|
394
443
|
currentValue: string;
|
395
|
-
}
|
444
|
+
} & ({
|
445
|
+
handleProfileInputChange: BuildInfraInputFieldComponentProps['handleProfileInputChange'];
|
446
|
+
onChange?: never;
|
447
|
+
} | {
|
448
|
+
onChange: (e: SyntheticEvent) => void;
|
449
|
+
handleProfileInputChange?: never;
|
450
|
+
});
|
396
451
|
export interface InheritingHeaderProps extends Pick<BuildInfraConfigFormProps, 'isGlobalProfile'> {
|
397
452
|
defaultHeading: BuildInfraFormFieldType['heading'];
|
398
453
|
inheritingData: BuildInfraConfigValuesType[];
|
@@ -406,9 +461,6 @@ interface BaseBuildInfraProfileDTO {
|
|
406
461
|
defaultConfigurations: BuildInfraPlatformConfigurationMapDTO;
|
407
462
|
configurationUnits: BuildInfraUnitsMapType;
|
408
463
|
}
|
409
|
-
export interface BuildInfraListResponseType extends BaseBuildInfraProfileDTO {
|
410
|
-
profiles: BuildInfraProfileInfoDTO[];
|
411
|
-
}
|
412
464
|
export interface BuildInfraProfileDTO extends BaseBuildInfraProfileDTO {
|
413
465
|
profile: BuildInfraProfileInfoDTO;
|
414
466
|
}
|
@@ -418,6 +470,10 @@ export interface GetPlatformConfigurationsWithDefaultValuesParamsType {
|
|
418
470
|
profileConfigurationsMap: BuildInfraConfigurationMapTypeWithoutDefaultFallback;
|
419
471
|
defaultConfigurationsMap: BuildInfraConfigurationMapTypeWithoutDefaultFallback;
|
420
472
|
platformName: string;
|
473
|
+
/**
|
474
|
+
* @default false
|
475
|
+
*/
|
476
|
+
isDefaultProfile?: boolean;
|
421
477
|
}
|
422
478
|
export declare enum BuildInfraAPIVersionType {
|
423
479
|
ALPHA1 = "alpha1"
|
@@ -427,6 +483,14 @@ export interface ValidateNodeSelectorParamsType extends Pick<ReturnType<typeof u
|
|
427
483
|
selector: BuildInfraNodeSelectorValueType;
|
428
484
|
existingKeys: string[];
|
429
485
|
}
|
486
|
+
export interface BuildInfraCMCSFormProps {
|
487
|
+
parsedData: BuildInfraCMCSValueType;
|
488
|
+
useFormProps: ReturnType<typeof useForm<ConfigMapSecretUseFormProps>>;
|
489
|
+
componentType: CMSecretComponentType;
|
490
|
+
}
|
491
|
+
export interface BuildInfraUtilityContextType {
|
492
|
+
BuildInfraCMCSForm: FunctionComponent<BuildInfraCMCSFormProps>;
|
493
|
+
}
|
430
494
|
export interface GetBaseProfileObjectParamsType extends Pick<BuildInfraProfileTransformerParamsType, 'canConfigureUseK8sDriver' | 'fromCreateView' | 'profile'> {
|
431
495
|
}
|
432
496
|
export {};
|
@@ -1,7 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { BuildInfraPayloadType, InfraConfigWithSubValues } from '../../index';
|
2
|
+
import { BuildInfraConfigTypes, BuildInfraConfigValuesType, BuildInfraInheritActions, BuildInfraLocators, BuildInfraProfileResponseType, BuildInfraProfileTransformerParamsType, BuildXDriverType, CreateBuildInfraProfileType } from './types';
|
2
3
|
export declare const parsePlatformConfigIntoValue: (configuration: BuildInfraConfigValuesType, addUniqueId?: boolean) => BuildInfraConfigValuesType;
|
3
4
|
export declare const getParsedValueForUseK8sDriver: (buildxDriverType: BuildXDriverType) => boolean;
|
5
|
+
export declare const getDoesInfraConfigContainsSubValue: (infraConfig: BuildInfraConfigTypes) => infraConfig is InfraConfigWithSubValues;
|
4
6
|
export declare const getTransformedBuildInfraProfileResponse: ({ configurationUnits, defaultConfigurations, profile, fromCreateView, canConfigureUseK8sDriver, }: BuildInfraProfileTransformerParamsType) => BuildInfraProfileResponseType;
|
5
|
-
export declare const
|
7
|
+
export declare const getBuildxDriverTypeFromUseK8sDriver: (useK8sDriver: boolean) => BuildXDriverType;
|
8
|
+
export declare const getBuildInfraProfilePayload: (profileInput: CreateBuildInfraProfileType["profileInput"], canConfigureUseK8sDriver: boolean) => BuildInfraPayloadType;
|
6
9
|
export declare const getBuildInfraProfileEndpoint: () => string;
|
7
10
|
export declare const getBuildInfraInheritActionFromLocator: (locator: BuildInfraLocators, activateLocator: boolean) => BuildInfraInheritActions;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ValidateNodeSelectorParamsType, ValidateRequestLimitResponseType, ValidateRequestLimitType } from '../../index';
|
2
|
+
import { ValidationResponseType } from '../../../Shared/validations';
|
3
|
+
/**
|
4
|
+
* @description A valid platform name should not be empty and be less than 128 characters. Plus profile can not have duplicate platform names
|
5
|
+
*/
|
6
|
+
export declare const validateTargetPlatformName: (name: string, platformMap: Record<string, unknown>) => ValidationResponseType;
|
7
|
+
export declare const validateLabelValue: (value?: string) => Pick<ValidationResponseType, "isValid"> & {
|
8
|
+
messages: string[];
|
9
|
+
};
|
10
|
+
export declare const validateRequestLimit: ({ request, limit, unitsMap, }: ValidateRequestLimitType) => ValidateRequestLimitResponseType;
|
11
|
+
export declare const validateNodeSelector: ({ selector: { key, value, id }, existingKeys, profileInputErrors: currentInputErrors, }: ValidateNodeSelectorParamsType) => void;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
2
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable,
|
2
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, rootClassName, codeEditorKey, }: DeploymentTemplateHistoryType) => JSX.Element;
|
3
3
|
export default DeploymentHistoryDiffView;
|
@@ -11,6 +11,8 @@ export declare const FILTER_STYLE: {
|
|
11
11
|
option: (base: any, state: any) => any;
|
12
12
|
container: (base: any, state: any) => any;
|
13
13
|
valueContainer: (base: any, state: any) => any;
|
14
|
+
singleValue: (base: any) => any;
|
15
|
+
input: (base: any) => any;
|
14
16
|
};
|
15
17
|
export declare const GIT_BRANCH_NOT_CONFIGURED = "Not Configured";
|
16
18
|
export declare const DEFAULT_GIT_BRANCH_VALUE = "--";
|
@@ -390,8 +390,6 @@ export interface DeploymentTemplateHistoryType {
|
|
390
390
|
currentConfiguration: DeploymentHistoryDetail;
|
391
391
|
baseTemplateConfiguration: DeploymentHistoryDetail;
|
392
392
|
previousConfigAvailable: boolean;
|
393
|
-
isUnpublished?: boolean;
|
394
|
-
isDeleteDraft?: boolean;
|
395
393
|
rootClassName?: string;
|
396
394
|
codeEditorKey?: React.Key;
|
397
395
|
}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { ConfigMapSecretReadyOnlyProps } from './types';
|
2
|
+
declare const ConfigMapSecretReadyOnly: ({ componentType, isJob, configMapSecretData, cmSecretStateLabel, areScopeVariablesResolving, fallbackMergeStrategy, hideCodeEditor, containerClassName, displayKeys, isBorderLess, }: ConfigMapSecretReadyOnlyProps) => JSX.Element;
|
3
|
+
export default ConfigMapSecretReadyOnly;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { CMSecretYamlData } from '../../Services';
|
2
|
+
import { ConfigMapSecretDataTypeOptionType } from './types';
|
3
|
+
export declare const CONFIG_MAP_SECRET_YAML_PARSE_ERROR = "Could not parse to valid YAML";
|
4
|
+
export declare const SECRET_TOAST_INFO: {
|
5
|
+
BOTH_STORE_AVAILABLE: string;
|
6
|
+
CHECK_KEY_SECRET_KEY: string;
|
7
|
+
BOTH_STORE_UNAVAILABLE: string;
|
8
|
+
CHECK_KEY_NAME: string;
|
9
|
+
BOTH_ESO_DATA_AND_DATA_FROM_AVAILABLE: string;
|
10
|
+
BOTH_ESO_DATA_AND_DATA_FROM_UNAVAILABLE: string;
|
11
|
+
};
|
12
|
+
export declare const configMapDataTypeOptions: ConfigMapSecretDataTypeOptionType[];
|
13
|
+
export declare const CONFIG_MAP_SECRET_DEFAULT_CURRENT_DATA: CMSecretYamlData[];
|
14
|
+
export declare const configMapSecretMountDataMap: {
|
15
|
+
environment: {
|
16
|
+
title: string;
|
17
|
+
value: string;
|
18
|
+
};
|
19
|
+
volume: {
|
20
|
+
title: string;
|
21
|
+
value: string;
|
22
|
+
};
|
23
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const renderHashiOrAwsDeprecatedInfo: () => JSX.Element;
|