DataDog / extendeddaemonset

Kubernetes Extended Daemonset controller
Apache License 2.0
98 stars 13 forks source link

[Plugin] Add canary pods and not ready pods commands #70

Closed ahmed-mez closed 3 years ago

ahmed-mez commented 3 years ago

What does this PR do?

Motivation

Additional Notes

  POD                           READY  PHASE    REASON  UNREADY CONTAINERS  RESTARTS  NODE                                  NODE READY
  pause-containers-xxxxx-xxxxx  1/1    Running                              0         xxx-xxxxx-xxxxxxxx-xxxx-xxxxxxx-xxxx  true
  pause-containers-xxxxx-xxxxx  1/1    Running                              0         xxx-xxxxx-xxxxxxxx-xxxx-xxxxxxx-xxxx  true
  POD                        READY  PHASE    REASON              NOT READY CONTAINERS              RESTARTS  NODE                            NODE READY
  datadog-agent-xxxxx-xxxxx  0/5    Running  ContainersNotReady  agent, process-agent,           901       ip-xx-xxx-xxx-xxx.xxx.internal  true
  datadog-agent-xxxxx-xxxxx  3/5    Running  ContainersNotReady  agent, process-agent            72        ip-xx-xxx-xxx-xx.xxx.internal   false
  datadog-agent-xxxxx-xxxxx  0/5    Pending                      agent, process-agent,           0         ip-xx-xxx-xxx-xx.xxx.internal   false
                                                                 security-agent, system-probe,
                                                                 trace-agent
  datadog-agent-xxxxx-xxxxx  0/0    Failed   OutOfmemory                                         0         ip-xx-xxx-xxx-xx.xxx.internal   true
  datadog-agent-xxxxx-xxxxx  0/0    Failed   Evicted                                             0         ip-xx-xxx-xxx-xxx.xxx.internal  true

Describe your test plan

Compare the command outputs to k get pods and k get nodes

codecov-io commented 3 years ago

Codecov Report

Merging #70 (3d8d977) into master (efa4090) will increase coverage by 0.28%. The diff coverage is 21.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
+ Coverage   31.55%   31.83%   +0.28%     
==========================================
  Files          37       41       +4     
  Lines        2830     2937     +107     
==========================================
+ Hits          893      935      +42     
- Misses       1851     1913      +62     
- Partials       86       89       +3     
Flag Coverage Δ
unittests 31.83% <21.12%> (+0.28%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/plugin/common/client.go 0.00% <ø> (ø)
pkg/plugin/common/pods.go 0.00% <0.00%> (ø)
pkg/plugin/common/table.go 0.00% <0.00%> (ø)
pkg/plugin/common/utils.go 62.50% <62.50%> (ø)
...lers/extendeddaemonsetreplicaset/strategy/utils.go 51.18% <0.00%> (+14.64%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update efa4090...3d8d977. Read the comment docs.