mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-19 00:36:02 +01:00
c29635b9b0
Add tips and information before and after upgrade for Harbor upgrade test
2.2 KiB
2.2 KiB
This guide is for Harbor upgrade test
Before upgrade
Prepare data
- Add user usera userb userc userd usere, set usera userb as system admin.
- Create project projecta projectc as private, create projectb as public.
- Add usera as projecta's admin, userc as developer, and userd as guest. Do the same to projectb and projectc.
- Login harbor as usera, push an unsigned image into projecta, then push a signed image to projecta.
- Login harbor as userc, push an unsigned image into projecta, then push a signed image to projeca.
- Login harbor as userd, push each image one time.
- Repeate 4 5 6 to projectb and projectc.
- Add one endpoint to harbor.
- Add an immediate replication rule to projeca, a schedule rule to projectb, a manual rule to projectc, trigger each rule one time.
- Add 5 system label syslabel1 to syslabel5 and tag syslabel1 and syslabel2 to all unsigned image.
- In each project add 5 project label projlabela to projlabele, add projlabela projlabelb and projlabelc to signed image.
- Trigger one scan all job to scan all images.(For clair enabled instance)
- Update project publicly, content trust, severity and scaning settings.
- Update Harbor email, token expire read only and scan settings.
- Update repository info.
NOTE: Create user step is not needed if auth mode is LDAP.
Upgrade
Follow the upgrade guide
- Run db migrator image to backup database.
- Run db migrator image to migrate database.
- Install new version harbor.
After upgrade
- Confirm users are exist and available(No need for VIC and LDAP Mode).
- Confirm users have the correct role.
- Confirm labels are existing and labeled correct.(No need for VIC)
- Confirm notary signature correct.
- Confirm endpoint exist.
- Confirm replication rule exist and works well.
- Confirm project level settings(publicly, content trust, scan) same as before.
- Confirm system level settings(email token expire scan) same as before.
- Confirm scan result the same as before upgrade.
- Confirm access log the same as before upgrade.
- Confirm repository info the same as before.
- Confirm other image metadata(e.g. author, size) the same as before.