ansible-collections / community.kubernetes

Kubernetes Collection for Ansible
https://galaxy.ansible.com/community/kubernetes
GNU General Public License v3.0
265 stars 106 forks source link

k8s_info now outputs whether the api was found #308

Closed fabianvf closed 3 years ago

fabianvf commented 3 years ago
SUMMARY

Previously, an empty list of resources could mean two things:

  1. There were no instances of resources matching the api_version and kind found in the cluster.
  2. There was no API found that matched the provided api_version and kind.

This adds a new field to the k8s_info output, api_found, which is a boolean that allows this ambiguity to be resolved by the user without additional steps.

ISSUE TYPE
COMPONENT NAME

k8s_info

ADDITIONAL INFORMATION
codecov[bot] commented 3 years ago

Codecov Report

Merging #308 (2e7a8e0) into main (b97c5ce) will decrease coverage by 0.05%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #308      +/-   ##
==========================================
- Coverage   37.00%   36.95%   -0.06%     
==========================================
  Files           3        3              
  Lines         727      728       +1     
  Branches      144      144              
==========================================
  Hits          269      269              
- Misses        409      410       +1     
  Partials       49       49              
Impacted Files Coverage Δ
...ommunity/kubernetes/plugins/module_utils/common.py 35.85% <0.00%> (-0.07%) :arrow_down:

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 b97c5ce...2e7a8e0. Read the comment docs.