Deng, Qian
edbe2fe620
Update migrator to 1 6 0
...
1. Add new alembic_pg folder for postgres
2. Add migration file for 1.6.0
3. Update version to 1.6.0
4. update migrator dockerfile
2018-07-02 21:23:47 +08:00
wangyan
2379123ff7
fix up clair issue and typo
2018-06-10 23:33:37 -07:00
wangyan
8d4d1582a3
add checking for clair DB migration
2018-06-10 20:15:55 -07:00
wangyan
c7a54e115c
Add clair data migration in DB migrator
2018-06-08 01:49:28 -07:00
Wenkai Yin 79628
0c56493fb6
Soft delete label
...
Modify the deletion of label to soft deletion, in this way the names of deleted labels referenced by replication rules can be shown to users
2018-06-07 17:14:12 +08:00
Yan
6d800cabbd
enable migrator to support 1.5.0 migration from mysql to pgsql ( #5029 )
...
This commit is to enable data migrator to support migrates data
from mysql to pgsql, this is a specific step for user to upgrade
harbor across v1.5.0, as we have move harbor DB to pgsql from
1.5.0. It supports both harbor and notary db data migration,
and be split into two steps with dependency.
It also fix issue #4847 , add build DB migrator in make process.
2018-06-01 14:58:43 +08:00
Wenkai Yin
5f58c01e4a
Fix bug #4840 ( #4851 )
...
Fix the bug: upgrade failed in VIC if replication policies exist
2018-05-02 09:37:35 -07:00
wangyan
2b3d70357e
Overwrite some attributes in harbor.cfg 1.5
...
The values of "redis_url" and "max_job_workers" should be set to new
values due to new implementation.
2018-05-01 09:28:29 +08:00
Wenkai Yin
73babbf1ab
Modify unique constraint of table harbor_label
...
Add unique constraint to column name, scope and project_id of table harbor_label to make creating same name labels under different projects valid
2017-12-19 22:15:56 +08:00
Yan
bc473f8521
Enable output parameter in harbor migrator ( #4561 )
2018-04-02 03:04:00 -07:00
Daniel Jiang
3f46df8087
Merge pull request #4560 from reasonerjt/cfg-upgrade-fix
...
Refine the migrator
2018-04-02 14:22:37 +08:00
Tan Jiang
8b9a67fe1e
Update harbor.cfg template to contain latest change
2018-04-02 13:01:55 +08:00
Tan Jiang
1e260b59fe
Refine the python file to make it run on python3
2018-04-02 12:34:12 +08:00
Daniel Jiang
53cea404fd
Merge pull request #4523 from ninjadq/migrator_1_5
...
Upgrade migrator to 1.5.0
2018-04-02 09:25:11 +08:00
Yan
5bbbb06807
add all in one migrator scripts ( #4511 )
2018-04-01 08:53:21 -07:00
Deng, Qian
93c96da18b
Upgrade migrator to 1.5.0
2018-03-30 22:45:32 +08:00
Tan Jiang
b1923bf219
Refine the python file to make it run on python3
2018-03-30 14:41:12 +08:00
Daniel Jiang
24dfad4afe
Return zero when input version is same as target ( #4535 )
2018-03-29 23:17:07 -07:00
Tan Jiang
2debdb7229
Return zero when input version is same as target
2018-03-30 11:34:51 +08:00
Tan Jiang
b6df6cf169
Add indexes to job tables and bump up schema version.
2018-03-28 16:15:54 +08:00
Tan Jiang
6f1c46624f
Update SQL script to add uuid to job tables.
...
We have to add the uuid/id mapping as new job service will only store uuid.
Further work is in feature branch for now, commit this change to
accelerate migration work.
2018-03-23 17:45:50 +08:00
Tan Jiang
421bd182bc
Update DB changelog to reflect schema change for user group
2018-03-21 16:45:21 +08:00
Tan Jiang
c8265a8d53
Provide migration scripts for harbor.cfg
...
Default target version is 1.5.0
This is mainly for VIC-appliance upgrade, and should be considered
experimental for oss due to limited test.
Tested with 1.2 and 1.3 harbor.cfg from VIC appliance.
2018-03-16 14:38:50 +08:00
Wenkai Yin
36b9c4e458
Implement adding/removing labels to/from repositories and images API
2018-03-12 19:30:05 +08:00
Wenkai Yin
379f113452
Implement label management API
2018-03-09 12:17:27 +08:00
Deng, Qian
b3e65ed71e
Update migration tool for v1.4
...
1. Update database meta file
2. Add migration file for 1.4
2018-01-16 15:38:51 +08:00
Wenkai Yin
665a54edc3
Merge remote-tracking branch 'upstream/master' into 171213_merge
2017-12-13 13:40:24 +08:00
yixingj
9b03c93afd
Add database driver for Harbor configurations
...
1>Add a new database driver for configurations
2> change the current default driver from json
to database
2017-12-06 13:06:54 +08:00
Wenkai Yin
6b0ee138e5
Implement immediate trigger and the methods of WatchList
2017-11-27 14:23:21 +08:00
reasonerjt
1f5a9cdee8
Fix issue in Docker files
...
1)Fix a syntax error in clair Dockerfile
2)Fix permission issue in database migrator image.
2017-11-16 01:15:59 -08:00
Tan Jiang
6d7c028729
Refine the Dockerfile
...
Refine the Dockerfile to remove temporary workarounds.
Also fixes #3587 , to make sure the configuration files of rsyslog can be
read by uid 10000.
2017-11-13 18:04:17 +08:00
Deng, Qian
f2868f2033
fix issue when upgrade from 1.2.0rc1 to 1.3.0
2017-11-10 18:19:36 +08:00
wangyan
28834fedf7
Add description for VIC 1.2 migration scripts
2017-11-06 01:16:17 -08:00
Deng, Qian
5ffa192b79
db migration from 1.2.0 to 1.3.0
2017-11-02 17:43:10 +08:00
Wenkai Yin
51d5df0849
Update replication policy API to support trigger and filter
2017-11-02 14:59:26 +08:00
Tan Jiang
ad585499a0
Move DB migrator image to be based on Maria DB on photon
2017-10-26 17:08:12 +08:00
Wenkai Yin
2156750b04
Move certificate verification to target level
...
The certificate verification is on system level before this commit. Moving it
to target level makes the configuration more flexible for different targets.
2017-10-20 15:36:56 +08:00
Wenkai Yin
66b2d0d3f3
Apply project level policies to standalone Harbor
...
The following features are only enabled in integration mode, this commit moves
these to standalone Harbor:
- Content trust policy: only signed images can be pulled
- Vulnerability policy: only images whose severity is below the threshold can be pulled
- Automatic scan policy: automatic scan pushed images
2017-10-19 17:33:28 +08:00
Wenkai Yin
e495357d98
implement the default project metadata manager
2017-09-28 16:17:51 +08:00
Yan
b0adf7e8d4
fix upgrade issue ( #3171 )
...
update
update
update
2017-09-07 22:50:38 +08:00
Yan
c54f55bdff
update migrator ( #2988 )
...
update
update
2017-08-22 15:47:53 +08:00
wangyan
0ae6becabc
update db scheme
...
update
update
2017-08-17 16:41:20 +08:00
wangyan
77fa363992
add ignore ssl
2017-07-31 17:29:19 +08:00
wangyan
ebda8363f2
update import to load token from file
...
update
2017-07-26 01:28:05 -07:00
Yan
fd473cbaa0
update DB Migrator according latest change. ( #2763 )
...
* update DB Migrator according latest change.
update format
update
add import
update
return the rc from container
update
update to false
* add user_id
2017-07-24 19:48:12 -07:00
wangyan
bdf4641c43
update user realname
...
update
2017-07-05 03:43:21 -07:00
Yan
d849c36e3f
Merge pull request #2570 from samifruit514/master
...
Allow 255 chars for Realname
2017-07-05 03:17:57 -07:00
wangyan
c986c33a6c
1.2.0 DB migration
...
update
update
2017-06-30 03:01:56 -07:00
Archambault, Samuel
18cea61121
Allow 255 chars for Realname
2017-06-19 13:54:21 -04:00
Wenkai Yin
1e28f01365
delete foreign key
2017-05-10 18:28:19 +08:00