-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Create a script to update a ksonnet app to the latest Kubeflow package #1100
Conversation
* The script removes the existing registry named kubeflow and any packages installed from that registry * It then readds Kubeflow using the supplied URL and reinstalls any packages. * Related to: kubeflow/website#57 * Based on the script in ksonnet/ksonnet#237
Looks like a test flake |
/assign @kunmingg |
scripts/upgrade_ks_app.py
Outdated
logging.info("Skipping registry %s", name) | ||
continue | ||
logging.info("Adding registry %s point at %s", name, registry_url) | ||
subprocess.call(['ks', 'registry', 'add', name, registry_url]) |
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.
We need to either delete old registry info from app.yaml or use a new name like kubeflow-0.2.0
.
Otherwise ks will complain when add new version registry with same name.
the registry being upgraded; and only delete the packages in that registry.
@kunmingg PTAL. We were deleting entries in app.yaml but there were bugs in the logic; we were deleting all entries and not just the registry being upgraded. |
* Don't delete and recreate the ksonnet app. * Use the new upgrade script in kubeflow/kubeflow#1100 * Move creation of secrets into a separate script; there's no reason to recreate them just to update the app. * Add a bunch of fixes in redeploy_app.sh to deal with various issues in the way ks apply works; see comments in code for links to the issues.
* Don't delete and recreate the ksonnet app. * Use the new upgrade script in kubeflow/kubeflow#1100 * Move creation of secrets into a separate script; there's no reason to recreate them just to update the app. * Add a bunch of fixes in redeploy_app.sh to deal with various issues in the way ks apply works; see comments in code for links to the issues. * Update the docs.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kunmingg 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 |
* Don't delete and recreate the ksonnet app. * Use the new upgrade script in kubeflow/kubeflow#1100 * Move creation of secrets into a separate script; there's no reason to recreate them just to update the app. * Add a bunch of fixes in redeploy_app.sh to deal with various issues in the way ks apply works; see comments in code for links to the issues. * Update the docs.
kubeflow#1100) * Create a script to update a ksonnet app to the latest Kubeflow package * The script removes the existing registry named kubeflow and any packages installed from that registry * It then readds Kubeflow using the supplied URL and reinstalls any packages. * Related to: kubeflow/website#57 * Based on the script in ksonnet/ksonnet#237 * * Only delete the registry entry in app.yaml corresponding to the registry being upgraded; and only delete the packages in that registry.
* v1.0.2 manifests * fix version
This change is