Explicitly initialize registries

- Helps moves towards turning on banning CyclicImports

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-06-10 09:34:13 -04:00
1 parent c18df6bcae
commit 6d10f011e5
101 files changed
+1178 -1087

No files matched your search

@@ -25,7 +25,7 @@ import React from "react";
import { Icon } from "../icon";
import { cssNames, formatDuration } from "../../utils";
import { KubeObject, KubeObjectStatus, KubeObjectStatusLevel } from "../../..//extensions/renderer-api/k8s-api";
import { kubeObjectStatusRegistry } from "../../../extensions/registries";
import { KubeObjectStatusRegistry } from "../../../extensions/registries";
function statusClassName(level: KubeObjectStatusLevel): string {
switch (level) {
@@ -105,7 +105,7 @@ export class KubeObjectStatusIcon extends React.Component<Props> {
}
render() {
const statuses = kubeObjectStatusRegistry.getItemsForObject(this.props.object);
const statuses = KubeObjectStatusRegistry.getInstance().getItemsForObject(this.props.object);
if (statuses.length === 0) {
return null;