Skip to content

Commit

Permalink
fix clientmount fake nnfnodestorage directive index label
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 cbea47e commit 7aa30ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/nnf_node_block_storage_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type NnfNodeBlockStorageAccessStatus struct {
}

type NnfNodeBlockStorageAllocationStatus struct {
// Accesses is map of node name to the access status
// Accesses is a map of node name to the access status
Accesses map[string]NnfNodeBlockStorageAccessStatus `json:"accesses,omitempty"`

// List of NVMe namespaces used by this allocation
Expand Down
3 changes: 3 additions & 0 deletions internal/controller/nnf_clientmount_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ func (r *NnfClientMountReconciler) fakeNnfNodeStorage(clientMount *dwsv1alpha2.C
// These labels aren't exactly right (NnfStorage owns NnfNodeStorage), but the
// 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
nnfNodeStorage.SetLabels(labels)

nnfNodeStorage.Spec.BlockReference = corev1.ObjectReference{
Name: "fake",
Expand Down

0 comments on commit 7aa30ed

Please sign in to comment.