imjoseangel / powerline-k8sstatus

A Powerline segment for showing the status of a K8s context
MIT License
2 stars 0 forks source link

Add context alerting by colorizing it #34

Closed imjoseangel closed 3 years ago

imjoseangel commented 3 years ago

SUMMARY

Fixes #33

ISSUE TYPE

COMPONENT NAME

segment.py

ADDITIONAL INFORMATION

Add segment, tests and documentation for colorizing context depending on arguments

{
  "function": "powerline_k8sstatus.k8sstatus",
  "priority": 50,
  "args": {
    "show_namespace": true,
    "alert_context": [
      "minikube",
      "production"
    ]
  }
},
codecov[bot] commented 3 years ago

Codecov Report

Merging #34 (6e67de0) into devel (e1d86d7) will increase coverage by 0.19%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel      #34      +/-   ##
==========================================
+ Coverage   97.36%   97.56%   +0.19%     
==========================================
  Files           3        3              
  Lines         114      123       +9     
==========================================
+ Hits          111      120       +9     
  Misses          3        3              
Flag Coverage Δ
unittests 97.56% <100.00%> (+0.19%) :arrow_up:

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

Impacted Files Coverage Δ
powerline_k8sstatus/segments.py 92.68% <100.00%> (+1.01%) :arrow_up:
tests/test_powerlinek8sstatus.py 100.00% <100.00%> (ø)

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 e1d86d7...6e67de0. Read the comment docs.