diff --git a/pkg/models/resources/v1alpha2/daemonset/daemonsets.go b/pkg/models/resources/v1alpha2/daemonset/daemonsets.go index 26680f0fb0fa1bb1750cda6bf5fea1f17bd336d5..98a6787e1c828fc461c7f02260bc44b1c260dfc7 100644 --- a/pkg/models/resources/v1alpha2/daemonset/daemonsets.go +++ b/pkg/models/resources/v1alpha2/daemonset/daemonsets.go @@ -38,9 +38,9 @@ func (c *daemonSetSearcher) Get(namespace, name string) (interface{}, error) { } func daemonSetStatus(item *v1.DaemonSet) string { - if item.Status.NumberAvailable == 0 { + if item.Status.DesiredNumberScheduled == 0 && item.Status.NumberReady == 0 { return v1alpha2.StatusStopped - } else if item.Status.DesiredNumberScheduled == item.Status.NumberAvailable { + } else if item.Status.DesiredNumberScheduled == item.Status.NumberReady { return v1alpha2.StatusRunning } else { return v1alpha2.StatusUpdating