Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lookup: Recommend query instead of lookup #155

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

Akasurde
Copy link
Member

SUMMARY

To provide consistent interface for k8s lookup plugin,
add recommendation for query or lookup with wantlist=True.

Fixes: #147

Signed-off-by: Abhijeet Kasurde [email protected]

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

changelogs/fragments/147_lookup.yml
molecule/default/tasks/lookup_k8s.yml
plugins/lookup/k8s.py

@codecov
Copy link

codecov bot commented Jun 28, 2021

Codecov Report

Merging #155 (da34fe6) into main (abcc3e8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #155   +/-   ##
=======================================
  Coverage   24.02%   24.02%           
=======================================
  Files           1        1           
  Lines         154      154           
  Branches       29       29           
=======================================
  Hits           37       37           
- Misses        111      112    +1     
+ Partials        6        5    -1     
Impacted Files Coverage Δ
...ections/kubernetes/core/plugins/action/k8s_info.py 24.02% <0.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 abcc3e8...da34fe6. Read the comment docs.

To provide consistent interface for k8s lookup plugin,
add recommendation for `query` or `lookup` with `wantlist=True`.

Fixes: ansible-collections#147

Signed-off-by: Abhijeet Kasurde <[email protected]>
@Akasurde Akasurde merged commit 04f227e into ansible-collections:main Jul 8, 2021
@Akasurde Akasurde deleted the i147 branch July 8, 2021 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lookup and query behavior differ when using resource_name vs label_selector
2 participants