-
Notifications
You must be signed in to change notification settings - Fork 183
config: Fix persist_config flag and function calls #169
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.
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. I understand the commands that are listed here. |
Codecov Report
@@ Coverage Diff @@
## master #169 +/- ##
=========================================
Coverage ? 92.52%
=========================================
Files ? 13
Lines ? 1485
Branches ? 0
=========================================
Hits ? 1374
Misses ? 111
Partials ? 0
Continue to review full report at Codecov.
|
please sign cla |
CLA signed |
Hi @yliaog Regarding the test, from what I understand from the code, the problem is in the function "get_kube_config_loader_for_yaml_file" (this is where the fix is). Thanks. |
I've added 2 tests for the "_get_kube_config_loader_for_yaml_file" function. Thanks. |
The persist_config flag was setting the kwargs['config_persister'] to the result of the function kcfg.save_changes and not the function kcfg.save_changes itself. Once this is fixed, the second problem was that the function was called with an argument when it's defined without argument so an exception was raised.
Hi Any news about reviewing this PR? Thanks. |
/kind bug Thanks for sending the fix! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jfrabaute, roycaihw The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The persist_config flag was setting the kwargs['config_persister'] to
the result of the function kcfg.save_changes and not the function
kcfg.save_changes itself.
Once this is fixed, the second problem was that the function was called
with an argument when it's defined without argument so an exception was
raised.