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

Add Google Cloud Storage backend #1809

Merged
merged 8 commits into from Dec 9, 2019
Merged

Add Google Cloud Storage backend #1809

merged 8 commits into from Dec 9, 2019

Conversation

wagoodman
Copy link

Thanks for contributing to Prefect!

Please describe your work and make sure your PR:

  • adds new tests (if appropriate)
  • updates CHANGELOG.md (if appropriate)
  • updates docstrings for any new functions or function arguments, including docs/outline.toml for API reference docs (if appropriate)

Note that your PR will not be reviewed unless all three boxes are checked.

What does this PR change?

Adds a new storage option for Google Cloud Storage.

Why is this PR important?

This allows the user to delegate flow storage to a remote backend.

@wagoodman wagoodman added the enhancement An improvement of an existing feature label Dec 9, 2019
src/prefect/environments/storage/gcs.py Outdated Show resolved Hide resolved
def _gcs_client(self): # type: ignore
from google.cloud import storage

return storage.Client(project=self.project)
Copy link

Choose a reason for hiding this comment

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

How are GCP creds handled with this? Does it require the user to log in outside of running this, creds in a known location, etc.?

Copy link
Author

Choose a reason for hiding this comment

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

indeed, this requires the user to already have authenticated with the gcloud cli and make the credentials path available via the environment variable

@wagoodman wagoodman changed the base branch from master to deploy-2.2 December 9, 2019 15:06
@wagoodman wagoodman changed the base branch from deploy-2.2 to master December 9, 2019 16:24
@wagoodman wagoodman marked this pull request as ready for review December 9, 2019 16:25
cicdw
cicdw previously approved these changes Dec 9, 2019
Copy link
Member

@cicdw cicdw left a comment

Choose a reason for hiding this comment

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

Awesome this looks clean and good to go to me

@codecov
Copy link

codecov bot commented Dec 9, 2019

Codecov Report

Merging #1809 into master will increase coverage by 0.01%.
The diff coverage is 95.94%.

@joshmeek joshmeek merged commit 56bf5e2 into master Dec 9, 2019
@joshmeek joshmeek deleted the add-gcs-storage branch December 9, 2019 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants