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:
parent
6d71a28584
commit
b3b7cfa77f
5 changed files with 35 additions and 10 deletions
|
@ -216,6 +216,7 @@ export function getRollbackPatchPayload(
|
|||
if (!previousRevision.data) {
|
||||
throw new Error('No data found in the previous revision.');
|
||||
}
|
||||
// payload matches the strategic merge patch format for a StatefulSet and DaemonSet
|
||||
return previousRevision.data;
|
||||
}
|
||||
case 'ReplicaSetList': {
|
||||
|
@ -277,7 +278,7 @@ export function getRollbackPatchPayload(
|
|||
value: patchAnnotations,
|
||||
},
|
||||
].filter((p) => !!p.value); // remove any patch that has no value
|
||||
|
||||
// payload matches the json patch format for a Deployment
|
||||
return deploymentRollbackPatch;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue