-
Notifications
You must be signed in to change notification settings - Fork 182
Support multiple expires-on field formats #126
Support multiple expires-on field formats #126
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fatal-exception If they are not already assigned, you can assign the PR to them by writing 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 |
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. |
This addresses #84 |
testing CLA signing |
Is someone able to help me get this reviewed? I wonder if @mbohlool has any bandwidth? Thanks! |
please add a test case in kube_config_test.py, also fix the CI build failure. Thanks. |
Thanks, I guess these are the errors I need to address for the build to pass?
I only touched one of these files, the kube_config.py, but I'm happy to fix all the errors if that's needed? |
corrected the top 3, i can't se remote_cluster.py file in this repo |
`expires-on` field in config can be an int or a timestring
a81d61e
to
18df666
Compare
I have added tests but not had a chance to run them - is there any documentation on how to run? If I try
Trying with Python 2.7.16 as I can see the library Thanks! |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
a lot of the test failures are from pycodestyle: https://travis-ci.org/kubernetes-client/python-base/builds/530795260?utm_source=github_status&utm_medium=notification you can run pycodestyle locally and fix the code |
Try autopep8 agressive level 2 - that’s how we’re checking the code style right now. |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fatal-exception: PR needs rebase. 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. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Closing due to inactivity. Please reopen if needed /close |
@roycaihw: Closed this PR. In 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. |
expires-on
field in config can be an int or a time-string.Existing code only supports an int, but some tools, such as aks-engine AAD integration for Kubernetes, write a time into this field as a string. Here the code is updated to support either int or
'%Y-%m-%d %H:%M:%S.%f'
in this field