@openshift-assisted/ui-lib 2.42.1 → 2.42.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/build/@types/common/components/operators/operatorSpecs.d.ts +10 -3
  2. package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
  3. package/build/@types/common/components/operators/test.d.ts +50 -0
  4. package/build/@types/common/components/operators/test.d.ts.map +1 -0
  5. package/build/@types/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  6. package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts +2 -1
  7. package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts.map +1 -1
  8. package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts +2 -1
  9. package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts.map +1 -1
  10. package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts +2 -1
  11. package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts.map +1 -1
  12. package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
  13. package/build/cjs/common/components/operators/operatorSpecs.js +111 -139
  14. package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
  15. package/build/cjs/common/components/operators/test.js +323 -0
  16. package/build/cjs/common/components/operators/test.js.map +1 -0
  17. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +13 -4
  18. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  19. package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js +3 -3
  20. package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js.map +1 -1
  21. package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js +8 -8
  22. package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js.map +1 -1
  23. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +33 -14
  24. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
  25. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +13 -3
  26. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  27. package/lib/common/components/operators/operatorSpecs.tsx +124 -160
  28. package/lib/common/components/operators/test.tsx +469 -0
  29. package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +21 -9
  30. package/lib/ocm/components/clusterConfiguration/operators/OperatorCheckbox.tsx +5 -2
  31. package/lib/ocm/components/clusterWizard/OperatorsBundle.tsx +15 -7
  32. package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +58 -37
  33. package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +30 -3
  34. package/package.json +3 -3
@@ -3,6 +3,11 @@ import { Cluster, SupportLevel } from '@openshift-assisted/types/assisted-instal
3
3
  import { FeatureId } from '../../types';
4
4
  import { GetFeatureSupportLevel } from '../newFeatureSupportLevels';
5
5
  export declare const isOCPVersionEqualsOrMore: (openshiftVersion: string, ocpVersionToCompare: string) => boolean;
