1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(kube): patching stateful service [EE-6523] (#10948)

This commit is contained in:
Prabhat Khera 2024-01-15 13:30:45 +13:00 committed by GitHub
parent 6d71a28584
commit b3b7cfa77f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 10 deletions

View file

@ -309,8 +309,23 @@ export function usePatchApplicationMutation(
name: string
) {
return useMutation(
({ appKind, patch }: { appKind: AppKind; patch: ApplicationPatch }) =>
patchApplication(environmentId, namespace, appKind, name, patch),
({
appKind,
patch,
contentType = 'application/json-patch+json',
}: {
appKind: AppKind;
patch: ApplicationPatch;
contentType?: string;
}) =>
patchApplication(
environmentId,
namespace,
appKind,
name,
patch,
contentType
),
{
onSuccess: () => {
queryClient.invalidateQueries(