mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(kube): patching stateful service [EE-6523] (#10948)
This commit is contained in:
parent
6d71a28584
commit
b3b7cfa77f
5 changed files with 35 additions and 10 deletions
|
@ -121,7 +121,14 @@ export function RollbackApplicationButton({
|
|||
try {
|
||||
const patch = getRollbackPatchPayload(app, appRevisionList);
|
||||
patchAppMutation.mutateAsync(
|
||||
{ appKind: app.kind, patch },
|
||||
{
|
||||
appKind: app.kind,
|
||||
patch,
|
||||
contentType:
|
||||
app.kind === 'Deployment'
|
||||
? 'application/json-patch+json'
|
||||
: 'application/strategic-merge-patch+json',
|
||||
},
|
||||
{
|
||||
onSuccess: () => {
|
||||
notifySuccess('Success', 'Application successfully rolled back');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue