Skip to content

Commit

Permalink
flip the debugging statement
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Apr 11, 2020
1 parent bdc34ca commit 5bb5aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minikube/bootstrapper/bsutil/kverify/node_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NodePressure(cs *kubernetes.Clientset, drver string) error {
glog.Infof("node storage ephemeral capacity is %s", n.Status.Capacity.StorageEphemeral())
glog.Infof("node cpu capacity is %s", n.Status.Capacity.Cpu().AsDec())
for _, c := range n.Status.Conditions {
if c.Type == v1.NodeDiskPressure && c.Status != v1.ConditionTrue {
if c.Type == v1.NodeDiskPressure && c.Status == v1.ConditionTrue {
out.Ln("")
out.ErrT(out.FailureType, "node {{.name}} has unwanted condition {{.condition_type}} : Reason {{.reason}} Message: {{.message}}", out.V{"name": n.Name, "condition_type": c.Type, "reason": c.Reason, "message": c.Message})
out.WarningT("The node on {{.name}} has ran out of disk space. please consider allocating more disk using or pruning un-used images", out.V{"name": n.Name})
Expand Down

0 comments on commit 5bb5aaf

Please sign in to comment.