Use all namespaces for cluster overview warnings (#3441)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-07-20 07:33:22 +03:00
1 parent 4873b85647
commit 078583412b
1 file changed
+6 -1
@@ -22,7 +22,7 @@
import "./cluster-issues.scss";
import React from "react";
import { observer } from "mobx-react";
import { disposeOnUnmount, observer } from "mobx-react";
import { computed, makeObservable } from "mobx";
import { Icon } from "../icon";
import { SubHeader } from "../layout/sub-header";
@@ -35,6 +35,7 @@ import { Spinner } from "../spinner";
import { ThemeStore } from "../../theme.store";
import { lookupApiLink } from "../../api/kube-api";
import { kubeSelectedUrlParam, showDetails } from "../kube-object";
import { kubeWatchApi } from "../../api/kube-watch-api";
interface Props {
className?: string;
@@ -65,6 +66,10 @@ export class ClusterIssues extends React.Component<Props> {
constructor(props: Props) {
super(props);
makeObservable(this);
disposeOnUnmount(this, [
kubeWatchApi.subscribeStores([eventStore, nodesStore])
]);
}
@computed get warnings() {