From f95a133f7934d6e30b904e69ace34c28c5ed4a8d Mon Sep 17 00:00:00 2001 From: Matt Richerson Date: Mon, 18 Dec 2023 15:07:39 -0600 Subject: [PATCH] fix directive index label to use a string Signed-off-by: Matt Richerson --- internal/controller/nnf_clientmount_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/controller/nnf_clientmount_controller.go b/internal/controller/nnf_clientmount_controller.go index 40a70dfc8..d3913f4a7 100644 --- a/internal/controller/nnf_clientmount_controller.go +++ b/internal/controller/nnf_clientmount_controller.go @@ -21,6 +21,7 @@ package controller import ( "context" + "fmt" "os" "runtime" "strings" @@ -230,7 +231,7 @@ func (r *NnfClientMountReconciler) fakeNnfNodeStorage(clientMount *dwsv1alpha2.C // labels that are important for doing the mount are there and correct dwsv1alpha2.InheritParentLabels(nnfNodeStorage, clientMount) labels := nnfNodeStorage.GetLabels() - labels[nnfv1alpha1.DirectiveIndexLabel] = clientMount.Spec.Mounts[index].Device.DeviceReference.Data + labels[nnfv1alpha1.DirectiveIndexLabel] = fmt.Sprintf("%d", clientMount.Spec.Mounts[index].Device.DeviceReference.Data) nnfNodeStorage.SetLabels(labels) nnfNodeStorage.Spec.BlockReference = corev1.ObjectReference{