-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat: refactor KFP managed storage a separate package. Fixes #275 #272
Merged
google-oss-robot
merged 11 commits into
GoogleCloudPlatform:master
from
Bobgy:kfp-separate-storage
May 13, 2021
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fa35c14
feat: refactor KFP managed storage a separate package
Bobgy 65a41a7
chore: reset values
Bobgy e800e96
chore: clean up root Makefile
Bobgy 4ba089c
fix management name setter default values
Bobgy 4852d03
address comments
Bobgy 9371905
Merge remote-tracking branch 'upstream/master' into kfp-separate-storage
Bobgy 5de9acf
update env.sh kpt-set.sh README.md
Bobgy 7561f83
chore: fix
Bobgy 9e2b5d7
update readme
Bobgy 8ddda89
update
Bobgy 2ef451a
chore: enable force destroy of bucket
Bobgy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,19 @@ | ||
#*********************************************************************************************************************** | ||
# Edit this section to set the values specific to your deployment | ||
|
||
.PHONY: set-cfg-values | ||
set-cfg-values: | ||
kpt cfg set -R . gke.private false | ||
|
||
kpt cfg set -R . mgmt-ctxt <YOUR_MANAGEMENT_CTXT> | ||
|
||
kpt cfg set -R . name <YOUR_KF_NAME> | ||
kpt cfg set -R . gcloud.project.projectNumber <PROJECT_NUMBER_TO_DEPLOY_IN> | ||
kpt cfg set -R . gcloud.core.project <PROJECT_ID_TO_DEPLOY_IN> | ||
kpt cfg set -R . gcloud.compute.zone <ZONE> | ||
kpt cfg set -R . location <REGION OR ZONE> | ||
kpt cfg set -R . log-firewalls false | ||
|
||
kpt cfg set -R . email <YOUR_EMAIL_ADDRESS> | ||
|
||
# Reset various kpt values to default values and remove other | ||
# files that shouldn't be included in PRs | ||
# TODO(jlewi): We should add a test to make sure changed values don't get checked in | ||
# We don't run it in generate because we don't want to force all developers to install kpt | ||
clean-for-pr: reset-cfg-values | ||
rm -rf kubeflow/.build | ||
rm -rf management/.build | ||
|
||
rm -rf kubeflow/upstream/manifests | ||
rm -rf management/upstream/management | ||
|
||
.PHONY: reset-cfg-values | ||
reset-cfg-values: | ||
kpt cfg set -R . gke.private false | ||
|
||
kpt cfg set -R kubeflow name KUBEFLOW-NAME | ||
|
||
kpt cfg set -R management name MANAGEMENT-NAME | ||
kpt cfg set -R . mgmt-ctxt MANAGEMENT-CTXT | ||
|
||
kpt cfg set -R . name KUBEFLOW-NAME | ||
kpt cfg set -R . gcloud.core.project PROJECT | ||
kpt cfg set -R . gcloud.project.projectNumber PROJECT_NUMBER | ||
kpt cfg set -R . gcloud.compute.zone ZONE | ||
kpt cfg set -R . location LOCATION | ||
kpt cfg set -R . log-firewalls false | ||
kpt cfg set -R . gcloud.core.project PROJECT | ||
kpt cfg set -R . gcloud.project.projectNumber PROJECT_NUMBER | ||
kpt cfg set -R . location LOCATION | ||
kpt cfg set -R . gcloud.compute.zone ZONE | ||
kpt cfg set -R . gcloud.compute.region REGION | ||
kpt cfg set -R . bucket-name BUCKET-NAME | ||
kpt cfg set -R . cloudsql-name CLOUDSQL-NAME | ||
|
||
kpt cfg set -R . email EMAIL | ||
kpt cfg set -R . email EMAIL | ||
|
||
kpt cfg set -R . gke.private false | ||
kpt cfg set -R . log-firewalls false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for deployment documentation. Should we remove them from documentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KF_DIR is a bash only env var, so I think we can only keep it in documentation. It's kind of problematic in env.sh, because we might want to run env.sh from different working directories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, then we should probably extract this line in documentation, and ask user to run manually.