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

Create a script to update a ksonnet app to the latest Kubeflow package #1100

Merged
merged 2 commits into from
Jul 10, 2018

Conversation

jlewi
Copy link
Contributor

@jlewi jlewi commented Jun 29, 2018

* 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
@jlewi
Copy link
Contributor Author

jlewi commented Jun 29, 2018

Looks like a test flake
/test all

@jlewi
Copy link
Contributor Author

jlewi commented Jul 6, 2018

/assign @kunmingg

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])
Copy link
Contributor

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.
@k8s-ci-robot k8s-ci-robot added size/L and removed size/M labels Jul 6, 2018
@jlewi
Copy link
Contributor Author

jlewi commented Jul 6, 2018

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

jlewi added a commit to jlewi/testing that referenced this pull request Jul 7, 2018
* 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.
jlewi added a commit to jlewi/testing that referenced this pull request Jul 9, 2018
* 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.
@kunmingg
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit bf1c2f0 into kubeflow:master Jul 10, 2018
k8s-ci-robot pushed a commit to kubeflow/testing that referenced this pull request Jul 10, 2018
* 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.
saffaalvi pushed a commit to StatCan/kubeflow that referenced this pull request Feb 11, 2021
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.
surajkota pushed a commit to surajkota/kubeflow that referenced this pull request Jun 13, 2022
* v1.0.2 manifests

* fix version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants