From 6bc7b76a318652392b939a9697c56499ea7a7b5d Mon Sep 17 00:00:00 2001 From: okozachenko1203 Date: Wed, 21 Aug 2024 01:23:20 +1000 Subject: [PATCH] fix jsonPatch for worker nodegroup --- magnum_cluster_api/resources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magnum_cluster_api/resources.py b/magnum_cluster_api/resources.py index 26efa979..1d509c9b 100644 --- a/magnum_cluster_api/resources.py +++ b/magnum_cluster_api/resources.py @@ -1778,9 +1778,9 @@ def get_object(self) -> objects.ClusterClass: }, { "op": "add", - "path": "/spec/template/spec/serverGroup", + "path": "/spec/template/spec/serverGroup/id", "valueFrom": { - "variable": "{{ .builtin.cluster.name }}-{{ .nodeGroupName }}", + "variable": "serverGroupId", }, }, ],