6
+ export declare const highlightMatch: (text: string, searchTerm?: string) => React.ReactNode;
7
+ export declare const HighlightedText: ({ text, searchTerm }: {
8
+ text: string;
9
+ searchTerm?: string | undefined;
10
+ }) => React.JSX.Element;
6
11
  export type OperatorSpec = {
7
12
  operatorKey: string;
8
13
  title: string;
@@ -10,12 +15,12 @@ export type OperatorSpec = {
10
15
  descriptionText?: string;
11
16
  Description?: React.ComponentType<{
12
17
  openshiftVersion?: string;
18
+ searchTerm?: string;
13
19
  }>;
14
20
  notStandalone?: boolean;
15
21
  Requirements?: React.ComponentType<{
16
22
  cluster: Cluster;
17
23
  }>;
18
- category: string;
19
24
  supportLevel?: SupportLevel | undefined;
20
25
  };
21
26
  export declare const getOperatorSpecs: (getFeatureSupportLevel: GetFeatureSupportLevel, useLVMS?: boolean) => {
@@ -33,8 +38,10 @@ declare enum Category {
33
38
  VIRT = 1,
34
39
  AI = 2,
35
40
  NETWORK = 3,
36
- REMEDIATION = 4,
37
- OTHER = 5
41
+ CI_CD = 4,
42
+ PLATFORM = 5,
43
+ SECURITY = 6,
44
+ SCHEDULING = 7
38
45
  }
39
46
  export declare const categories: {
40
47
  [key in Category]: string;
@@ -1 +1 @@
1
- {"version":3,"file":"operatorSpecs.d.ts","sourceRoot":"","sources":["../../../../../lib/common/components/operators/operatorSpecs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAqDxC,OAAO,EAAE,sBAAsB,EAA6B,MAAM,4BAA4B,CAAC;AA2B/F,eAAO,MAAM,wBAAwB,qBACjB,MAAM,uBACH,MAAM,KAC1B,OAOF,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,2BACH,sBAAsB,YACpC,OAAO;;CA6VlB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;CAqB5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,cAAe,SAAS,KAAG,MAAM,GAAG,SAW3E,CAAC;AAEF,aAAK,QAAQ;IACX,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,EAAE,IAAA;IACF,OAAO,IAAA;IACP,WAAW,IAAA;IACX,KAAK,IAAA;CACN;AAED,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,QAAQ,GAAG,MAAM;CAOnD,CAAC"}
1
+ {"version":3,"file":"operatorSpecs.d.ts","sourceRoot":"","sources":["../../../../../lib/common/components/operators/operatorSpecs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA+CxC,OAAO,EAAE,sBAAsB,EAA6B,MAAM,4BAA4B,CAAC;AAwB/F,eAAO,MAAM,wBAAwB,qBACjB,MAAM,uBACH,MAAM,KAC1B,OAOF,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,MAAM,eAAe,MAAM,KAAG,MAAM,SAgBxE,CAAC;AAEF,eAAO,MAAM,eAAe;UAAkC,MAAM;;uBAEnE,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACzD,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,2BACH,sBAAsB,YACpC,OAAO;;CAySlB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;CAqB5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,cAAe,SAAS,KAAG,MAAM,GAAG,SAW3E,CAAC;AAEF,aAAK,QAAQ;IACX,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,EAAE,IAAA;IACF,OAAO,IAAA;IACP,KAAK,IAAA;IACL,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,UAAU,IAAA;CACX;AAED,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,QAAQ,GAAG,MAAM;CASnD,CAAC"}
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import { Cluster, SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
3
+ import { FeatureId } from '../../types';
4
+ import { GetFeatureSupportLevel } from '../newFeatureSupportLevels';
5
+ export declare const isOCPVersionEqualsOrMore: (openshiftVersion: string, ocpVersionToCompare: string) => boolean;
6
+ export declare const highlightMatch: (text: string, searchTerm?: string) => React.ReactNode;
7
+ export declare const HighlightedText: ({ text, searchTerm }: {
8
+ text: string;
9
+ searchTerm?: string | undefined;
10
+ }) => React.JSX.Element;
11
+ export type OperatorSpec = {
12
+ operatorKey: string;
13
+ title: string;
14
+ featureId: FeatureId;
15
+ descriptionText?: string;
16
+ Description?: React.ComponentType<{
17
+ openshiftVersion?: string;
18
+ searchTerm?: string;
19
+ }>;
20
+ notStandalone?: boolean;
21
+ Requirements?: React.ComponentType<{
22
+ cluster: Cluster;
23
+ }>;
24
+ supportLevel?: SupportLevel | undefined;
25
+ };
26
+ export declare const getOperatorSpecs: (getFeatureSupportLevel: GetFeatureSupportLevel, useLVMS?: boolean) => {
27
+ [category: string]: OperatorSpec[];
28
+ };
29
+ export declare const useOperatorSpecs: () => {
30
+ byCategory: {
31
+ [category: string]: OperatorSpec[];
32
+ };
33
+ byKey: Record<string, OperatorSpec>;
34
+ };
35
+ export declare const getOperatorTitleByFeatureId: (featureId: FeatureId) => string | undefined;
36
+ declare enum Category {
37
+ STORAGE = 0,
38
+ VIRT = 1,
39
+ AI = 2,
40
+ NETWORK = 3,
41
+ CI_CD = 4,
42
+ PLATFORM = 5,
43
+ SECURITY = 6,
44
+ SCHEDULING = 7
45
+ }
46
+ export declare const categories: {
47
+ [key in Category]: string;
48
+ };
49
+ export {};
50
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../../lib/common/components/operators/test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA+CxC,OAAO,EAAE,sBAAsB,EAA6B,MAAM,4BAA4B,CAAC;AAwB/F,eAAO,MAAM,wBAAwB,qBACjB,MAAM,uBACH,MAAM,KAC1B,OAOF,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,MAAM,eAAe,MAAM,KAAG,MAAM,SAUxE,CAAC;AAEF,eAAO,MAAM,eAAe;UAAkC,MAAM;;uBAEnE,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACzD,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,2BACH,sBAAsB,YACpC,OAAO;;CAwSlB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;CAqB5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,cAAe,SAAS,KAAG,MAAM,GAAG,SAW3E,CAAC;AAEF,aAAK,QAAQ;IACX,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,EAAE,IAAA;IACF,OAAO,IAAA;IACP,KAAK,IAAA;IACL,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,UAAU,IAAA;CACX;AAED,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,QAAQ,GAAG,MAAM;CASnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ControlPlaneNodesDropdown.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EACL,yBAAyB,EAE1B,MAAM,oDAAoD,CAAC;AAO5D,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,eAAO,MAAM,sBAAsB,yBAelC,CAAC;AAOF,UAAU,8BAA8B;IACtC,uBAAuB,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,wBAAwB,0BACZ,MAAM,oCACK,OAAO,gBAC3B,OAAO,KACpB,OAQF,CAAC;AAEF,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA2GvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"ControlPlaneNodesDropdown.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EACL,yBAAyB,EAE1B,MAAM,oDAAoD,CAAC;AAQ5D,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,eAAO,MAAM,sBAAsB,yBAelC,CAAC;AAQF,UAAU,8BAA8B;IACtC,uBAAuB,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,wBAAwB,0BACZ,MAAM,oCACK,OAAO,gBAC3B,OAAO,KACpB,OAQF,CAAC;AAEF,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAqHvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { Bundle, Cluster, PreflightHardwareRequirements } from '@openshift-assisted/types/assisted-installer-service';
3
3
  import { OperatorSpec } from '../../../../common/components/operators/operatorSpecs';
4
- declare const OperatorCheckbox: ({ bundles, cluster, operatorId, title, featureId, notStandalone, Description, Requirements, openshiftVersion, preflightRequirements, }: {
4
+ declare const OperatorCheckbox: ({ bundles, cluster, operatorId, title, featureId, notStandalone, Description, Requirements, openshiftVersion, preflightRequirements, searchTerm, }: {
5
5
  bundles: Bundle[];
6
6
  cluster: Cluster;
7
7
  operatorId: string;
8
8
  openshiftVersion?: string | undefined;
9
9
  preflightRequirements: PreflightHardwareRequirements | undefined;
10
+ searchTerm?: string | undefined;
10
11
  } & OperatorSpec) => React.JSX.Element;
11
12
  export default OperatorCheckbox;
12
13
  //# sourceMappingURL=OperatorCheckbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OperatorCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterConfiguration/operators/OperatorCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,OAAO,EACL,MAAM,EACN,OAAO,EACP,6BAA6B,EAC9B,MAAM,sDAAsD,CAAC;AAS9D,OAAO,EACL,YAAY,EAEb,MAAM,uDAAuD,CAAC;AA+E/D,QAAA,MAAM,gBAAgB;aAYX,MAAM,EAAE;aACR,OAAO;gBACJ,MAAM;;2BAEK,6BAA6B,GAAG,SAAS;sCAkFjE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"OperatorCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterConfiguration/operators/OperatorCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,OAAO,EACL,MAAM,EACN,OAAO,EACP,6BAA6B,EAC9B,MAAM,sDAAsD,CAAC;AAS9D,OAAO,EAEL,YAAY,EAEb,MAAM,uDAAuD,CAAC;AA+E/D,QAAA,MAAM,gBAAgB;aAaX,MAAM,EAAE;aACR,OAAO;gBACJ,MAAM;;2BAEK,6BAA6B,GAAG,SAAS;;sCAmFjE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { Bundle, PreflightHardwareRequirements } from '@openshift-assisted/types/assisted-installer-service';
3
3
  import './OperatorsBundle.css';
4
- declare const OperatorsBundle: ({ bundles, preflightRequirements, }: {
4
+ declare const OperatorsBundle: ({ bundles, preflightRequirements, searchTerm, }: {
5
5
  bundles: Bundle[];
6
6
  preflightRequirements: PreflightHardwareRequirements | undefined;
7
+ searchTerm?: string | undefined;
7
8
  }) => React.JSX.Element;
8
9
  export default OperatorsBundle;
9
10
  //# sourceMappingURL=OperatorsBundle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OperatorsBundle.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsBundle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,EACL,MAAM,EACN,6BAA6B,EAC9B,MAAM,sDAAsD,CAAC;AAc9D,OAAO,uBAAuB,CAAC;AA2K/B,QAAA,MAAM,eAAe;aAIV,MAAM,EAAE;2BACM,6BAA6B,GAAG,SAAS;uBA6BjE,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"OperatorsBundle.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsBundle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,EACL,MAAM,EACN,6BAA6B,EAC9B,MAAM,sDAAsD,CAAC;AAkB9D,OAAO,uBAAuB,CAAC;AA4K/B,QAAA,MAAM,eAAe;aAKV,MAAM,EAAE;2BACM,6BAA6B,GAAG,SAAS;;uBA+BjE,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { Bundle, Cluster, PreflightHardwareRequirements } from '@openshift-assisted/types/assisted-installer-service';
3
- declare const OperatorsSelect: ({ cluster, bundles, preflightRequirements, }: {
3
+ declare const OperatorsSelect: ({ cluster, bundles, preflightRequirements, searchTerm, }: {
4
4
  cluster: Cluster;
5
5
  bundles: Bundle[];
6
6
  preflightRequirements: PreflightHardwareRequirements | undefined;
7
+ searchTerm?: string | undefined;
7
8
  }) => React.JSX.Element;
8
9
  export default OperatorsSelect;
9
10
  //# sourceMappingURL=OperatorsSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OperatorsSelect.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,MAAM,EACN,OAAO,EACP,6BAA6B,EAC9B,MAAM,sDAAsD,CAAC;AAgB9D,QAAA,MAAM,eAAe;aAKV,OAAO;aACP,MAAM,EAAE;2BACM,6BAA6B,GAAG,SAAS;uBAkFjE,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"OperatorsSelect.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,MAAM,EACN,OAAO,EACP,6BAA6B,EAC9B,MAAM,sDAAsD,CAAC;AAgB9D,QAAA,MAAM,eAAe;aAMV,OAAO;aACP,MAAM,EAAE;2BACM,6BAA6B,GAAG,SAAS;;uBAsGjE,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OperatorsStep.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,oBAAoB,EAMrB,MAAM,iBAAiB,CAAC;AAMzB,eAAO,MAAM,aAAa,gBAAiB,oBAAoB,sBA8C9D,CAAC"}
1
+ {"version":3,"file":"OperatorsStep.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,oBAAoB,EAMrB,MAAM,iBAAiB,CAAC;AAMzB,eAAO,MAAM,aAAa,gBAAiB,oBAAoB,sBAyE9D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.categories = exports.getOperatorTitleByFeatureId = exports.useOperatorSpecs = exports.getOperatorSpecs = exports.isOCPVersionEqualsOrMore = void 0;
3
+ exports.categories = exports.getOperatorTitleByFeatureId = exports.useOperatorSpecs = exports.getOperatorSpecs = exports.HighlightedText = exports.highlightMatch = exports.isOCPVersionEqualsOrMore = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const constants_1 = require("../../config/constants");
@@ -17,6 +17,24 @@ const isOCPVersionEqualsOrMore = (openshiftVersion, ocpVersionToCompare) => {
17
17
  (Number(majorA) === Number(majorB) && Number(minorA) >= Number(minorB)));
18
18
  };
19
19
  exports.isOCPVersionEqualsOrMore = isOCPVersionEqualsOrMore;
20
+ const highlightMatch = (text, searchTerm) => {
21
+ if (!searchTerm)
22
+ return text;
23
+ try {
24
+ const escapeSearchTerm = searchTerm.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
25
+ const regex = new RegExp(`(${escapeSearchTerm})`, 'gi');
26
+ const parts = text.split(regex);
27
+ return parts.map((part, i) => part.toLowerCase() === searchTerm.toLowerCase() ? react_1.default.createElement("mark", { key: i }, part) : part);
28
+ }
29
+ catch (err) {
30
+ // eslint-disable-next-line no-console
31
+ console.log('failed to highlight search text', err);
32
+ return text;
33
+ }
34
+ };
35
+ exports.highlightMatch = highlightMatch;
36
+ const HighlightedText = ({ text, searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null, (0, exports.highlightMatch)(text, searchTerm)));
37
+ exports.HighlightedText = HighlightedText;
20
38
  const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
21
39
  return {
22
40
  [exports.categories[Category.STORAGE]]: [
@@ -25,12 +43,11 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
25
43
  title: 'Local Storage Operator',
26
44
  featureId: 'LSO',
27
45
  descriptionText: operatorDescriptions_1.DESCRIPTION_LSO,
28
- Description: ({ openshiftVersion }) => (react_1.default.createElement(react_1.default.Fragment, null,
29
- operatorDescriptions_1.DESCRIPTION_LSO,
46
+ Description: ({ openshiftVersion, searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
47
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_LSO, searchTerm: searchTerm }),
30
48
  ' ',
31
49
  react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getLsoLink)(openshiftVersion) }, "Learn more"))),
32
50
  notStandalone: true,
33
- category: exports.categories[Category.STORAGE],
34
51
  supportLevel: getFeatureSupportLevel('LSO'),
35
52
  },
36
53
  {
@@ -38,11 +55,10 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
38
55
  title: useLVMS ? 'Logical Volume Manager Storage' : 'Logical Volume Manager',
39
56
  featureId: 'LVM',
40
57
  descriptionText: operatorDescriptions_1.DESCRIPTION_LVM,
41
- Description: ({ openshiftVersion }) => useLVMS ? (react_1.default.createElement(react_1.default.Fragment, null,
42
- operatorDescriptions_1.DESCRIPTION_LVM,
58
+ Description: ({ openshiftVersion, searchTerm }) => useLVMS ? (react_1.default.createElement(react_1.default.Fragment, null,
59
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_LVM, searchTerm: searchTerm }),
43
60
  ' ',
44
61
  react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getLvmsDocsLink)(openshiftVersion) }, "Learn more"))) : (react_1.default.createElement(react_1.default.Fragment, null, operatorDescriptions_1.DESCRIPTION_LVM)),
45
- category: exports.categories[Category.STORAGE],
46
62
  supportLevel: getFeatureSupportLevel('LVM'),
47
63
  },
48
64
  {
@@ -51,11 +67,10 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
51
67
  featureId: 'ODF',
52
68
  descriptionText: operatorDescriptions_1.DESCRIPTION_ODF,
53
69
  Requirements: () => (react_1.default.createElement(ui_1.ExternalLink, { href: config_1.ODF_REQUIREMENTS_LINK }, "Learn more about the requirements for OpenShift Data Foundation")),
54
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
55
- operatorDescriptions_1.DESCRIPTION_ODF,
56
- " ",
70
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
71
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_ODF, searchTerm: searchTerm }),
72
+ ' ',
57
73
  react_1.default.createElement(ui_1.ExternalLink, { href: config_1.ODF_LINK }, "Learn more"))),
58
- category: exports.categories[Category.STORAGE],
59
74
  supportLevel: getFeatureSupportLevel('ODF'),
60
75
  },
61
76
  ],
@@ -66,11 +81,10 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
66
81
  featureId: 'CNV',
67
82
  descriptionText: operatorDescriptions_1.DESCRIPTION_CNV,
68
83
  Requirements: () => (react_1.default.createElement(react_1.default.Fragment, null, "Enabled CPU virtualization support in BIOS (Intel-VT / AMD-V) on all nodes")),
69
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
70
- operatorDescriptions_1.DESCRIPTION_CNV,
71
- " ",
84
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
85
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_CNV, searchTerm: searchTerm }),
86
+ ' ',
72
87
  react_1.default.createElement(ui_1.ExternalLink, { href: config_1.CNV_LINK }, "Learn more"))),
