diff --git a/src/renderer/components/+workloads-pods/__tests__/__snapshots__/pod-details-list.test.tsx.snap b/src/renderer/components/+workloads-pods/__tests__/__snapshots__/pod-details-list.test.tsx.snap index 82c0fca3ba..13abca230d 100644 --- a/src/renderer/components/+workloads-pods/__tests__/__snapshots__/pod-details-list.test.tsx.snap +++ b/src/renderer/components/+workloads-pods/__tests__/__snapshots__/pod-details-list.test.tsx.snap @@ -544,320 +544,6 @@ exports[` when few pods passed when metrics max values passed `; -exports[` when few pods passed when metrics max values passed sort table by name 1`] = ` -
-
-
- Pods -
-
-
-
- Name - - - arrow_drop_down - - -
-
-
- Node - - - arrow_drop_down - - -
-
- Namespace - - - arrow_drop_down - - -
-
- Ready -
-
- CPU - - - arrow_drop_down - - -
-
- Memory - - - arrow_drop_down - - -
-
- Status -
-
-
-
- foobar-pending -
-
-
-
- default -
-
- 0 / 0 -
-
-
-
-
-
-

- CPU: 50% -
- 0.500 -

-
-
-
-
-
-
-
-

- Memory: 13% -
- 256.000B -

-
-
-
- Waiting -
-
-
-
- foobar-failed -
-
-
-
- kube-system -
-
- 0 / 0 -
-
-
-
-
-
-

- CPU: 40% -
- 0.400 -

-
-
-
-
-
-
-
-

- Memory: 50% -
- 1.000KiB -

-
-
-
- Failed -
-
-
-
- foobar -
-
-
-
- default -
-
- 0 / 0 -
-
-
-
-
-
-

- CPU: 20% -
- 0.200 -

-
-
-
-
-
-
-
-

- Memory: 7% -
- 128.000B -

-
-
-
- Running -
-
-
-
-
-`; - exports[` when few pods passed when metrics max values passed sorts table by cpu 1`] = `
this.props.pods[0]?.getNs(), () => this.metricsWatcher.restart(true)), ]); + + this.props.podStore.loadAll({ + namespaces: [ + ...this.props.namespaceStore.getItems().map(ns => ns.getName()) + ], + onLoadFailure: error => + this.props.showErrorNotification(`Can not load Pods. ${String(error)}`) + }); } componentWillUnmount() { @@ -208,5 +222,7 @@ export const PodDetailsList = withInjectables ...props, getDetailsUrl: di.inject(getDetailsUrlInjectable), podStore: di.inject(podStoreInjectable), + namespaceStore: di.inject(namespaceStoreInjectable), + showErrorNotification: di.inject(showErrorNotificationInjectable) }), }); \ No newline at end of file