File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,19 @@ import Table from '../common/Table';
17
17
export default function FluxRunTime ( ) {
18
18
const [ pods ] = K8s . ResourceClasses . Pod . useList ( ) ;
19
19
const [ crds ] = K8s . ResourceClasses . CustomResourceDefinition . useList ( ) ;
20
- const helmController = pods ?. filter ( pod => pod . metadata . labels [ 'app' ] === 'helm-controller' ) ;
20
+ const helmController = pods ?. filter ( pod => pod . metadata . labels ?. [ 'app' ] === 'helm-controller' ) ;
21
21
const kustomizeController = pods ?. filter (
22
- pod => pod . metadata . labels [ 'app' ] === 'kustomize-controller'
22
+ pod => pod . metadata . labels ?. [ 'app' ] === 'kustomize-controller'
23
23
) ;
24
24
const notificationController = pods ?. filter (
25
- pod => pod . metadata . labels [ 'app' ] === 'notification-controller'
25
+ pod => pod . metadata . labels ?. [ 'app' ] === 'notification-controller'
26
26
) ;
27
- const sourceController = pods ?. filter ( pod => pod . metadata . labels [ 'app' ] === 'source-controller' ) ;
27
+ const sourceController = pods ?. filter ( pod => pod . metadata . labels ?. [ 'app' ] === 'source-controller' ) ;
28
28
const imageReflectorController = pods ?. filter (
29
- pod => pod . metadata . labels [ 'app' ] === 'image-reflector-controller'
29
+ pod => pod . metadata . labels ?. [ 'app' ] === 'image-reflector-controller'
30
30
) ;
31
31
const imageAutomationController = pods ?. filter (
32
- pod => pod . metadata . labels [ 'app' ] === 'image-automation-controller'
32
+ pod => pod . metadata . labels ?. [ 'app' ] === 'image-automation-controller'
33
33
) ;
34
34
35
35
const controllers = helmController ?. concat (
You can’t perform that action at this time.
0 commit comments