diff --git a/internal/controller/nnf_clientmount_controller.go b/internal/controller/nnf_clientmount_controller.go index 456dd481..cc7b5aa6 100644 --- a/internal/controller/nnf_clientmount_controller.go +++ b/internal/controller/nnf_clientmount_controller.go @@ -354,11 +354,11 @@ func getServerForClientMountOrNnfNodeStorage(ctx context.Context, c client.Clien ownerNS, ownerNSExists := labels[dwsv1alpha2.OwnerNamespaceLabel] _, idxExists := labels[nnfv1alpha4.DirectiveIndexLabel] - log.FromContext(ctx).Info("BLAKE labels - after", "labels", labels) + // log.FromContext(ctx).Info("BLAKE labels - after", "labels", labels) // We should expect the owner to be NnfStorage and have the expected labels if !ownerExists || !ownerNameExists || !ownerNSExists || !idxExists || ownerKind != storageKind { - return nil, dwsv1alpha2.NewResourceError("expected owner to be of kind NnfStorage and have the expected labels").WithMajor() + return nil, dwsv1alpha2.NewResourceError(fmt.Sprintf("expected owner to be of kind NnfStorage and have the expected labels: %v", labels)).WithMajor() } // Retrieve the NnfStorage resource