From 2f9708aa7c90255084aac68f8935566f280a6726 Mon Sep 17 00:00:00 2001 From: Itxaka Date: Thu, 1 Sep 2022 15:24:54 +0200 Subject: [PATCH] drop unused labels on bootstrap we are setting some custom labels on bootstrap but they are not used anywhere. Drop them unless we have a need to set some specific labels on node bootstrap Signed-off-by: Itxaka --- pkg/controllers/machineinventoryselector/bootstrap.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/controllers/machineinventoryselector/bootstrap.go b/pkg/controllers/machineinventoryselector/bootstrap.go index f338bd2e0..095ea293f 100644 --- a/pkg/controllers/machineinventoryselector/bootstrap.go +++ b/pkg/controllers/machineinventoryselector/bootstrap.go @@ -162,15 +162,6 @@ func (h *handler) getBootstrapPlan(selector *v1beta1.MachineInventorySelector, i }, }, }, - { - CommonInstruction: applyinator.CommonInstruction{ - Command: "bash", - Args: []string{ - "-c", - "elemental-register --label \"elemental.cattle.io/ExternalIP=$(hostname -I | awk '{print $1}')\" --label \"elemental.cattle.io/InternalIP=$(hostname -I | awk '{print $2}')\"", - }, - }, - }, { CommonInstruction: applyinator.CommonInstruction{ Command: "/var/lib/rancher/bootstrap.sh",