1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

feat(helm): show manifest previews/changes when installing and upgrading a helm chart [r8s-405] (#898)

This commit is contained in:
Ali 2025-07-23 10:52:58 +12:00 committed by GitHub
parent a4cff13531
commit 60bc04bc33
41 changed files with 763 additions and 157 deletions

View file

@ -3,8 +3,7 @@ import { describe, it, expect, vi, afterEach } from 'vitest';
import { withTestRouter } from '@/react/test-utils/withRouter';
import { withTestQueryProvider } from '@/react/test-utils/withTestQuery';
import { GenericResource } from '../../../types';
import { GenericResource } from '@/react/kubernetes/helm/types';
import { ResourcesTable } from './ResourcesTable';
@ -22,7 +21,7 @@ vi.mock('@/react/hooks/useEnvironmentId', () => ({
useEnvironmentId: () => mockUseEnvironmentId(),
}));
vi.mock('../../queries/useHelmRelease', () => ({
vi.mock('@/react/kubernetes/helm/helmReleaseQueries/useHelmRelease', () => ({
useHelmRelease: () => mockUseHelmRelease(),
}));

View file

@ -1,6 +1,7 @@
import { useCurrentStateAndParams } from '@uirouter/react';
import { useEnvironmentId } from '@/react/hooks/useEnvironmentId';
import { useHelmRelease } from '@/react/kubernetes/helm/helmReleaseQueries/useHelmRelease';
import { Datatable, TableSettingsMenu } from '@@/datatables';
import {
@ -13,8 +14,6 @@ import { Widget } from '@@/Widget';
import { TableSettingsMenuAutoRefresh } from '@@/datatables/TableSettingsMenuAutoRefresh';
import { TextTip } from '@@/Tip/TextTip';
import { useHelmRelease } from '../../queries/useHelmRelease';
import { columns } from './columns';
import { useResourceRows } from './useResourceRows';

View file

@ -1,8 +1,8 @@
import { useMemo } from 'react';
import { StatusBadgeType } from '@@/StatusBadge';
import { GenericResource } from '@/react/kubernetes/helm/types';
import { GenericResource } from '../../../types';
import { StatusBadgeType } from '@@/StatusBadge';
import { ResourceLink, ResourceRow } from './types';