From 2c674bdb03139a649e6a3466f36da725707f4b25 Mon Sep 17 00:00:00 2001
From: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Date: Fri, 9 Apr 2021 10:05:21 -0500
Subject: [PATCH] Add labels to controlplane nodes

This commit adds new label to controlplane node so that HCO works

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I8cf3efc19bc4b78a6be04af5f28ad300990273e7
---
 manifests/function/k8scontrol/controlplane.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/manifests/function/k8scontrol/controlplane.yaml b/manifests/function/k8scontrol/controlplane.yaml
index a94c8900e..ff7102ddd 100644
--- a/manifests/function/k8scontrol/controlplane.yaml
+++ b/manifests/function/k8scontrol/controlplane.yaml
@@ -30,13 +30,13 @@ spec:
       nodeRegistration:
         name: '{{ ds.meta_data.local_hostname }}'
         kubeletExtraArgs:
-          node-labels: 'metal3.io/uuid={{ ds.meta_data.uuid }}'
+          node-labels: 'metal3.io/uuid={{ ds.meta_data.uuid }},node-type=controlplane'
     joinConfiguration:
       controlPlane: {}
       nodeRegistration:
         name: '{{ ds.meta_data.local_hostname }}'
         kubeletExtraArgs:
-          node-labels: 'metal3.io/uuid={{ ds.meta_data.uuid }}'
+          node-labels: 'metal3.io/uuid={{ ds.meta_data.uuid }},node-type=controlplane'
     ntp:
        servers:
           - 0.pool.ntp.org