diff --git a/frontend/packages/console-app/locales/en/console-app.json b/frontend/packages/console-app/locales/en/console-app.json
index e4fcd83629c..b7e07a4ff06 100644
--- a/frontend/packages/console-app/locales/en/console-app.json
+++ b/frontend/packages/console-app/locales/en/console-app.json
@@ -428,6 +428,7 @@
"Node status": "Node status",
"This node's {{conditionDescription}}. Performance may be degraded.": "This node's {{conditionDescription}}. Performance may be degraded.",
"<0>To use host binaries, run <1>chroot /host1>0>": "<0>To use host binaries, run <1>chroot /host1>0>",
+ "Failed to load pod": "Failed to load pod",
"The debug pod failed. ": "The debug pod failed. ",
"This node has requested to join the cluster. After approving its certificate signing request the node will begin running workloads.": "This node has requested to join the cluster. After approving its certificate signing request the node will begin running workloads.",
"This node has a pending server certificate signing request. Approve the request to enable all networking functionality on this node.": "This node has a pending server certificate signing request. Approve the request to enable all networking functionality on this node.",
diff --git a/frontend/packages/console-app/src/actions/hooks/useBindingActions.ts b/frontend/packages/console-app/src/actions/hooks/useBindingActions.ts
index 0693f3bd704..bb979972745 100644
--- a/frontend/packages/console-app/src/actions/hooks/useBindingActions.ts
+++ b/frontend/packages/console-app/src/actions/hooks/useBindingActions.ts
@@ -45,11 +45,11 @@ export const useBindingActions = (
const navigate = useNavigate();
const [commonActions] = useCommonActions(model, obj, [CommonActionCreator.Delete] as const);
- const { subjectIndex, subjects = [] } = obj;
+ const { subjectIndex, subjects } = obj ?? {};
const subject = subjects?.[subjectIndex];
const deleteBindingSubject = useWarningModal({
title: t('public~Delete {{label}} subject?', {
- label: model.kind,
+ label: model?.kind,
}),
children: t('public~Are you sure you want to delete subject {{name}} of type {{kind}}?', {
name: subject?.name,
@@ -146,9 +146,9 @@ export const useBindingActions = (
: []),
factory.DuplicateBinding(),
factory.EditBindingSubject(),
- ...(subjects.length === 1 ? [commonActions.Delete] : [factory.DeleteBindingSubject()]),
+ ...(subjects?.length === 1 ? [commonActions.Delete] : [factory.DeleteBindingSubject()]),
];
- }, [memoizedFilterActions, subject?.kind, factory, subjects.length, commonActions.Delete]);
+ }, [memoizedFilterActions, subject?.kind, factory, subjects?.length, commonActions.Delete]);
return actions;
};
diff --git a/frontend/packages/console-app/src/components/nodes/NodeTerminal.tsx b/frontend/packages/console-app/src/components/nodes/NodeTerminal.tsx
index 54d80780a55..e33c2ff49a5 100644
--- a/frontend/packages/console-app/src/components/nodes/NodeTerminal.tsx
+++ b/frontend/packages/console-app/src/components/nodes/NodeTerminal.tsx
@@ -2,10 +2,10 @@ import type { ReactNode, FC } from 'react';
import { useState, useEffect } from 'react';
import { Alert } from '@patternfly/react-core';
import { useTranslation, Trans } from 'react-i18next';
+import { WatchK8sResource } from '@console/dynamic-plugin-sdk/src/extensions/console-types';
+import { useK8sWatchResource } from '@console/dynamic-plugin-sdk/src/utils/k8s/hooks/useK8sWatchResource';
import { PodConnectLoader } from '@console/internal/components/pod';
-import { Firehose } from '@console/internal/components/utils/firehose';
import { LoadingBox } from '@console/internal/components/utils/status-box';
-import type { FirehoseResource, FirehoseResult } from '@console/internal/components/utils/types';
import { ImageStreamTagModel, NamespaceModel, PodModel } from '@console/internal/models';
import { NodeKind, PodKind, k8sCreate, k8sGet, k8sKillByName } from '@console/internal/module/k8s';
import PaneBody from '@console/shared/src/components/layout/PaneBody';
@@ -15,7 +15,9 @@ type NodeTerminalErrorProps = {
};
type NodeTerminalInnerProps = {
- obj?: FirehoseResult
{notification.spec.text}{' '}
- {_.get(notification.spec, ['link', 'href']) && (
+ {notification.spec.link?.href && (