Skip to content

Commit edea270

Browse files
committed
Make OperatorHub filter by TLSProfiles annotation
1 parent 2d6db37 commit edea270

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

frontend/packages/operator-lifecycle-manager/src/components/operator-hub/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export enum InfraFeatures {
2727
'proxy-aware' = 'Proxy-aware',
2828
FipsMode = 'FIPS Mode',
2929
fips = 'FIPS Mode',
30+
tlsProfiles = 'Configurable TLS ciphers',
3031
cnf = 'Cloud-Native Network Function',
3132
cni = 'Container Network Interface',
3233
csi = 'Container Storage Interface',
@@ -114,6 +115,7 @@ export type OperatorHubCSVAnnotations = {
114115
[OperatorHubCSVAnnotationKey.disconnected]?: string;
115116
[OperatorHubCSVAnnotationKey.fipsCompliant]?: string;
116117
[OperatorHubCSVAnnotationKey.proxyAware]?: string;
118+
[OperatorHubCSVAnnotationKey.tlsProfiles]?: string;
117119
[OperatorHubCSVAnnotationKey.cnf]?: string;
118120
[OperatorHubCSVAnnotationKey.cni]?: string;
119121
[OperatorHubCSVAnnotationKey.csi]?: string;

frontend/packages/operator-lifecycle-manager/src/components/operator-hub/operator-hub-items.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,10 @@ const infraFeaturesSort = (infrastructure) => {
219219
return 2;
220220
case InfraFeatures.TokenAuth:
221221
return 3;
222-
default:
222+
case InfraFeatures.tlsProfiles:
223223
return 4;
224+
default:
225+
return 5;
224226
}
225227
};
226228

frontend/packages/operator-lifecycle-manager/src/components/operator-hub/operator-hub-page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ export const OperatorHubList: React.FC<OperatorHubListProps> = ({
164164
[OperatorHubCSVAnnotationKey.cnf]: cnf,
165165
[OperatorHubCSVAnnotationKey.cni]: cni,
166166
[OperatorHubCSVAnnotationKey.csi]: csi,
167-
// tlsProfiles requires addtional changes
168-
// [OperatorHubCSVAnnotationKey.tlsProfiles]: tlsProfiles,
167+
[OperatorHubCSVAnnotationKey.tlsProfiles]: tlsProfiles,
169168
[OperatorHubCSVAnnotationKey.tokenAuthAWS]: tokenAuthAWS,
170169
[OperatorHubCSVAnnotationKey.tokenAuthAzure]: tokenAuthAzure,
171170
// tokenAuthGCP requires additional changes
@@ -197,6 +196,7 @@ export const OperatorHubList: React.FC<OperatorHubListProps> = ({
197196
{ key: InfraFeatures.cnf, value: cnf },
198197
{ key: InfraFeatures.cni, value: cni },
199198
{ key: InfraFeatures.csi, value: csi },
199+
{ key: InfraFeatures.tlsProfiles, value: tlsProfiles },
200200
];
201201

202202
// override old with new

0 commit comments

Comments
 (0)