Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

k8s: handle remote src and kubeconfig #320

Merged
merged 2 commits into from
Dec 10, 2020

Conversation

Akasurde
Copy link
Member

@Akasurde Akasurde commented Dec 3, 2020

SUMMARY

Add logic to specify if
src file is located on a remote node or Ansible Controller.

Add logic to specify if
kubeconfig file is located on the remote node or Ansible Controller.

Fixes: #307

Signed-off-by: Abhijeet Kasurde akasurde@redhat.com

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

changelogs/fragments/307_remote_src.yml
plugins/action/k8s_info.py

@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #320 (8355875) into main (549dd26) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #320      +/-   ##
==========================================
- Coverage   37.03%   37.02%   -0.02%     
==========================================
  Files           3        3              
  Lines         729      732       +3     
  Branches      144      144              
==========================================
+ Hits          270      271       +1     
- Misses        410      412       +2     
  Partials       49       49              
Impacted Files Coverage Δ
...ns/community/kubernetes/plugins/action/k8s_info.py 22.06% <0.00%> (+0.23%) ⬆️

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 549dd26...8355875. Read the comment docs.

plugins/action/k8s_info.py Outdated Show resolved Hide resolved
@Akasurde
Copy link
Member Author

Akasurde commented Dec 4, 2020

recheck

@Akasurde Akasurde changed the title k8s: Add a parameter remote_src k8s: Add a parameter remote_src and remote_kubeconfig Dec 4, 2020
@Akasurde Akasurde closed this Dec 4, 2020
@Akasurde Akasurde reopened this Dec 4, 2020
@sylvainOL
Copy link

one of two issues of #307 is solved thanks to this PR. 👍

Copy link
Collaborator

@tima tima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of this implementation. I'm pretty sure when I wrote the synchronize I was able to figure this out in the code without an extra param.

@Akasurde Akasurde force-pushed the remote_src branch 3 times, most recently from 74397d8 to b35e5e5 Compare December 7, 2020 13:48
@Akasurde Akasurde changed the title k8s: Add a parameter remote_src and remote_kubeconfig k8s: handle remote src and kubeconfig Dec 7, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Copy link
Member

@gravesm gravesm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

plugins/action/k8s_info.py Outdated Show resolved Hide resolved
plugins/action/k8s_info.py Outdated Show resolved Hide resolved
@tima tima self-requested a review December 9, 2020 19:19
Copy link
Collaborator

@tima tima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once @goneri and @fabianvf comments are addressed.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
goneri added a commit to goneri/community.kubernetes that referenced this pull request Dec 10, 2020
Depends-On: ansible-collections#320

Break down the long `run()` method to simplify the readability of the
plugin.
@jillr jillr merged commit 5d3e465 into ansible-collections:main Dec 10, 2020
goneri added a commit to goneri/community.kubernetes that referenced this pull request Dec 10, 2020
Depends-On: ansible-collections#320

Break down the long `run()` method to simplify the readability of the
plugin.
goneri added a commit to goneri/community.kubernetes that referenced this pull request Dec 10, 2020
Depends-On: ansible-collections#320

Break down the long `run()` method to simplify the readability of the
plugin.
@goneri
Copy link
Member

goneri commented Dec 10, 2020

Thank you @Akasurde :-).

goneri added a commit to goneri/community.kubernetes that referenced this pull request Jan 8, 2021
Depends-On: ansible-collections#320

Break down the long `run()` method to simplify the readability of the
plugin.
goneri added a commit to goneri/community.kubernetes that referenced this pull request Jan 8, 2021
Depends-On: ansible-collections#320

Break down the long `run()` method to simplify the readability of the
plugin.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

k8s module src options doesn't seems to work
7 participants