Skip to content

Commit

Permalink
Merge pull request #939 from yaacov/move-overview-pods-to-main-tab
Browse files Browse the repository at this point in the history
🐾 Show pods on overview tab instead of pods tab
  • Loading branch information
yaacov authored Feb 21, 2024
2 parents f4fb0bf + c8596d2 commit 9d5bc3f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"Conditions": "Conditions",
"Confirm": "Confirm",
"Connection Failed": "Connection Failed",
"Controller": "Controller",
"Controller CPU limit": "Controller CPU limit",
"Controller Memory limit": "Controller Memory limit",
"Controls the interval at which a new snapshot is requested prior to initiating a warm migration. The default value is 60 minutes.": "Controls the interval at which a new snapshot is requested prior to initiating a warm migration. The default value is 60 minutes.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { getOperatorPhase } from '../../utils/helpers/getOperatorPhase';

import OperatorStatus from './components/OperatorStatus';
import { ShowWelcomeCardButton } from './components/ShowWelcomeCardButton';
import ForkliftControllerPodsTab from './tabs/Pods/ForkliftControllerPodsTab';
import { HeaderTitle } from './components';
import {
ForkliftControllerDetailsTab,
Expand Down Expand Up @@ -39,11 +38,6 @@ export const OverviewPage: React.FC<OverviewPageProps> = () => {
name: t('Metrics'),
component: ForkliftControllerMetricsTabWrapper,
},
{
href: 'pods',
name: t('Pods'),
component: ForkliftControllerPodsTabWrapper,
},
];

return (
Expand Down Expand Up @@ -111,12 +105,4 @@ const ForkliftControllerMetricsTabWrapper: React.FC = () => {
);
};

const ForkliftControllerPodsTabWrapper: React.FC = () => {
const [forkliftController, loaded, loadError] = useK8sWatchForkliftController();

return (
<ForkliftControllerPodsTab obj={forkliftController} loaded={loaded} loadError={loadError} />
);
};

export default OverviewPage;
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ export const ControllerCard: FC<ControllerCardProps> = ({ obj }) => {
namespaced: true,
isList: true,
namespace: obj?.metadata?.namespace,
selector: { matchLabels: { app: 'forklift', 'control-plane': 'controller-manager' } },
selector: { matchLabels: { app: 'forklift' } },
});

return (
<Card>
<CardTitle className="forklift-title">{t('Controller')}</CardTitle>
<CardTitle className="forklift-title">{t('Pods')}</CardTitle>
<Suspend obj={pods} loaded={loaded} loadError={loadError}>
<CardBody>
<PodsTable pods={pods} />
Expand Down

0 comments on commit 9d5bc3f

Please sign in to comment.