Closed piglei closed 3 years ago
Welcome @piglei!
It looks like this is your first PR to kubernetes-client/python-base 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.
You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.
You can also check if kubernetes-client/python-base has its own contribution guidelines.
You may want to refer to our testing guide if you run into trouble with your tests not passing.
If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!
Thank you, and welcome to Kubernetes. :smiley:
/assign @yliaog
/lgtm
/assign @fabianvf
/approve
/lgtm, needs rebase though
Rebased with upstream/master.
PR refreshed.
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: 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.
please squash the commits
please squash the commits
Done
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fabianvf, piglei, yliaog
The full list of commands accepted by this bot can be found here.
The pull request process is described here
@piglei just needs the release note and it should be good to go
@piglei just needs the release note and it should be good to go
Thanks for reminding me, the release note was now added.
The
body
parameter inDynamicClient
's most methods currently accepts both dict type andResourceInstance
type. This was achieved by callingserialize_body()
before mading any requests.But in current implementation, the duck-typing style checking in
serialize_body
was kind of meaning-less---ResourceInstance
type has overwritten it's__getattr__
method, so basically it's instances can pass everyhasattr(...)
check.This PR makes the checking in
serialize_body()
method more restrictive and also add some related unit tests.Release Note: