@openshift-assisted/ui-lib 2.18.1-cim → 2.18.2-cim
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/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.d.ts +5 -0
- package/build/@types/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.d.ts.map +1 -0
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +1 -1
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/customManifests/CustomManifestsAlert.d.ts +6 -0
- package/build/@types/common/components/clusterWizard/customManifests/CustomManifestsAlert.d.ts.map +1 -0
- package/build/@types/common/components/clusterWizard/customManifests/index.d.ts +2 -0
- package/build/@types/common/components/clusterWizard/customManifests/index.d.ts.map +1 -0
- package/build/@types/common/components/clusterWizard/index.d.ts +2 -0
- package/build/@types/common/components/clusterWizard/index.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.d.ts +3 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.d.ts.map +1 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts +1 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts.map +1 -1
- package/build/@types/common/types/networkType.d.ts +2 -1
- package/build/@types/common/types/networkType.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts +2 -1
- package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js +24 -23
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js +35 -0
- package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js.map +1 -0
- package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js +32 -0
- package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js.map +1 -0
- package/build/cjs/common/components/clusterWizard/customManifests/index.js +5 -0
- package/build/cjs/common/components/clusterWizard/customManifests/index.js.map +1 -0
- package/build/cjs/common/components/clusterWizard/index.js +2 -0
- package/build/cjs/common/components/clusterWizard/index.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js +20 -0
- package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js.map +1 -0
- package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +3 -4
- package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
- package/build/cjs/common/types/networkType.js +9 -8
- package/build/cjs/common/types/networkType.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +1 -20
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js +6 -9
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +3 -2
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +3 -3
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +1 -1
- package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +4 -3
- package/lib/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.tsx +18 -2
- package/lib/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.tsx +81 -0
- package/lib/cim/types/k8s/agent-cluster-install.ts +1 -1
- package/lib/common/components/clusterWizard/customManifests/CustomManifestsAlert.tsx +39 -0
- package/lib/common/components/clusterWizard/customManifests/index.tsx +1 -0
- package/lib/common/components/clusterWizard/index.ts +2 -0
- package/lib/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.tsx +28 -0
- package/lib/common/components/clusterWizard/networkingSteps/index.ts +1 -0
- package/lib/common/types/networkType.ts +9 -8
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +10 -45
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.tsx +7 -24
- package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +9 -3
- package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +7 -3
- package/package.json +3 -3
- package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts +0 -7
- package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts.map +0 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js +0 -33
- package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map +0 -1
- package/lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx +0 -74
|
@@ -18,14 +18,18 @@ import { ClusterFeatureSupportLevelsDetailItem } from '../featureSupportLevels';
|
|
|
18
18
|
import OpenShiftVersionDetail from './OpenShiftVersionDetail';
|
|
19
19
|
import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels';
|
|
20
20
|
import { Cluster, DiskEncryption } from '@openshift-assisted/types/assisted-installer-service';
|
|
21
|
+
import { TFunction } from 'i18next';
|
|
21
22
|
|
|
22
23
|
type ClusterPropertiesProps = {
|
|
23
24
|
cluster: Cluster;
|
|
24
25
|
externalMode?: boolean;
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
export const getNetworkType = (
|
|
28
|
-
|
|
28
|
+
export const getNetworkType = (
|
|
29
|
+
clusterNetworkType: Cluster['networkType'],
|
|
30
|
+
t: TFunction,
|
|
31
|
+
): string => {
|
|
32
|
+
return NETWORK_TYPE_LABELS(t)[clusterNetworkType || ''];
|
|
29
33
|
};
|
|
30
34
|
|
|
31
35
|
export const getManagementType = ({ userManagedNetworking }: Cluster): string => {
|
|
@@ -111,7 +115,7 @@ const ClusterProperties = ({ cluster, externalMode = false }: ClusterPropertiesP
|
|
|
111
115
|
/>
|
|
112
116
|
<DetailItem
|
|
113
117
|
title="Networking Type"
|
|
114
|
-
value={getNetworkType(cluster.networkType)}
|
|
118
|
+
value={getNetworkType(cluster.networkType, t)}
|
|
115
119
|
testId="networking-type"
|
|
116
120
|
/>
|
|
117
121
|
</DetailList>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "2.18.
|
|
4
|
-
"@openshift-assisted/types": "2.18.
|
|
3
|
+
"@openshift-assisted/locales": "2.18.2-cim",
|
|
4
|
+
"@openshift-assisted/types": "2.18.2-cim",
|
|
5
5
|
"@openshift-console/dynamic-plugin-sdk": "^4.19.1",
|
|
6
6
|
"@patternfly/patternfly": "6.4.0",
|
|
7
7
|
"@patternfly/react-code-editor": "6.4.1",
|
|
@@ -136,5 +136,5 @@
|
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
|
-
"version": "2.18.
|
|
139
|
+
"version": "2.18.2-cim"
|
|
140
140
|
}
|
package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface NetworkTypeControlGroupProps {
|
|
3
|
-
isDisabled?: boolean;
|
|
4
|
-
isSDNSelectable: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const NetworkTypeControlGroup: ({ isDisabled, isSDNSelectable, }: NetworkTypeControlGroupProps) => React.JSX.Element;
|
|
7
|
-
//# sourceMappingURL=NetworkTypeControlGroup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkTypeControlGroup.d.ts","sourceRoot":"","sources":["../../../../../../lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,uBAAuB,qCAGjC,4BAA4B,sBAwD9B,CAAC"}
|
package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NetworkTypeControlGroup = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
7
|
-
const formik_1 = require("../../ui/formik");
|
|
8
|
-
const ui_1 = require("../../../components/ui");
|
|
9
|
-
const networkType_1 = require("../../../types/networkType");
|
|
10
|
-
const use_translation_wrapper_1 = require("../../../hooks/use-translation-wrapper");
|
|
11
|
-
const GROUP_NAME = 'networkType';
|
|
12
|
-
const NetworkTypeControlGroup = ({ isDisabled = false, isSDNSelectable, }) => {
|
|
13
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
14
|
-
return (react_1.default.createElement(react_core_1.FormGroup, { isInline: true, fieldId: GROUP_NAME, label: t('ai:Network type') },
|
|
15
|
-
react_1.default.createElement(react_core_1.Split, null,
|
|
16
|
-
react_1.default.createElement(react_core_1.SplitItem, null,
|
|
17
|
-
react_1.default.createElement(react_core_1.Tooltip, { hidden: isSDNSelectable, content: t('ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.') },
|
|
18
|
-
react_1.default.createElement(formik_1.RadioField, { id: GROUP_NAME, name: GROUP_NAME, isDisabled: isDisabled || !isSDNSelectable, value: networkType_1.NETWORK_TYPE_OVN, label: react_1.default.createElement(react_1.default.Fragment, null,
|
|
19
|
-
t('ai:Open Virtual Networking (OVN)'),
|
|
20
|
-
"\u00A0") }))),
|
|
21
|
-
react_1.default.createElement(react_core_1.SplitItem, null,
|
|
22
|
-
react_1.default.createElement(ui_1.PopoverIcon, { bodyContent: t("ai:OVN separates the physical network topology from the logical one and is recommended if you're using new or telco features."), buttonStyle: { top: '-4px' } }))),
|
|
23
|
-
react_1.default.createElement(react_core_1.Split, null,
|
|
24
|
-
react_1.default.createElement(react_core_1.SplitItem, null,
|
|
25
|
-
react_1.default.createElement(react_core_1.Tooltip, { hidden: isSDNSelectable, content: t('ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.') },
|
|
26
|
-
react_1.default.createElement(formik_1.RadioField, { id: GROUP_NAME, name: GROUP_NAME, isDisabled: isDisabled || !isSDNSelectable, value: networkType_1.NETWORK_TYPE_SDN, label: react_1.default.createElement(react_1.default.Fragment, null,
|
|
27
|
-
t('ai:Software-Defined Networking (SDN)'),
|
|
28
|
-
"\u00A0") }))),
|
|
29
|
-
react_1.default.createElement(react_core_1.SplitItem, null,
|
|
30
|
-
react_1.default.createElement(ui_1.PopoverIcon, { bodyContent: t('ai:The classic bullet-proof networking type'), buttonStyle: { top: '-4px' } })))));
|
|
31
|
-
};
|
|
32
|
-
exports.NetworkTypeControlGroup = NetworkTypeControlGroup;
|
|
33
|
-
//# sourceMappingURL=NetworkTypeControlGroup.js.map
|
package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkTypeControlGroup.js","sourceRoot":"","sources":["../../../../../../lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA8E;AAC9E,4CAA6C;AAC7C,+CAAqD;AACrD,4DAAgF;AAChF,oFAAwE;AAExE,MAAM,UAAU,GAAG,aAAa,CAAC;AAO1B,MAAM,uBAAuB,GAAG,CAAC,EACtC,UAAU,GAAG,KAAK,EAClB,eAAe,GACc,EAAE,EAAE;IACjC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,OAAO,CACL,8BAAC,sBAAS,IAAC,QAAQ,QAAC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,iBAAiB,CAAC;QAClE,8BAAC,kBAAK;YACJ,8BAAC,sBAAS;gBACR,8BAAC,oBAAO,IACN,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,CAAC,CACR,uFAAuF,CACxF;oBAED,8BAAC,mBAAU,IACT,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,UAAU,IAAI,CAAC,eAAe,EAC1C,KAAK,EAAE,8BAAgB,EACvB,KAAK,EAAE;4BAAG,CAAC,CAAC,kCAAkC,CAAC;qCAAU,GACzD,CACM,CACA;YACZ,8BAAC,sBAAS;gBACR,8BAAC,gBAAW,IACV,WAAW,EAAE,CAAC,CACZ,+HAA+H,CAChI,EACD,WAAW,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAC5B,CACQ,CACN;QACR,8BAAC,kBAAK;YACJ,8BAAC,sBAAS;gBACR,8BAAC,oBAAO,IACN,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,CAAC,CACR,uFAAuF,CACxF;oBAED,8BAAC,mBAAU,IACT,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,UAAU,IAAI,CAAC,eAAe,EAC1C,KAAK,EAAE,8BAAgB,EACvB,KAAK,EAAE;4BAAG,CAAC,CAAC,sCAAsC,CAAC;qCAAU,GAC7D,CACM,CACA;YACZ,8BAAC,sBAAS;gBACR,8BAAC,gBAAW,IACV,WAAW,EAAE,CAAC,CAAC,6CAA6C,CAAC,EAC7D,WAAW,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAC5B,CACQ,CACN,CACE,CACb,CAAC;AACJ,CAAC,CAAC;AA3DW,QAAA,uBAAuB,2BA2DlC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Split, SplitItem, Tooltip, FormGroup } from '@patternfly/react-core';
|
|
3
|
-
import { RadioField } from '../../ui/formik';
|
|
4
|
-
import { PopoverIcon } from '../../../components/ui';
|
|
5
|
-
import { NETWORK_TYPE_OVN, NETWORK_TYPE_SDN } from '../../../types/networkType';
|
|
6
|
-
import { useTranslation } from '../../../hooks/use-translation-wrapper';
|
|
7
|
-
|
|
8
|
-
const GROUP_NAME = 'networkType';
|
|
9
|
-
|
|
10
|
-
export interface NetworkTypeControlGroupProps {
|
|
11
|
-
isDisabled?: boolean;
|
|
12
|
-
isSDNSelectable: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const NetworkTypeControlGroup = ({
|
|
16
|
-
isDisabled = false,
|
|
17
|
-
isSDNSelectable,
|
|
18
|
-
}: NetworkTypeControlGroupProps) => {
|
|
19
|
-
const { t } = useTranslation();
|
|
20
|
-
return (
|
|
21
|
-
<FormGroup isInline fieldId={GROUP_NAME} label={t('ai:Network type')}>
|
|
22
|
-
<Split>
|
|
23
|
-
<SplitItem>
|
|
24
|
-
<Tooltip
|
|
25
|
-
hidden={isSDNSelectable}
|
|
26
|
-
content={t(
|
|
27
|
-
'ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.',
|
|
28
|
-
)}
|
|
29
|
-
>
|
|
30
|
-
<RadioField
|
|
31
|
-
id={GROUP_NAME}
|
|
32
|
-
name={GROUP_NAME}
|
|
33
|
-
isDisabled={isDisabled || !isSDNSelectable}
|
|
34
|
-
value={NETWORK_TYPE_OVN}
|
|
35
|
-
label={<>{t('ai:Open Virtual Networking (OVN)')} </>}
|
|
36
|
-
/>
|
|
37
|
-
</Tooltip>
|
|
38
|
-
</SplitItem>
|
|
39
|
-
<SplitItem>
|
|
40
|
-
<PopoverIcon
|
|
41
|
-
bodyContent={t(
|
|
42
|
-
"ai:OVN separates the physical network topology from the logical one and is recommended if you're using new or telco features.",
|
|
43
|
-
)}
|
|
44
|
-
buttonStyle={{ top: '-4px' }}
|
|
45
|
-
/>
|
|
46
|
-
</SplitItem>
|
|
47
|
-
</Split>
|
|
48
|
-
<Split>
|
|
49
|
-
<SplitItem>
|
|
50
|
-
<Tooltip
|
|
51
|
-
hidden={isSDNSelectable}
|
|
52
|
-
content={t(
|
|
53
|
-
'ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.',
|
|
54
|
-
)}
|
|
55
|
-
>
|
|
56
|
-
<RadioField
|
|
57
|
-
id={GROUP_NAME}
|
|
58
|
-
name={GROUP_NAME}
|
|
59
|
-
isDisabled={isDisabled || !isSDNSelectable}
|
|
60
|
-
value={NETWORK_TYPE_SDN}
|
|
61
|
-
label={<>{t('ai:Software-Defined Networking (SDN)')} </>}
|
|
62
|
-
/>
|
|
63
|
-
</Tooltip>
|
|
64
|
-
</SplitItem>
|
|
65
|
-
<SplitItem>
|
|
66
|
-
<PopoverIcon
|
|
67
|
-
bodyContent={t('ai:The classic bullet-proof networking type')}
|
|
68
|
-
buttonStyle={{ top: '-4px' }}
|
|
69
|
-
/>
|
|
70
|
-
</SplitItem>
|
|
71
|
-
</Split>
|
|
72
|
-
</FormGroup>
|
|
73
|
-
);
|
|
74
|
-
};
|