Skip to content

Commit

Permalink
comment out debug noise
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Jan 29, 2024
1 parent b05aa2d commit b398fbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/controller/lustrefilesystem_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (r *LustreFileSystemReconciler) Reconcile(ctx context.Context, req ctrl.Req
// Iterate over the access modes in the specification. For each namespace in that mode
// create a PV/PVC which can be used by pods in the same namespace.
for namespace := range fs.Spec.Namespaces {
log.FromContext(ctx).Info("Reconcile Spec Namespace", "namespace", namespace)
// log.FromContext(ctx).Info("Reconcile Spec Namespace", "namespace", namespace)
namespacePresent := true

// If the namespace doesn't exist, set a flag so that we can appropriately set the status in the mode loop
Expand All @@ -153,7 +153,7 @@ func (r *LustreFileSystemReconciler) Reconcile(ctx context.Context, req ctrl.Req

// For each mode in the namespace
for _, mode := range fs.Spec.Namespaces[namespace].Modes {
log.FromContext(ctx).Info("Processing Spec Namespace Mode", "mode", mode)
// log.FromContext(ctx).Info("Processing Spec Namespace Mode", "mode", mode)

// Create the Status Namespace Mode map if empty
if fs.Status.Namespaces[namespace].Modes == nil {
Expand Down Expand Up @@ -200,10 +200,10 @@ func (r *LustreFileSystemReconciler) Reconcile(ctx context.Context, req ctrl.Req

// Remove any resources that are not in the spec
for namespace := range fs.Status.Namespaces {
log.FromContext(ctx).Info("Reconcile Status Namespace", "namespace", namespace)
// log.FromContext(ctx).Info("Reconcile Status Namespace", "namespace", namespace)

for mode := range fs.Status.Namespaces[namespace].Modes {
log.FromContext(ctx).Info("Processing Status Namespace Mode", "mode", mode)
// log.FromContext(ctx).Info("Processing Status Namespace Mode", "mode", mode)

// Check if the provided namespace and mode are present in the specification
isPresentInSpec := func(namespace string, mode corev1.PersistentVolumeAccessMode) bool {
Expand Down

0 comments on commit b398fbe

Please sign in to comment.