@openshift-assisted/ui-lib 2.42.0 → 2.42.2
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/common/components/newFeatureSupportLevels/types.d.ts +1 -1
- package/build/@types/common/components/newFeatureSupportLevels/types.d.ts.map +1 -1
- package/build/@types/common/components/operators/operatorDescriptions.d.ts +23 -0
- package/build/@types/common/components/operators/operatorDescriptions.d.ts.map +1 -0
- package/build/@types/common/components/operators/operatorSpecs.d.ts +32 -4
- package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
- package/build/@types/common/components/operators/test.d.ts +50 -0
- package/build/@types/common/components/operators/test.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +2 -0
- package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts +2 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts +2 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts +2 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js.map +1 -1
- package/build/cjs/common/components/operators/operatorDescriptions.js +26 -0
- package/build/cjs/common/components/operators/operatorDescriptions.js.map +1 -0
- package/build/cjs/common/components/operators/operatorSpecs.js +303 -190
- package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
- package/build/cjs/common/components/operators/test.js +323 -0
- package/build/cjs/common/components/operators/test.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +20 -10
- package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +16 -0
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +1 -1
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js +17 -18
- package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +36 -20
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +13 -3
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +5 -15
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
- package/lib/common/components/clusterDetail/OperatorsProgressItem.tsx +1 -1
- package/lib/common/components/newFeatureSupportLevels/types.ts +1 -0
- package/lib/common/components/operators/operatorDescriptions.tsx +58 -0
- package/lib/common/components/operators/operatorSpecs.tsx +392 -264
- package/lib/common/components/operators/test.tsx +469 -0
- package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +26 -14
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +33 -1
- package/lib/ocm/components/clusterConfiguration/OcmOperatorProgressItem.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx +1 -0
- package/lib/ocm/components/clusterConfiguration/operators/OperatorCheckbox.tsx +6 -3
- package/lib/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.tsx +2 -1
- package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +1 -1
- package/lib/ocm/components/clusterWizard/OperatorsBundle.tsx +25 -23
- package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +67 -44
- package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +30 -3
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +7 -18
- package/package.json +3 -3
|
@@ -8,7 +8,7 @@ const common_1 = require("../../../../common");
|
|
|
8
8
|
const TableSummaryExpandable_1 = require("./TableSummaryExpandable");
|
|
9
9
|
const operatorSpecs_1 = require("../../../../common/components/operators/operatorSpecs");
|
|
10
10
|
const ReviewOperatorsTable = ({ cluster }) => {
|
|
11
|
-
const opSpecs = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
11
|
+
const { byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
12
12
|
const rows = react_1.default.useMemo(() => {
|
|
13
13
|
var _a;
|
|
14
14
|
return (_a = cluster.monitoredOperators) === null || _a === void 0 ? void 0 : _a.filter(({ name }) => !!name && !!opSpecs[name]).map((op) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewOperatorsTable.js","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,yDAA6E;AAC7E,+CAAwD;AAExD,qEAAkE;AAClE,yFAAyF;AAElF,MAAM,oBAAoB,GAAG,CAAC,EAAE,OAAO,EAAwB,EAAE,EAAE;IACxE,MAAM,OAAO,GAAG,IAAA,gCAAgB,GAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ReviewOperatorsTable.js","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,yDAA6E;AAC7E,+CAAwD;AAExD,qEAAkE;AAClE,yFAAyF;AAElF,MAAM,oBAAoB,GAAG,CAAC,EAAE,OAAO,EAAwB,EAAE,EAAE;IACxE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAE9C,MAAM,IAAI,GAAG,eAAK,CAAC,OAAO,CACxB,GAAG,EAAE;;QACH,OAAA,MAAA,OAAO,CAAC,kBAAkB,0CACtB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAC/C,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;YACV,MAAM,IAAI,GAAG,EAAE,CAAC,IAAc,CAAC;YAC/B,OAAO;gBACL,KAAK,EAAE,YAAY,IAAI,EAAE;gBACzB,KAAK,EAAE;oBACL,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE;oBAC9B;wBACE,KAAK,EAAE,SAAS;wBAChB,KAAK,EAAE,EAAE,aAAa,EAAE,YAAY,IAAI,EAAE,EAAE;qBAC7C;iBACF;aACF,CAAC;QACJ,CAAC,CAAC,CAAA;KAAA,EACN,CAAC,OAAO,CAAC,kBAAkB,EAAE,OAAO,CAAC,CACtC,CAAC;IAEF,IAAI,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,CAAA,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,8BAAC,+CAAsB,IAAC,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,sBAAsB;QACpE,8BAAC,mBAAK,IACJ,OAAO,EAAE,0BAAY,CAAC,OAAO,EAC7B,OAAO,EAAE,KAAK,gBACF,wBAAwB,EACpC,SAAS,EAAC,cAAc;YAExB,8BAAC,mBAAK,QACH,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,8BAAC,gBAAE,IAAC,GAAG,EAAE,IAAA,2BAAkB,EAAC,GAAG,CAAC,KAAK,CAAC,IACnC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1B,8BAAC,gBAAE,kBAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAM,IAAI,CAAC,KAAK,GACtC,IAAI,CAAC,KAAK,CACR,CACN,CAAC,CACC,CACN,CAAC,CACI,CACF,CACe,CAC1B,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,oBAAoB,wBAiD/B"}
|
|
@@ -35,7 +35,7 @@ const getFailedHostsMessage = (failedHosts, totalHosts, message, hostsType) => {
|
|
|
35
35
|
};
|
|
36
36
|
const HostInstallationWarning = ({ cluster, failedHosts, totalHosts, title, hostsType, failedOperators = [], message, }) => {
|
|
37
37
|
const { addAlert, clearAlerts } = (0, common_1.useAlerts)();
|
|
38
|
-
const opSpecs = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
38
|
+
const { byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
39
39
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
40
40
|
react_1.default.createElement(react_core_1.Alert, { isInline: true, variant: "warning", title: title, actionLinks: react_1.default.createElement(react_1.default.Fragment, null,
|
|
41
41
|
react_1.default.createElement(react_core_1.AlertActionLink, { id: "cluster-installation-logs-button", onClick: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBarAlerts.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAAmF;AACnF,iDAA0C;AAC1C,4CAMyB;AACzB,mCAA0D;AAC1D,sEAAsE;AACtE,6CAA8C;AAE9C,sFAAsF;AAatF,MAAM,qBAAqB,GAAG,CAC5B,WAAmB,EACnB,UAAkB,EAClB,OAAgB,EAChB,SAAkB,EAClB,EAAE;IACF,IAAI,SAAS,KAAK,QAAQ,EAAE;QAC1B,IAAI,aAAO,EAAE;YACX,OAAO,CACL;;gBAG+B,qDAAgB;wBAC5C,CACJ,CAAC;SACH;QACD,OAAO,CACL;;YAE0B,qDAAgB;uBACvC,CACJ,CAAC;KACH;IACD,OAAO,CACL;QACG,WAAW;;QAAG,UAAU;;QAAG,IAAA,yBAAS,EAAC,UAAU,EAAE,SAAS,CAAC;;QAAG,OAAO;8GAErE,CACJ,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,EACtC,OAAO,EACP,WAAW,EACX,UAAU,EACV,KAAK,EACL,SAAS,EACT,eAAe,GAAG,EAAE,EACpB,OAAO,GAC0B,EAAE,EAAE;IACrC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAA,kBAAS,GAAE,CAAC;IAC9C,MAAM,OAAO,GAAG,IAAA,gCAAgB,GAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ProgressBarAlerts.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAAmF;AACnF,iDAA0C;AAC1C,4CAMyB;AACzB,mCAA0D;AAC1D,sEAAsE;AACtE,6CAA8C;AAE9C,sFAAsF;AAatF,MAAM,qBAAqB,GAAG,CAC5B,WAAmB,EACnB,UAAkB,EAClB,OAAgB,EAChB,SAAkB,EAClB,EAAE;IACF,IAAI,SAAS,KAAK,QAAQ,EAAE;QAC1B,IAAI,aAAO,EAAE;YACX,OAAO,CACL;;gBAG+B,qDAAgB;wBAC5C,CACJ,CAAC;SACH;QACD,OAAO,CACL;;YAE0B,qDAAgB;uBACvC,CACJ,CAAC;KACH;IACD,OAAO,CACL;QACG,WAAW;;QAAG,UAAU;;QAAG,IAAA,yBAAS,EAAC,UAAU,EAAE,SAAS,CAAC;;QAAG,OAAO;8GAErE,CACJ,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,EACtC,OAAO,EACP,WAAW,EACX,UAAU,EACV,KAAK,EACL,SAAS,EACT,eAAe,GAAG,EAAE,EACpB,OAAO,GAC0B,EAAE,EAAE;IACrC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAA,kBAAS,GAAE,CAAC;IAC9C,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAE9C,OAAO,CACL;QACE,8BAAC,kBAAK,IACJ,QAAQ,QACR,OAAO,EAAC,SAAS,EACjB,KAAK,EAAE,KAAK,EACZ,WAAW,EACT;gBACE,8BAAC,4BAAe,IACd,EAAE,EAAC,kCAAkC,EACrC,OAAO,EAAE,GAAG,EAAE;wBACZ,KAAK,IAAA,uCAA+B,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;oB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BAA0B,GAAG,CAAC,EAAE,OAAO,EAAmC,EAAE,EAAE;IACzF,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAA,kBAAS,GAAE,CAAC;IAC9C,OAAO,CACL;QACE,8BAAC,kBAAK,IACJ,QAAQ,QACR,OAAO,EAAC,SAAS,EACjB,KAAK,EAAC,yCAAyC,EAC/C,WAAW,EACT;gBACE,8BAAC,4BAAe,IACd,EAAE,EAAC,kCAAkC,EACrC,OAAO,EAAE,GAAG,EAAE;wBACZ,KAAK,IAAA,uCAA+B,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;oBAC1E,CAAC,EACD,UAAU,EAAE,CAAC,IAAA,+BAAsB,EAAC,OAAO,CAAC,iCAG5B,CACjB,yEAIC,CACP,CACJ,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,0BAA0B,8BA0BrC"}
|
|
@@ -13,15 +13,15 @@ const selectors_1 = require("../../store/slices/current-cluster/selectors");
|
|
|
13
13
|
const utils_1 = require("../clusterConfiguration/operators/utils");
|
|
14
14
|
const bundleSpecs_1 = require("../clusterConfiguration/operators/bundleSpecs");
|
|
15
15
|
const operatorSpecs_1 = require("../../../common/components/operators/operatorSpecs");
|
|
16
|
-
require("./OperatorsBundle.css");
|
|
17
16
|
const ClusterWizardContext_1 = require("./ClusterWizardContext");
|
|
18
|
-
|
|
17
|
+
require("./OperatorsBundle.css");
|
|
18
|
+
const BundleLabel = ({ bundle, searchTerm }) => {
|
|
19
19
|
var _a;
|
|
20
|
-
const opSpecs = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
20
|
+
const { byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
21
21
|
const bundleSpec = bundleSpecs_1.bundleSpecs[bundle.id || ''];
|
|
22
22
|
return (React.createElement(React.Fragment, null,
|
|
23
23
|
React.createElement("span", null,
|
|
24
|
-
bundle.title,
|
|
24
|
+
(0, operatorSpecs_1.highlightMatch)(bundle.title || '', searchTerm),
|
|
25
25
|
" "),
|
|
26
26
|
React.createElement(common_1.PopoverIcon, { component: 'a', headerContent: React.createElement("div", null, "Requirements and dependencies"), bodyContent: React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
27
27
|
(bundleSpec === null || bundleSpec === void 0 ? void 0 : bundleSpec.Description) && (React.createElement(react_core_1.StackItem, null,
|
|
@@ -36,18 +36,17 @@ const BundleLabel = ({ bundle }) => {
|
|
|
36
36
|
(bundleSpec === null || bundleSpec === void 0 ? void 0 : bundleSpec.docsLink) && (React.createElement(react_core_1.StackItem, null,
|
|
37
37
|
React.createElement(common_1.ExternalLink, { href: bundleSpec.docsLink }, "Learn more")))) })));
|
|
38
38
|
};
|
|
39
|
-
const getBundleSupportLevel = (bundle,
|
|
39
|
+
const getBundleSupportLevel = (bundle, opSpecsByKey) => {
|
|
40
40
|
let supportLevel = undefined;
|
|
41
41
|
if (bundle.operators) {
|
|
42
42
|
for (const op of bundle.operators) {
|
|
43
|
-
const operatorSpec =
|
|
43
|
+
const operatorSpec = opSpecsByKey[op];
|
|
44
44
|
if (operatorSpec) {
|
|
45
|
-
|
|
46
|
-
if (opSupportLevel === 'dev-preview') {
|
|
45
|
+
if (operatorSpec.supportLevel === 'dev-preview') {
|
|
47
46
|
supportLevel = 'dev-preview';
|
|
48
47
|
break;
|
|
49
48
|
}
|
|
50
|
-
else if (
|
|
49
|
+
else if (operatorSpec.supportLevel === 'tech-preview') {
|
|
51
50
|
supportLevel = 'tech-preview';
|
|
52
51
|
}
|
|
53
52
|
}
|
|
@@ -55,14 +54,14 @@ const getBundleSupportLevel = (bundle, opSpecs, getFeatureSupportLevel) => {
|
|
|
55
54
|
}
|
|
56
55
|
return supportLevel;
|
|
57
56
|
};
|
|
58
|
-
const BundleCard = ({ bundle, bundles, preflightRequirements, }) => {
|
|
57
|
+
const BundleCard = ({ bundle, bundles, preflightRequirements, searchTerm, }) => {
|
|
59
58
|
var _a, _b, _c;
|
|
60
59
|
const { values, setFieldValue } = (0, formik_1.useFormikContext)();
|
|
61
60
|
const isSNO = (0, react_redux_1.useSelector)(selectors_1.selectIsCurrentClusterSNO);
|
|
62
|
-
const { isFeatureSupported
|
|
63
|
-
const opSpecs = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
61
|
+
const { isFeatureSupported } = (0, newFeatureSupportLevels_1.useNewFeatureSupportLevel)();
|
|
62
|
+
const { byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
64
63
|
const { uiSettings } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
65
|
-
const supportLevel = getBundleSupportLevel(bundle, opSpecs
|
|
64
|
+
const supportLevel = getBundleSupportLevel(bundle, opSpecs);
|
|
66
65
|
const hasUnsupportedOperators = !!((_a = bundle.operators) === null || _a === void 0 ? void 0 : _a.some((op) => {
|
|
67
66
|
const operatorSpec = opSpecs[op];
|
|
68
67
|
if (!operatorSpec) {
|
|
@@ -102,27 +101,27 @@ const BundleCard = ({ bundle, bundles, preflightRequirements, }) => {
|
|
|
102
101
|
isChecked: isSelected,
|
|
103
102
|
} },
|
|
104
103
|
React.createElement(react_core_1.CardTitle, null,
|
|
105
|
-
React.createElement(BundleLabel, { bundle: bundle }))),
|
|
104
|
+
React.createElement(BundleLabel, { bundle: bundle, searchTerm: searchTerm }))),
|
|
106
105
|
React.createElement(react_core_1.CardBody, { isFilled: true },
|
|
107
106
|
React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
108
107
|
React.createElement(react_core_1.StackItem, { isFilled: true },
|
|
109
|
-
React.createElement("div", null, bundle.description)),
|
|
108
|
+
React.createElement("div", null, (0, operatorSpecs_1.highlightMatch)(bundle.description || '', searchTerm))),
|
|
110
109
|
React.createElement(react_core_1.StackItem, null,
|
|
111
110
|
React.createElement(react_core_1.Split, null,
|
|
112
111
|
React.createElement(react_core_1.SplitItem, { isFilled: true }),
|
|
113
112
|
React.createElement(react_core_1.SplitItem, null,
|
|
114
113
|
React.createElement(NewFeatureSupportLevelBadge_1.default, { featureId: bundle.id || '', supportLevel: supportLevel })))))))));
|
|
115
114
|
};
|
|
116
|
-
const OperatorsBundle = ({ bundles, preflightRequirements, }) => {
|
|
115
|
+
const OperatorsBundle = ({ bundles, preflightRequirements, searchTerm, }) => {
|
|
117
116
|
const isSingleClusterFeatureEnabled = (0, use_feature_1.useFeature)('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
118
117
|
return (React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
119
118
|
React.createElement(react_core_1.StackItem, null,
|
|
120
|
-
React.createElement(react_core_1.Title, { headingLevel: "h2", size: "lg" },
|
|
119
|
+
React.createElement(react_core_1.Title, { headingLevel: "h2", size: "lg" }, bundles.length > 0 ? 'Bundles' : '')),
|
|
121
120
|
React.createElement(react_core_1.StackItem, null,
|
|
122
121
|
React.createElement(react_core_1.Gallery, { hasGutter: true, minWidths: { default: '350px' } }, (isSingleClusterFeatureEnabled
|
|
123
122
|
? bundles.filter((b) => b.id && common_1.singleClusterBundles.includes(b.id))
|
|
124
123
|
: bundles).map((bundle) => (React.createElement(react_core_1.GalleryItem, { key: bundle.id },
|
|
125
|
-
React.createElement(BundleCard, { bundle: bundle, bundles: bundles, preflightRequirements: preflightRequirements }))))))));
|
|
124
|
+
React.createElement(BundleCard, { bundle: bundle, bundles: bundles, preflightRequirements: preflightRequirements, searchTerm: searchTerm }))))))));
|
|
126
125
|
};
|
|
127
126
|
exports.default = OperatorsBundle;
|
|
128
127
|
//# sourceMappingURL=OperatorsBundle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperatorsBundle.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsBundle.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAegC;AAKhC,yJAEwF;AACxF,4CAAmG;AACnG,mCAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"OperatorsBundle.js","sourceRoot":"","sources":["../../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,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,EAAE,UAAU,GACtB,CACU,CACf,CAAC,CACM,CACA,CACN,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -9,7 +9,7 @@ const services_1 = require("../../services");
|
|
|
9
9
|
const use_feature_1 = require("../../hooks/use-feature");
|
|
10
10
|
const OperatorCheckbox_1 = tslib_1.__importDefault(require("../clusterConfiguration/operators/OperatorCheckbox"));
|
|
11
11
|
const operatorSpecs_1 = require("../../../common/components/operators/operatorSpecs");
|
|
12
|
-
const OperatorsSelect = ({ cluster, bundles, preflightRequirements, }) => {
|
|
12
|
+
const OperatorsSelect = ({ cluster, bundles, preflightRequirements, searchTerm, }) => {
|
|
13
13
|
const [isLoading, setIsLoading] = (0, common_1.useStateSafely)(true);
|
|
14
14
|
const { addAlert } = (0, common_1.useAlerts)();
|
|
15
15
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
@@ -31,34 +31,50 @@ const OperatorsSelect = ({ cluster, bundles, preflightRequirements, }) => {
|
|
|
31
31
|
});
|
|
32
32
|
void fetchSupportedOperators();
|
|
33
33
|
}, [addAlert, setSupportedOperators, setIsLoading]);
|
|
34
|
-
const opSpecs = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
34
|
+
const { byCategory, byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
35
35
|
const operators = React.useMemo(() => {
|
|
36
|
-
return supportedOperators
|
|
37
|
-
.sort((a, b) => {
|
|
38
|
-
var _a, _b;
|
|
39
|
-
const aTitle = ((_a = opSpecs[a]) === null || _a === void 0 ? void 0 : _a.title) || a;
|
|
40
|
-
const bTitle = ((_b = opSpecs[b]) === null || _b === void 0 ? void 0 : _b.title) || b;
|
|
41
|
-
return aTitle.localeCompare(bTitle);
|
|
42
|
-
})
|
|
43
|
-
.filter((op) => {
|
|
36
|
+
return supportedOperators.filter((op) => {
|
|
44
37
|
if (!isSingleClusterFeatureEnabled) {
|
|
45
38
|
return true;
|
|
46
39
|
}
|
|
47
40
|
return common_1.singleClusterOperators.includes(op);
|
|
48
41
|
});
|
|
49
|
-
}, [isSingleClusterFeatureEnabled, supportedOperators
|
|
42
|
+
}, [isSingleClusterFeatureEnabled, supportedOperators]);
|
|
43
|
+
const selectedOperators = values.selectedOperators.filter((opKey) => operators.includes(opKey) && !!opSpecs[opKey]);
|
|
50
44
|
if (isLoading) {
|
|
51
45
|
return React.createElement(common_1.LoadingState, null);
|
|
52
46
|
}
|
|
53
|
-
|
|
54
|
-
return (React.createElement(
|
|
55
|
-
React.createElement(react_core_1.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
let foundAtLeastOneOperator = false;
|
|
48
|
+
return (React.createElement(React.Fragment, null,
|
|
49
|
+
React.createElement(react_core_1.ExpandableSection, { toggleText: `Single Operators (${operators.length} | ${selectedOperators.length} selected)`, onToggle: () => setIsExpanded(!isExpanded), isExpanded: isExpanded, "data-testid": "single-operators-section" },
|
|
50
|
+
React.createElement(react_core_1.Stack, { hasGutter: true, "data-testid": 'operators-form' }, Object.entries(byCategory).map(([categoryName, specs]) => {
|
|
51
|
+
let categoryOperators = specs.filter((spec) => operators.includes(spec.operatorKey));
|
|
52
|
+
// Filter by searchTerm
|
|
53
|
+
if (searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()) {
|
|
54
|
+
const term = searchTerm.trim().toLowerCase();
|
|
55
|
+
categoryOperators = categoryOperators.filter((spec) => {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
const op = opSpecs[spec.operatorKey];
|
|
58
|
+
const title = ((_a = op === null || op === void 0 ? void 0 : op.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '';
|
|
59
|
+
const description = ((_b = op === null || op === void 0 ? void 0 : op.descriptionText) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '';
|
|
60
|
+
return title.includes(term) || description.includes(term);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (categoryOperators.length === 0) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
foundAtLeastOneOperator = true;
|
|
67
|
+
if (!!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()) && !isExpanded) {
|
|
68
|
+
//if we found some results expand operators section
|
|
69
|
+
setIsExpanded(true);
|
|
70
|
+
}
|
|
71
|
+
return (React.createElement(React.Fragment, { key: categoryName },
|
|
72
|
+
React.createElement(react_core_1.StackItem, null,
|
|
73
|
+
React.createElement("strong", null, categoryName)),
|
|
74
|
+
categoryOperators.map((spec) => (React.createElement(react_core_1.StackItem, { key: spec.operatorKey },
|
|
75
|
+
React.createElement(OperatorCheckbox_1.default, Object.assign({ bundles: bundles, operatorId: spec.operatorKey, cluster: cluster, openshiftVersion: cluster.openshiftVersion, preflightRequirements: preflightRequirements, searchTerm: searchTerm }, spec)))))));
|
|
76
|
+
}))),
|
|
77
|
+
!foundAtLeastOneOperator && !!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()) && React.createElement(react_core_1.StackItem, null, "No results found")));
|
|
62
78
|
};
|
|
63
79
|
exports.default = OperatorsSelect;
|
|
64
80
|
//# sourceMappingURL=OperatorsSelect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperatorsSelect.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsSelect.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA6E;AAM7E,mCAA0C;AAC1C,4CAQyB;AACzB,6CAAkD;AAClD,yDAAqD;AACrD,kHAAkF;AAClF,sFAAsF;AAEtF,MAAM,eAAe,GAAG,CAAC,EACvB,OAAO,EACP,OAAO,EACP,qBAAqB,
|
|
1
|
+
{"version":3,"file":"OperatorsSelect.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard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S,IAAC,GAAG,EAAE,IAAI,CAAC,WAAW;wBAC9B,oBAAC,0BAAgB,kBACf,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,CAAC,WAAW,EAC5B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,EAC1C,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,EAAE,UAAU,IAClB,IAAI,EACR,CACQ,CACb,CAAC,CACa,CAClB,CAAC;YACJ,CAAC,CAAC,CACI,CACU;QACnB,CAAC,uBAAuB,IAAI,CAAC,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,EAAE,CAAA,IAAI,oBAAC,sBAAS,2BAA6B,CAC3F,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -14,6 +14,7 @@ const OperatorsStep = ({ cluster }) => {
|
|
|
14
14
|
const [bundlesLoading, setBundlesLoading] = react_1.default.useState(true);
|
|
15
15
|
const [bundles, setBundles] = react_1.default.useState([]);
|
|
16
16
|
const { preflightRequirements, isLoading } = (0, hooks_1.useClusterPreflightRequirements)(cluster.id);
|
|
17
|
+
const [searchTerm, setSearchTerm] = react_1.default.useState('');
|
|
17
18
|
react_1.default.useEffect(() => {
|
|
18
19
|
const fetchBundles = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
19
20
|
try {
|
|
@@ -32,16 +33,25 @@ const OperatorsStep = ({ cluster }) => {
|
|
|
32
33
|
});
|
|
33
34
|
void fetchBundles();
|
|
34
35
|
}, [addAlert]);
|
|
36
|
+
const filteredBundles = bundles.filter((bundle) => {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
return ((_a = bundle.title) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchTerm.toLowerCase())) ||
|
|
39
|
+
((_b = bundle.description) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(searchTerm.toLowerCase()));
|
|
40
|
+
});
|
|
35
41
|
if (isLoading || bundlesLoading) {
|
|
36
42
|
return react_1.default.createElement(common_1.LoadingState, null);
|
|
37
43
|
}
|
|
38
44
|
return (react_1.default.createElement(react_core_1.Stack, { hasGutter: true, "data-testid": 'operators-page' },
|
|
39
45
|
react_1.default.createElement(react_core_1.StackItem, null,
|
|
40
|
-
react_1.default.createElement(
|
|
46
|
+
react_1.default.createElement(react_core_1.Flex, { justifyContent: { default: 'justifyContentSpaceBetween' }, alignItems: { default: 'alignItemsCenter' } },
|
|
47
|
+
react_1.default.createElement(react_core_1.FlexItem, null,
|
|
48
|
+
react_1.default.createElement(common_1.ClusterWizardStepHeader, null, "Operators")),
|
|
49
|
+
react_1.default.createElement(react_core_1.FlexItem, { style: { minWidth: '300px' } },
|
|
50
|
+
react_1.default.createElement(react_core_1.SearchInput, { placeholder: 'Find bundles or operators', value: searchTerm, onChange: (_e, value) => setSearchTerm(value), onClear: () => setSearchTerm('') })))),
|
|
41
51
|
react_1.default.createElement(react_core_1.StackItem, null,
|
|
42
|
-
react_1.default.createElement(OperatorsBundle_1.default, { bundles:
|
|
52
|
+
react_1.default.createElement(OperatorsBundle_1.default, { bundles: filteredBundles, preflightRequirements: preflightRequirements, searchTerm: searchTerm })),
|
|
43
53
|
react_1.default.createElement(react_core_1.StackItem, null,
|
|
44
|
-
react_1.default.createElement(OperatorsSelect_1.default, { bundles: bundles, cluster: cluster, preflightRequirements: preflightRequirements }))));
|
|
54
|
+
react_1.default.createElement(OperatorsSelect_1.default, { bundles: bundles, cluster: cluster, preflightRequirements: preflightRequirements, searchTerm: searchTerm }))));
|
|
45
55
|
};
|
|
46
56
|
exports.OperatorsStep = OperatorsStep;
|
|
47
57
|
//# sourceMappingURL=OperatorsStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperatorsStep.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsStep.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,
|
|
1
|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AAU,EAAE,UAAU,GACtB,CACQ,CACN,CACT,CAAC;AACJ,CAAC,CAAC;AAzEW,QAAA,aAAa,iBAyExB"}
|
|
@@ -22,12 +22,10 @@ const getArmDisabledReason = (cluster) => {
|
|
|
22
22
|
return 'arm64 is not supported in this OpenShift version';
|
|
23
23
|
};
|
|
24
24
|
const getOdfDisabledReason = (cluster, activeFeatureConfiguration, isSupported) => {
|
|
25
|
-
var _a;
|
|
26
25
|
if (!cluster) {
|
|
27
26
|
return undefined;
|
|
28
27
|
}
|
|
29
|
-
const
|
|
30
|
-
const operatorTitle = ((_a = opSpecs[common_1.OPERATOR_NAME_ODF]) === null || _a === void 0 ? void 0 : _a.title) || '';
|
|
28
|
+
const operatorTitle = (0, operatorSpecs_1.getOperatorTitleByFeatureId)('ODF') || '';
|
|
31
29
|
const isArm = (activeFeatureConfiguration === null || activeFeatureConfiguration === void 0 ? void 0 : activeFeatureConfiguration.underlyingCpuArchitecture) === common_1.CpuArchitecture.ARM;
|
|
32
30
|
if (isArm && (0, common_1.isSNO)(cluster)) {
|
|
33
31
|
return `${operatorTitle} is not available when using Single Node OpenShift or ARM CPU architecture.`;
|
|
@@ -44,12 +42,10 @@ const getOdfDisabledReason = (cluster, activeFeatureConfiguration, isSupported)
|
|
|
44
42
|
return undefined;
|
|
45
43
|
};
|
|
46
44
|
const getCnvDisabledReason = (activeFeatureConfiguration, isSupported, platformType) => {
|
|
47
|
-
var _a;
|
|
48
45
|
if (!activeFeatureConfiguration) {
|
|
49
46
|
return undefined;
|
|
50
47
|
}
|
|
51
|
-
const
|
|
52
|
-
const operatorTitle = ((_a = opSpecs[common_1.OPERATOR_NAME_CNV]) === null || _a === void 0 ? void 0 : _a.title) || '';
|
|
48
|
+
const operatorTitle = (0, operatorSpecs_1.getOperatorTitleByFeatureId)('CNV') || '';
|
|
53
49
|
if (platformType === 'nutanix') {
|
|
54
50
|
return `${operatorTitle} is not available when Nutanix platform type is selected.`;
|
|
55
51
|
}
|
|
@@ -64,12 +60,10 @@ const getCnvDisabledReason = (activeFeatureConfiguration, isSupported, platformT
|
|
|
64
60
|
}
|
|
65
61
|
};
|
|
66
62
|
const getLvmDisabledReason = (activeFeatureConfiguration, isSupported, platformType) => {
|
|
67
|
-
var _a;
|
|
68
63
|
if (!activeFeatureConfiguration) {
|
|
69
64
|
return undefined;
|
|
70
65
|
}
|
|
71
|
-
const
|
|
72
|
-
const operatorTitle = (_a = opSpecs[common_1.OPERATOR_NAME_LVM]) === null || _a === void 0 ? void 0 : _a.title;
|
|
66
|
+
const operatorTitle = (0, operatorSpecs_1.getOperatorTitleByFeatureId)('LVM') || '';
|
|
73
67
|
if (platformType === 'nutanix') {
|
|
74
68
|
return `${operatorTitle} is not supported when Nutanix platform type is selected.`;
|
|
75
69
|
}
|
|
@@ -79,12 +73,10 @@ const getLvmDisabledReason = (activeFeatureConfiguration, isSupported, platformT
|
|
|
79
73
|
return undefined;
|
|
80
74
|
};
|
|
81
75
|
const getOscDisabledReason = (cluster, activeFeatureConfiguration, isSupported) => {
|
|
82
|
-
var _a;
|
|
83
76
|
if (!cluster) {
|
|
84
77
|
return undefined;
|
|
85
78
|
}
|
|
86
|
-
const
|
|
87
|
-
const operatorTitle = ((_a = opSpecs[common_1.OPERATOR_NAME_OSC]) === null || _a === void 0 ? void 0 : _a.title) || '';
|
|
79
|
+
const operatorTitle = (0, operatorSpecs_1.getOperatorTitleByFeatureId)('OSC') || '';
|
|
88
80
|
if (!isSupported) {
|
|
89
81
|
return `${operatorTitle} is not supported in this OpenShift version.`;
|
|
90
82
|
}
|
|
@@ -227,12 +219,10 @@ const isFeatureSupportedAndAvailable = (supportLevel) => {
|
|
|
227
219
|
exports.isFeatureSupportedAndAvailable = isFeatureSupportedAndAvailable;
|
|
228
220
|
exports.hostsNetworkConfigurationDisabledReason = "DHCP only is the supported hosts' network configuration when external partner integrations is selected";
|
|
229
221
|
const getOpenShiftAIDisabledReason = (cluster, activeFeatureConfiguration, isSupported) => {
|
|
230
|
-
var _a;
|
|
231
222
|
if (!cluster) {
|
|
232
223
|
return undefined;
|
|
233
224
|
}
|
|
234
|
-
const
|
|
235
|
-
const operatorTitle = ((_a = opSpecs[common_1.OPERATOR_NAME_OPENSHIFT_AI]) === null || _a === void 0 ? void 0 : _a.title) || '';
|
|
225
|
+
const operatorTitle = (0, operatorSpecs_1.getOperatorTitleByFeatureId)('OPENSHIFT_AI') || '';
|
|
236
226
|
const isArm = (activeFeatureConfiguration === null || activeFeatureConfiguration === void 0 ? void 0 : activeFeatureConfiguration.underlyingCpuArchitecture) === common_1.CpuArchitecture.ARM;
|
|
237
227
|
if (isArm) {
|
|
238
228
|
return `${operatorTitle} is not available when ARM CPU architecture is selected.`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureStateUtils.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/featureSupportLevels/featureStateUtils.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"featureStateUtils.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/featureSupportLevels/featureStateUtils.ts"],"names":[],"mappings":";;;AAAA,4CAOyB;AAMzB,qFAA+F;AAC/F,sFAAiG;AAEpF,QAAA,mBAAmB,GAAG,gEAAgE,CAAC;AAEpG,MAAM,oBAAoB,GAAG,CAAC,OAA4B,EAAE,WAAoB,EAAE,EAAE;IAClF,IAAI,OAAO,EAAE;QACX,OAAO,2BAAmB,CAAC;KAC5B;IACD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,kEAAkE,CAAC;KAC3E;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,OAA4B,EAAE,EAAE;IAC5D,IAAI,OAAO,EAAE;QACX,OAAO,2BAAmB,CAAC;KAC5B;;QAAM,OAAO,kDAAkD,CAAC;AACnE,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAC3B,OAA4B,EAC5B,0BAAkE,EAClE,WAAoB,EACpB,EA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ACpF;IACD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,yCAAyC,aAAa,oIAAoI,CAAC;KACnM;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
|
|
@@ -80,7 +80,7 @@ type OperatorsPopoverProps = OperatorListProps & {
|
|
|
80
80
|
|
|
81
81
|
const OperatorsPopover = ({ operators, children }: OperatorsPopoverProps) => {
|
|
82
82
|
const { t } = useTranslation();
|
|
83
|
-
const opSpecs = useOperatorSpecs();
|
|
83
|
+
const { byKey: opSpecs } = useOperatorSpecs();
|
|
84
84
|
|
|
85
85
|
return (
|
|
86
86
|
<Popover
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const DESCRIPTION_MTV =
|
|
2
|
+
'This Toolkit (MTV) enables you to migrate virtual machines from VMware vSphere, Red Hat Virtualization, or OpenStack to OpenShift Virtualization running on Red Hat OpenShift.';
|
|
3
|
+
|
|
4
|
+
export const DESCRIPTION_AMD_GPU =
|
|
5
|
+
'Automate the management of AMD software components needed to provision and monitor GPUs.';
|
|
6
|
+
|
|
7
|
+
export const DESCRIPTION_LSO = 'Allows provisioning of persistent storage by using local volumes.';
|
|
8
|
+
|
|
9
|
+
export const DESCRIPTION_AUTHORINO =
|
|
10
|
+
'Lightweight external authorization service for tailor-made Zero Trust API security.';
|
|
11
|
+
|
|
12
|
+
export const DESCRIPTION_CNV = 'Run virtual machines alongside containers on one platform.';
|
|
13
|
+
|
|
14
|
+
export const DESCRIPTION_FENCE_AGENTS_REMEDIATION =
|
|
15
|
+
'Externally fences failed nodes using power controllers.';
|
|
16
|
+
|
|
17
|
+
export const DESCRIPTION_KMM = 'Management of kernel modules.';
|
|
18
|
+
|
|
19
|
+
export const DESCRIPTION_KUBE_DESCHEDULER =
|
|
20
|
+
'Evicts pods to reschedule them onto more suitable nodes.';
|
|
21
|
+
|
|
22
|
+
export const DESCRIPTION_MCE = 'Create, import, and manage multiple clusters from this cluster.';
|
|
23
|
+
|
|
24
|
+
export const DESCRIPTION_NMSTATE =
|
|
25
|
+
'Provides users with functionality to configure various network interface types, DNS, and routing on cluster nodes.';
|
|
26
|
+
|
|
27
|
+
export const DESCRIPTION_NODE_FEATURE_DISCOVERY =
|
|
28
|
+
'Manage the detection of hardware features and configuration by labeling nodes with hardware-specific information.';
|
|
29
|
+
|
|
30
|
+
export const DESCRIPTION_NODE_HEALTHCHECK = 'Identify Unhealthy Nodes.';
|
|
31
|
+
|
|
32
|
+
export const DESCRIPTION_NODE_MAINTENANCE = 'Place nodes in maintenance mode.';
|
|
33
|
+
|
|
34
|
+
export const DESCRIPTION_NVIDIA_GPU =
|
|
35
|
+
'Automate the management of NVIDIA software components needed to provision and monitor GPUs.';
|
|
36
|
+
|
|
37
|
+
export const DESCRIPTION_ODF = 'Persistent software-defined storage for hybrid applications.';
|
|
38
|
+
|
|
39
|
+
export const DESCRIPTION_OPENSHIFT_AI =
|
|
40
|
+
'Train, serve, monitor and manage AI/ML models and applications.';
|
|
41
|
+
|
|
42
|
+
export const DESCRIPTION_OSC =
|
|
43
|
+
'OpenShift sandboxed containers support for OpenShift Container Platform provides users with built-in support for running Kata Containers as an additional optional runtime. It provides an additional virtualization machine(VM) isolation layer for pods.';
|
|
44
|
+
|
|
45
|
+
export const DESCRIPTION_PIPELINES =
|
|
46
|
+
'Cloud-native continuous integration and delivery (CI/CD) solution for building pipelines using Tekton.';
|
|
47
|
+
|
|
48
|
+
export const DESCRIPTION_SELF_NODE_REMEDIATION =
|
|
49
|
+
'Allows nodes to reboot themselves when they become unhealthy.';
|
|
50
|
+
|
|
51
|
+
export const DESCRIPTION_SERVERLESS =
|
|
52
|
+
'Deploy workflow applications based on the CNCF Serverless Workflow specification.';
|
|
53
|
+
|
|
54
|
+
export const DESCRIPTION_SERVICEMESH =
|
|
55
|
+
'Platform that provides behavioral insight and operational control over a service mesh.';
|
|
56
|
+
|
|
57
|
+
export const DESCRIPTION_LVM =
|
|
58
|
+
'Storage virtualization that offers a more flexible approach for disk space management.';
|