Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ajslone
Copy link
Contributor

@ajslone ajslone commented Aug 13, 2020

This PR implements some minor bugfixes for the gke backend.

@ajslone ajslone requested a review from sritchie August 13, 2020 21:38
Copy link
Contributor

@sritchie sritchie left a comment

Choose a reason for hiding this comment

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

Excellent. How did you track these down?

self._core_api = None
self._batch_api = None
self._apps_api = None
self._gke_cluster: Optional[GKECluster] = None
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, didn't realize you could type variables inline.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

now that we require python >= 3.6 we can!

@sritchie
Copy link
Contributor

@ajslone also do previous tests cover these? Is there any easy way to lock in this behavior with tests, or do the types cover it?

@ajslone
Copy link
Contributor Author

ajslone commented Aug 13, 2020

I need to add tests for gke.cluster and gke.cli, so the changes here for those are not entirely covered/caught by tests yet. The changes for gke.util are currently tested in our test suite, but the changes in the PR in that file just modify the code to make mypy happy, so in this case our tests make sure that these changes don't break anything.

@ajslone ajslone merged commit 040e9b5 into master Aug 13, 2020
@ajslone ajslone deleted the aslone/gke_mypy branch August 13, 2020 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants