Open
Description
What is the problem?
I cannot override the Mode
of the service from Replicated
to Global
.
Steps to reproduce the problem:
- Deploy any service
- In the
Service update override
try to specifyGlobal
mode, for example:
Mode:
Replicated: null
Global: {}
The error is: Error: (HTTP code 400) unexpected - must specify only one service mode
The reason for this seems to be the implementation in Utils.ts
of the mergeObjects
function. The function always merges all keys, and does not allow to delete a key. Therefore, the Replicated
mode always stays, and Global
is added on top, which causes the issue.
Output of the following command on your server:
uname -a && lsb_release -a && free -h
Linux ip-xxxxxxxx-1018-aws #20-Ubuntu SMP Thu Oct 10 18:14:42 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble
total used free shared buff/cache available
Mem: 957Mi 676Mi 66Mi 1.3Mi 384Mi 280Mi
Swap: 1.0Gi 383Mi 640Mi
Metadata
Assignees
Labels
No labels