mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
feat(ingress): ingresses datatable with add/edit ingresses EE-2615 (#7672)
This commit is contained in:
parent
393d1fc91d
commit
ef1d648c07
68 changed files with 4938 additions and 61 deletions
18
app/react/kubernetes/configs/service.ts
Normal file
18
app/react/kubernetes/configs/service.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import axios, { parseAxiosError } from '@/portainer/services/axios';
|
||||
import { EnvironmentId } from '@/portainer/environments/types';
|
||||
|
||||
import { Configuration } from './types';
|
||||
|
||||
export async function getConfigMaps(
|
||||
environmentId: EnvironmentId,
|
||||
namespace: string
|
||||
) {
|
||||
try {
|
||||
const { data: configmaps } = await axios.get<Configuration[]>(
|
||||
`kubernetes/${environmentId}/namespaces/${namespace}/configmaps`
|
||||
);
|
||||
return configmaps;
|
||||
} catch (e) {
|
||||
throw parseAxiosError(e as Error, 'Unable to retrieve configmaps');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue