File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
src/custom/ResourceDetailFormatters Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -299,5 +299,6 @@ export const KeyValueGridTitle = styled(Typography)({
299
299
} ) ;
300
300
301
301
export const KeyValueGridCell = styled ( Grid ) ( {
302
- placeSelf : 'center'
302
+ placeSelf : 'center' ,
303
+ alignItems : 'center'
303
304
} ) ;
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export interface ActionIconButtonProps {
64
64
export interface KeyValueProps {
65
65
Key : string ;
66
66
Value : string | number | ReactNode ;
67
+ showFold ?: boolean ;
67
68
}
68
69
69
70
export interface EnvironmentFormatterProps {
@@ -264,4 +265,5 @@ export interface GetResourceCleanDataProps {
264
265
dispatchMsgToEditor ?: ( msg : any ) => void ;
265
266
activeLabels ?: string [ ] ;
266
267
showStatus ?: boolean ;
268
+ router ?: any ;
267
269
}
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export const useResourceCleanData = () => {
67
67
resource,
68
68
activeLabels,
69
69
dispatchMsgToEditor,
70
+ router,
70
71
showStatus = true
71
72
} : GetResourceCleanDataProps ) => {
72
73
const parsedStatus = resource ?. status ?. attribute && JSON . parse ( resource ?. status ?. attribute ) ;
@@ -108,8 +109,13 @@ export const useResourceCleanData = () => {
108
109
links : [
109
110
{ nodeName : parsedSpec ?. nodeName , label : 'Node' } ,
110
111
{ namespace : resource ?. metadata ?. namespace , label : 'Namespace' } ,
111
- { serviceAccount : parsedSpec ?. serviceAccountName , label : 'ServiceAccount' }
112
+ {
113
+ serviceAccount : parsedSpec ?. serviceAccountName ,
114
+ label : 'ServiceAccount' ,
115
+ resourceCategory : 'Security'
116
+ }
112
117
] ,
118
+ router : router ,
113
119
dispatchMsgToEditor : dispatchMsgToEditor
114
120
} ,
115
121
selector : parsedSpec ?. selector ?. matchLabels
You can’t perform that action at this time.
0 commit comments