73
- category: exports.categories[Category.VIRT],
74
88
  supportLevel: getFeatureSupportLevel('CNV'),
75
89
  },
76
90
  {
@@ -78,13 +92,24 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
78
92
  title: 'Migration Toolkit for Virtualization',
79
93
  featureId: 'MTV',
80
94
  descriptionText: operatorDescriptions_1.DESCRIPTION_MTV,
81
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
82
- operatorDescriptions_1.DESCRIPTION_MTV,
83
- " ",
95
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
96
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_MTV, searchTerm: searchTerm }),
97
+ ' ',
84
98
  react_1.default.createElement(ui_1.ExternalLink, { href: config_1.MTV_LINK }, "Learn more"))),
85
- category: exports.categories[Category.VIRT],
86
99
  supportLevel: getFeatureSupportLevel('MTV'),
87
100
  },
101
+ {
102
+ operatorKey: constants_1.OPERATOR_NAME_OSC,
103
+ title: 'OpenShift sandboxed containers',
104
+ featureId: 'OSC',
105
+ descriptionText: operatorDescriptions_1.DESCRIPTION_OSC,
106
+ Requirements: () => (react_1.default.createElement(ui_1.ExternalLink, { href: config_1.OSC_REQUIREMENTS_LINK }, "Learn more about the requirements for OpenShift sandboxed containers")),
107
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
108
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_OSC, searchTerm: searchTerm }),
109
+ ' ',
110
+ react_1.default.createElement(ui_1.ExternalLink, { href: config_1.OSC_LINK }, "Learn more"))),
111
+ supportLevel: getFeatureSupportLevel('OSC'),
112
+ },
88
113
  ],
