mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix note patching for Pod (#8915)
This commit is contained in:
parent
7197ca435a
commit
6a29198c5c
2 changed files with 15 additions and 6 deletions
|
@ -44,9 +44,14 @@ export async function patchPod(
|
|||
},
|
||||
];
|
||||
try {
|
||||
return await axios.put<Pod>(
|
||||
return await axios.patch<Pod>(
|
||||
buildUrl(environmentId, namespace, name),
|
||||
payload
|
||||
payload,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': 'application/json-patch+json',
|
||||
},
|
||||
}
|
||||
);
|
||||
} catch (e) {
|
||||
throw parseAxiosError(e as Error, 'Unable to update pod');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue