Skip to content

Commit

Permalink
feat: added yaml upload to all namespaces overview & fixed card url
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskari committed Sep 13, 2024
1 parent aa61305 commit 95fdea8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/resources/Namespaces/AllNamespacesDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import LimitRangeList from 'resources/LimitRanges/LimitRangeList';
import { EventsList } from 'shared/components/EventsList';
import { ResourceQuotasList as ResourceQuotaListComponent } from 'resources/ResourceQuotas/ResourceQuotasList';
import { EVENT_MESSAGE_TYPE } from 'hooks/useMessageList';
import { createPortal } from 'react-dom';
import YamlUploadDialog from './YamlUpload/YamlUploadDialog';

export function AllNamespacesDetails() {
const { t } = useTranslation();
Expand Down Expand Up @@ -63,6 +65,7 @@ export function AllNamespacesDetails() {
{Events}
</>
}
actions={createPortal(<YamlUploadDialog />, document.body)}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export function NamespaceWorkloads({ namespace }) {
value: daemonsetsData?.length - healthyDaemonsets,
},
]}
allNamespaceURL={false}
resourceUrl="daemonsets"
/>
</div>
Expand All @@ -183,6 +184,7 @@ export function NamespaceWorkloads({ namespace }) {
value: statefulsetsData?.length - healthyStatefulsets,
},
]}
allNamespaceURL={false}
resourceUrl="statefulsets"
/>
</div>
Expand All @@ -206,6 +208,7 @@ export function NamespaceWorkloads({ namespace }) {
value: servicesData?.length - loadbalancerNumber,
},
]}
allNamespaceURL={false}
resourceUrl="services"
/>
</div>
Expand Down

0 comments on commit 95fdea8

Please sign in to comment.