89
114
  [exports.categories[Category.AI]]: [
90
115
  {
@@ -93,11 +118,10 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
93
118
  featureId: 'OPENSHIFT_AI',
94
119
  descriptionText: operatorDescriptions_1.DESCRIPTION_OPENSHIFT_AI,
95
120
  Requirements: () => (react_1.default.createElement(ui_1.ExternalLink, { href: config_1.OPENSHIFT_AI_REQUIREMENTS_LINK }, "Learn more")),
96
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
97
- operatorDescriptions_1.DESCRIPTION_OPENSHIFT_AI,
121
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
122
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_OPENSHIFT_AI, searchTerm: searchTerm }),
98
123
  ' ',
99
124
  react_1.default.createElement(ui_1.ExternalLink, { href: config_1.OPENSHIFT_AI_LINK }, "Learn more"))),
100
- category: exports.categories[Category.AI],
101
125
  supportLevel: getFeatureSupportLevel('OPENSHIFT_AI'),
102
126
  },
103
127
  {
@@ -106,8 +130,10 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
106
130
  featureId: 'AMD_GPU',
107
131
  descriptionText: operatorDescriptions_1.DESCRIPTION_AMD_GPU,
108
132
  Requirements: () => react_1.default.createElement(react_1.default.Fragment, null, "Requires at least one supported AMD GPU"),
109
- Description: () => react_1.default.createElement(react_1.default.Fragment, null, operatorDescriptions_1.DESCRIPTION_AMD_GPU),
110
- category: exports.categories[Category.AI],
133
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
134
+ ' ',
135
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_AMD_GPU, searchTerm: searchTerm }),
136
+ ' ')),
111
137
  supportLevel: getFeatureSupportLevel('AMD_GPU'),
