Skip to content

Commit

Permalink
Merge pull request #8250 from travisn/nfs-error-on-scaledown
Browse files Browse the repository at this point in the history
ceph: Scaling down nfs deployment was failing
  • Loading branch information
leseb committed Jul 5, 2021
2 parents baaea4a + 4b1cf51 commit 23f3f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/operator/ceph/nfs/nfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (r *ReconcileCephNFS) downCephNFS(n *cephv1.CephNFS, nfsServerListNum int)
logger.Infof("removing deployment %q", depNameToRemove)
err := r.context.Clientset.AppsV1().Deployments(n.Namespace).Delete(ctx, depNameToRemove, metav1.DeleteOptions{})
if err != nil {
if !kerrors.IsAlreadyExists(err) {
if !kerrors.IsNotFound(err) {
return errors.Wrap(err, "failed to delete ceph nfs deployment")
}
}
Expand Down

0 comments on commit 23f3f17

Please sign in to comment.