From 57b6683f46379b939fe5bb9f5c35271f4715bebb Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Thu, 31 Oct 2024 15:43:57 +0100 Subject: [PATCH] Use lower-case `Server` UUIDs --- internal/controller/bmc_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/controller/bmc_controller.go b/internal/controller/bmc_controller.go index 108adf0..30b9797 100644 --- a/internal/controller/bmc_controller.go +++ b/internal/controller/bmc_controller.go @@ -6,6 +6,7 @@ package controller import ( "context" "fmt" + "strings" "k8s.io/apimachinery/pkg/api/errors" @@ -166,7 +167,7 @@ func (r *BMCReconciler) discoverServers(ctx context.Context, log logr.Logger, bm Name: GetServerNameFromBMCandIndex(i, bmcObj), }, Spec: metalv1alpha1.ServerSpec{ - UUID: s.UUID, + UUID: strings.ToLower(s.UUID), // always use lower-case uuids BMCRef: &v1.LocalObjectReference{Name: bmcObj.Name}, }, }