Skip to content

Commit

Permalink
[Plugin] fix component status (#58)
Browse files Browse the repository at this point in the history
the components status  in `kubectl datadog get` was using
`State` instead of `Status`
so the displayed status was: `Running` instead of `Running (3/3/3)`
for example.
  • Loading branch information
clamoriniere committed Mar 28, 2020
1 parent c27198d commit 7e74a19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/kubectl-datadog/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ func (o *options) run() error {
for _, item := range ddList.Items {
data := []string{item.Namespace, item.Name}
if item.Status.Agent != nil {
data = append(data, item.Status.Agent.State)
data = append(data, item.Status.Agent.Status)
} else {
data = append(data, "")
}
if item.Status.ClusterAgent != nil {
data = append(data, item.Status.ClusterAgent.State)
data = append(data, item.Status.ClusterAgent.Status)
} else {
data = append(data, "")
}
if item.Status.ClusterChecksRunner != nil {
data = append(data, item.Status.ClusterChecksRunner.State)
data = append(data, item.Status.ClusterChecksRunner.Status)
} else {
data = append(data, "")
}
Expand Down

0 comments on commit 7e74a19

Please sign in to comment.