From fa2b0eecff88e2a05c217214d4f9cffce2be9a08 Mon Sep 17 00:00:00 2001 From: Drew Walters Date: Tue, 19 May 2020 20:53:27 +0000 Subject: [PATCH] Fix cluster reconciliation logic When reconciling clusters, airshipctl points the bootstrapInfo and managementConfiguration to an entry named default, and the user is unaware of this change. The result is that user settings are ignored unless the user defines settings under entries named "default". This change updates the cluster reconciliation logic to do this only when a cluster is added to the airshipconfig by airshipctl. Fixes #244 Change-Id: I2cefbf83a74d9cd566015509a4f768698d274746 Signed-off-by: Drew Walters --- pkg/config/config.go | 19 ++++++++++++------- pkg/config/utils.go | 6 +++++- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 91d864a61..3fb47d9a7 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -175,21 +175,26 @@ func (c *Config) reconcileClusters() (map[string]string, bool) { // Probable should just add a number _