Unittests for portforwarding ability added in python-base.#1237
Unittests for portforwarding ability added in python-base.#1237k8s-ci-robot merged 7 commits intokubernetes-client:masterfrom
Conversation
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
Welcome @iciclespider! |
|
/check-cla |
|
/assign @yliaog |
c57ddfc to
575b610
Compare
c373b9d to
bba78a6
Compare
bba78a6 to
fada718
Compare
examples/pod_portforward.py
Outdated
| if isinstance(dns_name, bytes): | ||
| dns_name = dns_name.decode() | ||
| # Look for "<pod-name>.<namspace>.kubernetes" dns names and if found | ||
| # provide a socket that is port forwarded to the kuberntest pod. |
examples/pod_portforward.py
Outdated
| }] | ||
| } | ||
| } | ||
| resp = api_instance.create_namespaced_pod(body=pod_manifest, |
There was a problem hiding this comment.
This was copied and pasted from the pod_exec.py example, where it also does not check it. If there is an error, an exception would be thrown. I removed the assignment in this example.
examples/pod_portforward.py
Outdated
| config.load_kube_config() | ||
| c = Configuration() | ||
| c.assert_hostname = False | ||
| #Configuration.set_default(c) |
There was a problem hiding this comment.
instead of commenting it out, the following should work:
c = Configuration.get_default_copy()
c.assert_hostname = False
Configuration.set_default(c)
|
@yliaog I submitted another commit for review. |
57381a2 to
b122905
Compare
35036f9 to
c1249c9
Compare
I got everything to pass, except for the unittest module that is attempting to import |
|
/retest |
|
/approve |
|
/lgtm |
|
/test all |
|
@iciclespider: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
|
/test all |
|
@roycaihw: No presubmit jobs available for kubernetes-client/python@master DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@iciclespider Could you update the submodule to fix the import failure? https://github.com/kubernetes-client/python/blob/master/devel/submodules.md#update-submodule |
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
bc10d93 to
c78e84d
Compare
c78e84d to
3da49a2
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iciclespider, yliaog The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Looking for feed back if this looks on track as a way of implementing port forwarding.
These unittest additions provide usage examples for the port forwarding proposal here: kubernetes-client/python-base#210
Also added a port forwarding example in the examples directory.
#166