Skip to content

Commit

Permalink
fix(cspc): fix cspc operator sync logs (#371)
Browse files Browse the repository at this point in the history
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
  • Loading branch information
prateekpandey14 authored Aug 11, 2021
1 parent e56b640 commit 684d6b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controllers/cspc-controller/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ func (c *Controller) sync(cspc *cstor.CStorPoolCluster, cspiList *cstor.CStorPoo

if ok, reason := c.ShouldReconcile(*cspc); !ok {
// Do not reconcile this cspc
message := fmt.Sprintf("Cannot not reconcile CSPC %s as %s", cspc.Name, reason)
message := fmt.Sprintf("Can not reconcile CSPC %s as %s", cspc.Name, reason)
c.recorder.Event(cspc, corev1.EventTypeWarning, "CSPC Reconcile", message)
klog.Warningf("Cannot not reconcile CSPC %s in namespace %s as %s", cspc.Name, cspc.Namespace, reason)
klog.Warningf("Can not reconcile CSPC %s in namespace %s as %s", cspc.Name, cspc.Namespace, reason)
return nil
}

Expand Down

0 comments on commit 684d6b8

Please sign in to comment.