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 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