openshift-instruqt / instruqt

Repository for the Red Hat and OpenShift Developers Learning Portal, powered by Instruqt.
https://developers.redhat.com/learn/openshift
32 stars 36 forks source link

Migrate openshift 4-12 preset tracks to 4-17 preset pool #323

Open ryanj opened 3 weeks ago

ryanj commented 3 weeks ago

Tracks to migrate:

Progress check:

ryanj commented 3 weeks ago

Migration outline

For each track:

  1. Pull for any outstanding changes:
    instruqt track pull --force
  2. Commit changes to establish a fallback point:
    git add . ; git commit -m 'pulling changes from instruqt'
  3. Update the track's track.yml file. Set the sandbox_preset to openshift-4-17:
    sed -i '' 's/^sandbox_preset: openshift-4-12/sandbox_preset: openshift-4-17/' track.yml
  4. Rewrite links to the web console:
    sed -i '' 's/crc-lgph7-master-0\.//g' 0?-*/assignment.md
    sed -i '' 's/crc-rwwzd-master-0\.//g' 0?-*/assignment.md
  5. Review changes. Make sure step 4 worked as expected
    git diff
  6. Push updates
    instruqt track push
  7. Test the track:
    instruqt track open
  8. If everything is working as expected, commit your changes and push:
    git add . ; git commit -m 'moving track to OpenShift 4-17' ; git push origin master

Note any progress in the issue description (above): #323

NOTE: If you need to revert the changes, try running the following to reset the track back to step2:

git restore . ; instruqt track push