112
138
  },
113
139
  {
@@ -116,10 +142,10 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
116
142
  featureId: 'NVIDIA_GPU',
117
143
  descriptionText: operatorDescriptions_1.DESCRIPTION_NVIDIA_GPU,
118
144
  Requirements: () => react_1.default.createElement(react_1.default.Fragment, null, "Requires at least one supported NVIDIA GPU"),
119
- Description: ({ openshiftVersion }) => (react_1.default.createElement(react_1.default.Fragment, null,
120
- operatorDescriptions_1.DESCRIPTION_NVIDIA_GPU,
145
+ Description: ({ openshiftVersion, searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
146
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_NVIDIA_GPU, searchTerm: searchTerm }),
147
+ ' ',
121
148
  react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getNvidiaGpuLink)(openshiftVersion) }, "Learn more"))),
122
- category: exports.categories[Category.AI],
123
149
  supportLevel: getFeatureSupportLevel('NVIDIA_GPU'),
124
150
  },
125
151
  ],
@@ -129,11 +155,10 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
129
155
  title: 'NMState',
130
156
  featureId: 'NMSTATE',
131
157
  descriptionText: operatorDescriptions_1.DESCRIPTION_NMSTATE,
132
- Description: ({ openshiftVersion }) => (react_1.default.createElement(react_1.default.Fragment, null,
133
- operatorDescriptions_1.DESCRIPTION_NMSTATE,
158
+ Description: ({ openshiftVersion, searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
159
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_NMSTATE, searchTerm: searchTerm }),
134
160
  ' ',
135
161
  react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getNmstateLink)(openshiftVersion) }, "Learn more"))),
136
- category: exports.categories[Category.NETWORK],
137
162
  supportLevel: getFeatureSupportLevel('NMSTATE'),
138
163
  },
