Skip to content

Commit

Permalink
fix directive index label to use a string
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Richerson <[email protected]>
  • Loading branch information
matthew-richerson committed Dec 18, 2023
1 parent 7aa30ed commit f95a133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/controller/nnf_clientmount_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package controller

import (
"context"
"fmt"
"os"
"runtime"
"strings"
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit f95a133

Please sign in to comment.