Skip to content

Commit

Permalink
account for temrinating namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Jan 29, 2024
1 parent 524620c commit 56281be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/controller/lustrefilesystem_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ func (r *LustreFileSystemReconciler) Reconcile(ctx context.Context, req ctrl.Req
State: lusv1beta1.NamespaceAccessPending,
}

// If the namespace is not active, continue on and the status will be marked as Pending
if ns.Status.Phase != corev1.NamespaceActive {
continue
}

// Attempt to create the PV, if it fails, the status will be marked as Pending
pv, err := r.createOrUpdatePersistentVolume(ctx, fs, namespace, mode)
if err != nil {
Expand Down

0 comments on commit 56281be

Please sign in to comment.