Skip to content

Commit

Permalink
upgrade_from_maple issue overhangio#692 for k8s
Browse files Browse the repository at this point in the history
upgrade_from_maple issue overhangio#692 for k8s
  • Loading branch information
ibrmora authored Jun 13, 2022
1 parent 2ca2431 commit 765461f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tutor/commands/upgrade/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ def upgrade_from_maple(context: Context, config: Config) -> None:
"app.kubernetes.io/name=lms",
)
k8s.wait_for_pod_ready(config, "lms")

# Command backpopulate_user_tours
k8s.kubectl_exec(
config, "lms", ["sh", "-e", "-c", "./manage.py lms migrate user_tours"]
)
k8s.kubectl_exec(
config, "lms", ["sh", "-e", "-c", "./manage.py lms backpopulate_user_tours"]
)
Expand All @@ -140,9 +145,22 @@ def upgrade_from_maple(context: Context, config: Config) -> None:
"app.kubernetes.io/name=cms",
)
k8s.wait_for_pod_ready(config, "cms")

# Command backfill_course_tabs
k8s.kubectl_exec(
config, "cms", ["sh", "-e", "-c", "./manage.py cms migrate contentstore"]
)
k8s.kubectl_exec(
config, "cms", ["sh", "-e", "-c", "./manage.py cms migrate split_modulestore_django"]
)
k8s.kubectl_exec(
config, "cms", ["sh", "-e", "-c", "./manage.py cms backfill_course_tabs"]
)

# Command simulate_publish
k8s.kubectl_exec(
config, "cms", ["sh", "-e", "-c", "./manage.py cms migrate course_overviews"]
)
k8s.kubectl_exec(
config, "cms", ["sh", "-e", "-c", "./manage.py cms simulate_publish"]
)

0 comments on commit 765461f

Please sign in to comment.