Skip to content

Commit

Permalink
remove info view from kubernetes cluster namespaces (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
renemennab authored May 20, 2024
1 parent 8c19777 commit 6c6863b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions assets/src/components/kubernetes/cluster/Namespace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ import { NamespacePhaseChip } from './utils'
import { useEventsColumns } from './Events'

const directory: Array<TabEntry> = [
{ path: '', label: 'Info' },
{ path: 'events', label: 'Events' },
{ path: 'raw', label: 'Raw' },
{ path: 'events', label: 'Events' },
] as const

export default function Namespace(): ReactElement {
Expand Down
9 changes: 6 additions & 3 deletions assets/src/routes/kubernetesRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ import ConfigMap, {
} from '../components/kubernetes/configuration/ConfigMap'
import Namespace, {
NamespaceEvents,
NamespaceInfo,
} from '../components/kubernetes/cluster/Namespace'

import Raw from '../components/kubernetes/common/Raw'
Expand Down Expand Up @@ -788,8 +787,12 @@ export const kubernetesRoute = (
>
<Route
index
path=""
element={<NamespaceInfo />}
element={
<Navigate
replace
to="raw"
/>
}
/>
<Route
path="events"
Expand Down

0 comments on commit 6c6863b

Please sign in to comment.