mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 20:59:10 +01:00
Merge pull request #3556 from wy65701436/add-desc-mapprojects
Add description for VIC 1.2 migration scripts
This commit is contained in:
commit
e722e3b40d
@ -1,4 +1,24 @@
|
||||
// Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#!/usr/bin/python
|
||||
|
||||
"""
|
||||
The script is to export the existing projects of Harbor into a file.
|
||||
It's only for VIC 1.2 migration.
|
||||
"""
|
||||
|
||||
import json
|
||||
import fileinput
|
||||
from optparse import OptionParser
|
||||
|
@ -1,4 +1,24 @@
|
||||
// Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#!/usr/bin/python
|
||||
|
||||
"""
|
||||
The script is to import the projects of source file into Admiral and save the results into mapprojectsfile.
|
||||
It's only for VIC 1.2 migration.
|
||||
"""
|
||||
|
||||
import json
|
||||
from optparse import OptionParser
|
||||
import os
|
||||
|
@ -1,6 +1,27 @@
|
||||
// Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
The script is to map the project ID of Harbor and Admiral, and only for VIC 1.2 migration.
|
||||
|
||||
In VIC 1.2, proejct is managed by Admiral rather than Harbor, as part of migration,
|
||||
it needs to unify the proejct ID of Admiral and Harbor.
|
||||
"""
|
||||
|
||||
import json
|
||||
import fileinput
|
||||
from optparse import OptionParser
|
||||
|
Loading…
Reference in New Issue
Block a user