Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor bug fixes for gke #85

Merged
merged 1 commit into from
Aug 13, 2020
Merged

minor bug fixes for gke #85

merged 1 commit into from
Aug 13, 2020

Conversation

ajslone
Copy link
Collaborator

@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
Collaborator

@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
Collaborator

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
Collaborator 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
Collaborator

@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
Collaborator 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.

2 participants