imjoseangel / powerline-k8sstatus

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

Feature/41 cpversion #44

Closed imjoseangel closed 3 years ago

imjoseangel commented 3 years ago

SUMMARY

Add Version segment

Fixes #41

ISSUE TYPE

COMPONENT NAME

main segment

ADDITIONAL INFORMATION

        version = None
        if show_version:
            try:
                version = VersionApi(
                    config.load_kube_config()).get_code().git_version
            except (ConnectionRefusedError, MaxRetryError, ConfigException):
                version = None
codecov[bot] commented 3 years ago

Codecov Report

Merging #44 (aeabcbf) into devel (1132329) will increase coverage by 0.30%. The diff coverage is 93.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel      #44      +/-   ##
==========================================
+ Coverage   97.97%   98.27%   +0.30%     
==========================================
  Files           3        3              
  Lines         148      174      +26     
==========================================
+ Hits          145      171      +26     
  Misses          3        3              
Flag Coverage Δ
unittests 98.27% <93.54%> (+0.30%) :arrow_up:

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

Impacted Files Coverage Δ
powerline_k8sstatus/segments.py 95.00% <84.61%> (+0.88%) :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 1132329...aeabcbf. Read the comment docs.