From 1a6c77e95e53b4d16ebc438cbc863d94c44bc204 Mon Sep 17 00:00:00 2001 From: lreciomelero Date: Thu, 29 Jun 2023 17:20:46 +0200 Subject: [PATCH 1/2] Added label to kubeadmconfigtemplate --- .../internal/create/actions/createworker/templates/azure.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cluster/internal/create/actions/createworker/templates/azure.tmpl b/pkg/cluster/internal/create/actions/createworker/templates/azure.tmpl index b16221f230..3b1ae7ebef 100644 --- a/pkg/cluster/internal/create/actions/createworker/templates/azure.tmpl +++ b/pkg/cluster/internal/create/actions/createworker/templates/azure.tmpl @@ -157,6 +157,9 @@ spec: postKubeadmCommands: [] preKubeadmCommands: [] machineTemplate: + metadata: + labels: + keos.stratio.com/machine-role: "{{ $.Descriptor.ClusterID }}-control-plane-node" infrastructureRef: apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 kind: AzureMachineTemplate From 12e258137bb61f796c5f77c2563703974d54e03d Mon Sep 17 00:00:00 2001 From: lreciomelero Date: Thu, 29 Jun 2023 17:22:51 +0200 Subject: [PATCH 2/2] Added label to kubeadmconfigtemplate --- .../internal/create/actions/createworker/templates/gcp.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/internal/create/actions/createworker/templates/gcp.tmpl b/pkg/cluster/internal/create/actions/createworker/templates/gcp.tmpl index 82f0265247..d0f399ae6b 100644 --- a/pkg/cluster/internal/create/actions/createworker/templates/gcp.tmpl +++ b/pkg/cluster/internal/create/actions/createworker/templates/gcp.tmpl @@ -51,7 +51,7 @@ spec: machineTemplate: metadata: labels: - keos.stratio.com/machine-role: "{{ $.Descriptor.ClusterID }}-control-plane-node" + keos.stratio.com/machine-role: "{{ .Descriptor.ClusterID }}-control-plane-node" infrastructureRef: kind: GCPMachineTemplate apiVersion: infrastructure.cluster.x-k8s.io/v1beta1