139
164
  {
@@ -141,93 +166,50 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
141
166
  title: 'Service Mesh',
142
167
  featureId: 'SERVICEMESH',
143
168
  descriptionText: operatorDescriptions_1.DESCRIPTION_SERVICEMESH,
144
- Description: ({ openshiftVersion }) => (react_1.default.createElement(react_1.default.Fragment, null,
145
- operatorDescriptions_1.DESCRIPTION_SERVICEMESH,
169
+ Description: ({ openshiftVersion, searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
170
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_SERVICEMESH, searchTerm: searchTerm }),
146
171
  ' ',
147
172
  react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getServiceMeshLink)(openshiftVersion) }, "Learn more"))),
148
173
  notStandalone: true,
149
- category: exports.categories[Category.NETWORK],
150
174
  supportLevel: getFeatureSupportLevel('SERVICEMESH'),
151
175
  },
152
176
  ],
153
- [exports.categories[Category.REMEDIATION]]: [
154
- {
155
- operatorKey: constants_1.OPERATOR_NAME_FENCE_AGENTS_REMEDIATION,
156
- title: 'Fence Agents Remediation',
157
- featureId: 'FENCE_AGENTS_REMEDIATION',
158
- descriptionText: operatorDescriptions_1.DESCRIPTION_FENCE_AGENTS_REMEDIATION,
159
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
160
- operatorDescriptions_1.DESCRIPTION_FENCE_AGENTS_REMEDIATION,
161
- ' ',
162
- react_1.default.createElement(ui_1.ExternalLink, { href: config_1.FENCE_AGENTS_REMEDIATION_LINK }, "Learn more"))),
163
- notStandalone: true,
164
- category: exports.categories[Category.REMEDIATION],
165
- supportLevel: getFeatureSupportLevel('FENCE_AGENTS_REMEDIATION'),
166
- },
167
- {
168
- operatorKey: constants_1.OPERATOR_NAME_NODE_HEALTHCHECK,
169
- title: 'Node Healthcheck',
170
- featureId: 'NODE_HEALTHCHECK',
171
- descriptionText: operatorDescriptions_1.DESCRIPTION_NODE_HEALTHCHECK,
172
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
173
- operatorDescriptions_1.DESCRIPTION_NODE_HEALTHCHECK,
174
- ' ',
175
- react_1.default.createElement(ui_1.ExternalLink, { href: config_1.NODE_HEALTHCHECK_LINK }, "Learn more"))),
176
- notStandalone: true,
177
- category: exports.categories[Category.REMEDIATION],
178
- supportLevel: getFeatureSupportLevel('NODE_HEALTHCHECK'),
179
- },
180
- {
181
- operatorKey: constants_1.OPERATOR_NAME_SELF_NODE_REMEDIATION,
182
- title: 'Self Node Remediation',
183
- featureId: 'SELF_NODE_REMEDIATION',
184
- descriptionText: operatorDescriptions_1.DESCRIPTION_SELF_NODE_REMEDIATION,
185
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
186
- operatorDescriptions_1.DESCRIPTION_SELF_NODE_REMEDIATION,
187
- ' ',
188
- react_1.default.createElement(ui_1.ExternalLink, { href: config_1.SELF_NODE_REMEDIATION_LINK }, "Learn more"))),
189
- notStandalone: true,
190
- category: exports.categories[Category.REMEDIATION],
191
- supportLevel: getFeatureSupportLevel('SELF_NODE_REMEDIATION'),
192
- },
193
- ],
194
- [exports.categories[Category.OTHER]]: [
177
+ [exports.categories[Category.SECURITY]]: [
195
178
  {
196
179
  operatorKey: constants_1.OPERATOR_NAME_AUTHORINO,
197
180
  title: 'Authorino',
198
181
  featureId: 'AUTHORINO',
199
182
  descriptionText: operatorDescriptions_1.DESCRIPTION_AUTHORINO,
200
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
201
- operatorDescriptions_1.DESCRIPTION_AUTHORINO,
183
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
184
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_AUTHORINO, searchTerm: searchTerm }),
202
185
  ' ',
203
186
  react_1.default.createElement(ui_1.ExternalLink, { href: config_1.AUTHORINO_OPERATOR_LINK }, "Learn more"))),
204
187
  notStandalone: true,
205
- category: exports.categories[Category.OTHER],
206
188
  supportLevel: getFeatureSupportLevel('AUTHORINO'),
207
189
  },
208
190
  {
209
- operatorKey: constants_1.OPERATOR_NAME_NODE_FEATURE_DISCOVERY,
210
- title: 'Node Feature Discovery',
211
- featureId: 'NODE_FEATURE_DISCOVERY',
212
- descriptionText: operatorDescriptions_1.DESCRIPTION_NODE_FEATURE_DISCOVERY,
213
- Description: ({ openshiftVersion }) => (react_1.default.createElement(react_1.default.Fragment, null,
214
- operatorDescriptions_1.DESCRIPTION_NODE_FEATURE_DISCOVERY,
191
+ operatorKey: constants_1.OPERATOR_NAME_KMM,
192
+ title: 'Kernel Module Management',
193
+ featureId: 'KMM',
194
+ descriptionText: operatorDescriptions_1.DESCRIPTION_KMM,
195
+ Description: ({ openshiftVersion, searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
196
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_KMM, searchTerm: searchTerm }),
215
197
  ' ',
216
- react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getNodeFeatureDiscoveryLink)(openshiftVersion) }, "Learn more"))),
217
- category: exports.categories[Category.OTHER],
218
- supportLevel: getFeatureSupportLevel('NODE_FEATURE_DISCOVERY'),
198
+ react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getKmmDocsLink)(openshiftVersion) }, "Learn more"))),
199
+ supportLevel: getFeatureSupportLevel('KMM'),
219
200
  },
201
+ ],
202
+ [exports.categories[Category.CI_CD]]: [
220
203
  {
221
204
  operatorKey: constants_1.OPERATOR_NAME_PIPELINES,
222
205
  title: 'Pipelines',
223
206
  featureId: 'PIPELINES',
224
207
  descriptionText: operatorDescriptions_1.DESCRIPTION_PIPELINES,
225
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
226
- operatorDescriptions_1.DESCRIPTION_PIPELINES,
208
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
209
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_PIPELINES, searchTerm: searchTerm }),
227
210
  ' ',
228
211
  react_1.default.createElement(ui_1.ExternalLink, { href: config_1.PIPELINES_OPERATOR_LINK }, "Learn more"))),
229
212
  notStandalone: true,
230
- category: exports.categories[Category.OTHER],
231
213
  supportLevel: getFeatureSupportLevel('PIPELINES'),
232
214
  },
233
215
  {
@@ -235,77 +217,63 @@ const getOperatorSpecs = (getFeatureSupportLevel, useLVMS) => {
235
217
  title: 'Serverless',
236
218
  featureId: 'SERVERLESS',
237
219
  descriptionText: operatorDescriptions_1.DESCRIPTION_SERVERLESS,
238
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
239
- operatorDescriptions_1.DESCRIPTION_SERVERLESS,
220
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
221
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_SERVERLESS, searchTerm: searchTerm }),
240
222
  ' ',
241
223
  react_1.default.createElement(ui_1.ExternalLink, { href: config_1.SERVERLESS_OPERATOR_LINK }, "Learn more"))),
242
224
  notStandalone: true,
243
- category: exports.categories[Category.OTHER],
244
225
  supportLevel: getFeatureSupportLevel('SERVERLESS'),
245
226
  },
246
- {
247
- operatorKey: constants_1.OPERATOR_NAME_KMM,
248
- title: 'Kernel Module Management',
249
- featureId: 'KMM',
250
- descriptionText: operatorDescriptions_1.DESCRIPTION_KMM,
251
- Description: ({ openshiftVersion }) => (react_1.default.createElement(react_1.default.Fragment, null,
252
- operatorDescriptions_1.DESCRIPTION_KMM,
253
- ' ',
254
- react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getKmmDocsLink)(openshiftVersion) }, "Learn more"))),
255
- category: exports.categories[Category.OTHER],
256
- supportLevel: getFeatureSupportLevel('KMM'),
257
- },
227
+ ],
228
+ [exports.categories[Category.PLATFORM]]: [
258
229
  {
259
230
  operatorKey: constants_1.OPERATOR_NAME_MCE,
260
231
  title: 'Multicluster engine',
261
232
  featureId: 'MCE',
262
233
  descriptionText: operatorDescriptions_1.DESCRIPTION_MCE,
263
- Description: ({ openshiftVersion }) => (react_1.default.createElement(react_1.default.Fragment, null,
264
- operatorDescriptions_1.DESCRIPTION_MCE,
234
+ Description: ({ openshiftVersion, searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
235
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_MCE, searchTerm: searchTerm }),
265
236
  ' ',
266
237
  react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getMceDocsLink)(openshiftVersion) }, "Learn more"))),
267
- category: exports.categories[Category.OTHER],
268
238
  supportLevel: getFeatureSupportLevel('MCE'),
269
239
  },
