mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49: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
|
@ -142,7 +142,8 @@ export async function patchApplication(
|
|||
namespace: string,
|
||||
appKind: AppKind,
|
||||
name: string,
|
||||
patch: ApplicationPatch
|
||||
patch: ApplicationPatch,
|
||||
contentType: string = 'application/json-patch+json'
|
||||
) {
|
||||
switch (appKind) {
|
||||
case 'Deployment':
|
||||
|
@ -151,7 +152,8 @@ export async function patchApplication(
|
|||
namespace,
|
||||
appKind,
|
||||
name,
|
||||
patch
|
||||
patch,
|
||||
contentType
|
||||
);
|
||||
case 'DaemonSet':
|
||||
return patchApplicationByKind<DaemonSet>(
|
||||
|
@ -160,7 +162,7 @@ export async function patchApplication(
|
|||
appKind,
|
||||
name,
|
||||
patch,
|
||||
'application/strategic-merge-patch+json'
|
||||
contentType
|
||||
);
|
||||
case 'StatefulSet':
|
||||
return patchApplicationByKind<StatefulSet>(
|
||||
|
@ -169,7 +171,7 @@ export async function patchApplication(
|
|||
appKind,
|
||||
name,
|
||||
patch,
|
||||
'application/strategic-merge-patch+json'
|
||||
contentType
|
||||
);
|
||||
case 'Pod':
|
||||
return patchPod(environmentId, namespace, name, patch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue