Skip to content

Commit f329dd4

Browse files
kingsleyzissouregexowl
authored andcommitted
store/api: remove the podman endpoint
This has been replaced with the getDistributions endpoint. This should be clean now since the frontend components that were consuming this endpoint have been switched to the new one.
1 parent 4c24e2d commit f329dd4

6 files changed

Lines changed: 1 addition & 96 deletions

File tree

src/Components/CreateImageWizard/steps/ImageOutput/tests/mocks/fixtures.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
Architectures,
3-
BootcDistributionItem,
4-
ImageInfo,
5-
} from '@/store/api/backend';
1+
import { Architectures, BootcDistributionItem } from '@/store/api/backend';
62

73
export const mockArchitecturesX86: Architectures = [
84
{
@@ -70,19 +66,6 @@ export const mockArchitecturesWithNetworkInstaller: Architectures = [
7066
},
7167
];
7268

73-
export const mockPodmanImages: ImageInfo[] = [
74-
{
75-
image: 'registry.redhat.io/rhel10/rhel-bootc:10.0',
76-
repository: 'registry.redhat.io/rhel10/rhel-bootc',
77-
tag: '10.0',
78-
},
79-
{
80-
image: 'registry.redhat.io/rhel10/rhel-bootc:latest',
81-
repository: 'registry.redhat.io/rhel10/rhel-bootc',
82-
tag: 'latest',
83-
},
84-
];
85-
8669
export const mockBootcDistributions: BootcDistributionItem[] = [
8770
{
8871
distro: 'rhel-10',

src/store/api/backend/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ export {
107107
useExportBlueprintCockpitQuery,
108108
useGetWorkerConfigQuery,
109109
useLazyExportBlueprintCockpitQuery,
110-
usePodmanImagesQuery,
111110
useUpdateWorkerConfigMutation,
112111
} from './onprem';
113112

@@ -143,10 +142,6 @@ export type {
143142
WorkerConfigFile,
144143
WorkerConfigRequest,
145144
WorkerConfigResponse,
146-
// Podman types (on-prem only)
147-
ImageInfo,
148-
PodmanImagesArg,
149-
PodmanImagesResponse,
150145
// Non-conflicting generated types
151146
Bootc,
152147
LocalUploadStatus,

src/store/api/backend/onprem/composerApi/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { architectureEndpoints } from './architecture';
22
import { blueprintEndpoints } from './blueprints';
33
import { composeEndpoints } from './composes';
44
import { oscapEndpoints } from './oscap';
5-
import { podmanEndpoints } from './podman';
65
import { workerEndpoints } from './worker';
76

87
import { emptyComposerApi } from '../emptyComposerApi';
@@ -15,7 +14,6 @@ export const composerApi = emptyComposerApi.injectEndpoints({
1514
...composeEndpoints(builder),
1615
...oscapEndpoints(builder),
1716
...workerEndpoints(builder),
18-
...podmanEndpoints(builder),
1917
};
2018
},
2119
// since we are inheriting some endpoints,
@@ -44,8 +42,6 @@ export const {
4442
useGetComposeStatusQuery,
4543
useGetWorkerConfigQuery,
4644
useUpdateWorkerConfigMutation,
47-
usePodmanImagesQuery,
48-
useLazyPodmanImagesQuery,
4945
} = composerApi;
5046

5147
// re-export this for testing

src/store/api/backend/onprem/composerApi/podman.ts

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/store/api/backend/onprem/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export {
1818
useLazyExportBlueprintCockpitQuery,
1919
useLazyGetBlueprintsQuery,
2020
useLazyGetOscapCustomizationsQuery,
21-
useLazyPodmanImagesQuery,
22-
usePodmanImagesQuery,
2321
useUpdateBlueprintMutation,
2422
useUpdateWorkerConfigMutation,
2523
} from './composerApi';

src/store/api/backend/onprem/types/custom.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,6 @@ export type ComposerComposesResponseItem = Omit<
117117
};
118118
};
119119

120-
export type ImageInfo = {
121-
image: string;
122-
repository: string;
123-
tag: string;
124-
};
125-
126-
export type PodmanImagesArg = void;
127-
export type PodmanImagesResponse = ImageInfo[];
128-
129120
type PodmanLabels = {
130121
// let's just hardcode this for now, we don't have any
131122
// rpm builds for other arches for the on-prem frontend

0 commit comments

Comments
 (0)