270
240
  {
271
- operatorKey: constants_1.OPERATOR_NAME_OSC,
272
- title: 'OpenShift sandboxed containers',
273
- featureId: 'OSC',
274
- descriptionText: operatorDescriptions_1.DESCRIPTION_OSC,
275
- Requirements: () => (react_1.default.createElement(ui_1.ExternalLink, { href: config_1.OSC_REQUIREMENTS_LINK }, "Learn more about the requirements for OpenShift sandboxed containers")),
276
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
277
- operatorDescriptions_1.DESCRIPTION_OSC,
278
- " ",
279
- react_1.default.createElement(ui_1.ExternalLink, { href: config_1.OSC_LINK }, "Learn more"))),
280
- category: exports.categories[Category.OTHER],
281
- supportLevel: getFeatureSupportLevel('OSC'),
241
+ operatorKey: constants_1.OPERATOR_NAME_NODE_MAINTENANCE,
242
+ title: 'Node Maintenance',
243
+ featureId: 'NODE_MAINTENANCE',
244
+ descriptionText: operatorDescriptions_1.DESCRIPTION_NODE_MAINTENANCE,
245
+ Description: ({ searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
246
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_NODE_MAINTENANCE, searchTerm: searchTerm }),
247
+ ' ',
248
+ react_1.default.createElement(ui_1.ExternalLink, { href: config_1.NODE_MAINTENANCE_LINK }, "Learn more"))),
249
+ notStandalone: true,
250
+ supportLevel: getFeatureSupportLevel('NODE_MAINTENANCE'),
251
+ },
252
+ ],
253
+ [exports.categories[Category.SCHEDULING]]: [
254
+ {
255
+ operatorKey: constants_1.OPERATOR_NAME_NODE_FEATURE_DISCOVERY,
256
+ title: 'Node Feature Discovery',
257
+ featureId: 'NODE_FEATURE_DISCOVERY',
258
+ descriptionText: operatorDescriptions_1.DESCRIPTION_NODE_FEATURE_DISCOVERY,
259
+ Description: ({ openshiftVersion, searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
260
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_NODE_FEATURE_DISCOVERY, searchTerm: searchTerm }),
261
+ ' ',
262
+ react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getNodeFeatureDiscoveryLink)(openshiftVersion) }, "Learn more"))),
263
+ supportLevel: getFeatureSupportLevel('NODE_FEATURE_DISCOVERY'),
282
264
  },
283
265
  {
284
266
  operatorKey: constants_1.OPERATOR_NAME_KUBE_DESCHEDULER,
285
267
  title: 'Kube Descheduler',
286
268
  featureId: 'KUBE_DESCHEDULER',
287
269
  descriptionText: operatorDescriptions_1.DESCRIPTION_KUBE_DESCHEDULER,
288
- Description: ({ openshiftVersion }) => (react_1.default.createElement(react_1.default.Fragment, null,
289
- operatorDescriptions_1.DESCRIPTION_KUBE_DESCHEDULER,
270
+ Description: ({ openshiftVersion, searchTerm }) => (react_1.default.createElement(react_1.default.Fragment, null,
271
+ react_1.default.createElement(exports.HighlightedText, { text: operatorDescriptions_1.DESCRIPTION_KUBE_DESCHEDULER, searchTerm: searchTerm }),
290
272
  ' ',
291
273
  react_1.default.createElement(ui_1.ExternalLink, { href: (0, config_1.getKubeDeschedulerLink)(openshiftVersion) }, "Learn more"))),
292
274
  notStandalone: true,
293
- category: exports.categories[Category.OTHER],
294
275
  supportLevel: getFeatureSupportLevel('KUBE_DESCHEDULER'),
295
276
  },
296
- {
297
- operatorKey: constants_1.OPERATOR_NAME_NODE_MAINTENANCE,
298
- title: 'Node Maintenance',
299
- featureId: 'NODE_MAINTENANCE',
300
- descriptionText: operatorDescriptions_1.DESCRIPTION_NODE_MAINTENANCE,
301
- Description: () => (react_1.default.createElement(react_1.default.Fragment, null,
302
- operatorDescriptions_1.DESCRIPTION_NODE_MAINTENANCE,
303
- ' ',
304
- react_1.default.createElement(ui_1.ExternalLink, { href: config_1.NODE_MAINTENANCE_LINK }, "Learn more"))),
305
- notStandalone: true,
306
- category: exports.categories[Category.OTHER],
307
- supportLevel: getFeatureSupportLevel('NODE_MAINTENANCE'),
308
- },
309
277
  ],
310
278
  };
311
279
  };
@@ -344,15 +312,19 @@ var Category;
344
312
  Category[Category["VIRT"] = 1] = "VIRT";
345
313
  Category[Category["AI"] = 2] = "AI";
346
314
  Category[Category["NETWORK"] = 3] = "NETWORK";
347
- Category[Category["REMEDIATION"] = 4] = "REMEDIATION";
348
- Category[Category["OTHER"] = 5] = "OTHER";
315
+ Category[Category["CI_CD"] = 4] = "CI_CD";
316
+ Category[Category["PLATFORM"] = 5] = "PLATFORM";
317
+ Category[Category["SECURITY"] = 6] = "SECURITY";
318
+ Category[Category["SCHEDULING"] = 7] = "SCHEDULING";
349
319
  })(Category || (Category = {}));
350
320
  exports.categories = {
351
321
  [Category.STORAGE]: 'Storage',
352
322
  [Category.VIRT]: 'Virtualization',
353
323
  [Category.AI]: 'AI',
354
324
  [Category.NETWORK]: 'Network',
355
- [Category.REMEDIATION]: 'Remediation',
356
- [Category.OTHER]: 'Other',
325
+ [Category.SECURITY]: 'Security & Access Control',
326
+ [Category.CI_CD]: 'CI/CD & Dev Productivity',
327
+ [Category.PLATFORM]: 'Platform Operations & Lifecycle',
328
+ [Category.SCHEDULING]: 'Scheduling',
357
329
  };
358
330
  //# sourceMappingURL=operatorSpecs.js.map