-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* develope: (172 commits) update k8s_namespace_waiter add timeout logger Add [PUT] /maintenance/update_pj_http_url API for update project table http_url and ssh_url. *Update k8sClient.py, sync_project.py 1. add get_namespace 2. add k8s_namespace_waiter 3. add rc_add_namespace_into_rc_project 4. fixed bot_process bot name fixed update_issue check fixed_version exist first fixed update_issue args fixed_version_id key error update_issue fixed_versions_id support null *Update apiError.py, issue.py 1. add invalid_fixed_version_id 2. update and create issue need to check fixed_version status Ignore ingress subdomain when service was 'db-gui' *Update sync_project.py, sonarqube.py 1. update sq_list_project params 2. fixed check_hb_pj get X-Total-Count 3. refactor check_sq_pj *Update sync_project.py 1. refactor most functions 2. auto add members by project_user_role sonarqube add sq_list_user, sq_list_member k8sClient add list_role_binding_in_namespace harbor add hb_list_user, hb_list_member gitlab add gl_project_list_member Use http when used nodePort API add response git tag and git commit time Generate git tag, git commit time. Remove redundant code Check ingreess exist when api generate service URL Add force_id to version list ...
- Loading branch information
Showing
43 changed files
with
3,077 additions
and
713 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ __pycache__ | |
alembic.ini | ||
.api_version | ||
pj_push_template | ||
pj_edit_pipe_yaml | ||
pj_edit_pipe_yaml | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,9 @@ | |
"HARBOR_ACCOUNT": "admin", | ||
"HARBOR_PASSWORD": "***********", | ||
|
||
"INGRESS_EXTERNAL_BASE": "ingress-dev.iiidevops.org", | ||
"INGRESS_EXTERNAL_TLS": "ingress-tls", | ||
|
||
"ADMIN_INIT_LOGIN": "devops_admin", | ||
"ADMIN_INIT_EMAIL": "[email protected]", | ||
"ADMIN_INIT_PASSWORD": "********", | ||
|
38 changes: 38 additions & 0 deletions
38
apis/alembic/versions/1ebcdf2b64ba_add_issuecollectionrelation_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"""add IssueCollectionRelation table | ||
Revision ID: 1ebcdf2b64ba | ||
Revises: b2195255b274 | ||
Create Date: 2021-05-27 09:02:48.983611 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '1ebcdf2b64ba' | ||
down_revision = 'b2195255b274' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('issue_collection_relation', | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.Column('project_id', sa.Integer(), nullable=True), | ||
sa.Column('issue_id', sa.Integer(), nullable=True), | ||
sa.Column('software_name', sa.String(), nullable=True), | ||
sa.Column('file_name', sa.String(), nullable=True), | ||
sa.Column('plan_name', sa.String(), nullable=True), | ||
sa.Column('items', sa.JSON(), nullable=True), | ||
sa.ForeignKeyConstraint(['project_id'], ['projects.id'], ondelete='CASCADE'), | ||
sa.PrimaryKeyConstraint('id') | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('issue_collection_relation') | ||
# ### end Alembic commands ### |
50 changes: 50 additions & 0 deletions
50
apis/alembic/versions/7707fc9fbdde_update_registries_remove_cloudprovider.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
"""update registries remove cloudprovider | ||
Revision ID: 7707fc9fbdde | ||
Revises: 1ebcdf2b64ba | ||
Create Date: 2021-05-28 09:41:33.958676 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '7707fc9fbdde' | ||
down_revision = '1ebcdf2b64ba' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('registries', sa.Column('access_key', sa.String(), nullable=True)) | ||
op.add_column('registries', sa.Column('access_secret', sa.String(), nullable=True)) | ||
op.add_column('registries', sa.Column('description', sa.String(), nullable=True)) | ||
op.add_column('registries', sa.Column('type', sa.String(), nullable=True)) | ||
op.add_column('registries', sa.Column('url', sa.String(), nullable=True)) | ||
op.drop_constraint('registries_provider_id_fkey', 'registries', type_='foreignkey') | ||
op.drop_column('registries', 'provider_id') | ||
op.drop_table('cloud_provider') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('registries', sa.Column('provider_id', sa.INTEGER(), autoincrement=False, nullable=True)) | ||
op.drop_column('registries', 'url') | ||
op.drop_column('registries', 'type') | ||
op.drop_column('registries', 'description') | ||
op.drop_column('registries', 'access_secret') | ||
op.drop_column('registries', 'access_key') | ||
op.create_table('cloud_provider', | ||
sa.Column('id', sa.INTEGER(), autoincrement=True, nullable=False), | ||
sa.Column('name', sa.VARCHAR(), autoincrement=False, nullable=True), | ||
sa.Column('user_id', sa.INTEGER(), autoincrement=False, nullable=True), | ||
sa.Column('type', sa.VARCHAR(), autoincrement=False, nullable=True), | ||
sa.Column('provider_info', postgresql.JSON(astext_type=sa.Text()), autoincrement=False, nullable=True), | ||
sa.ForeignKeyConstraint(['user_id'], ['user.id'], name='cloud_provider_user_id_fkey', ondelete='CASCADE'), | ||
sa.PrimaryKeyConstraint('id', name='cloud_provider_pkey') | ||
) | ||
op.create_foreign_key('registries_provider_id_fkey', 'registries', 'cloud_provider', ['provider_id'], ['id'], ondelete='CASCADE') | ||
# ### end Alembic commands ### |
28 changes: 28 additions & 0 deletions
28
apis/alembic/versions/987ed3077e84_add_plugin_software_type_id_column.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""add plugin_software_type_id column | ||
Revision ID: 987ed3077e84 | ||
Revises: 7707fc9fbdde | ||
Create Date: 2021-06-07 10:58:09.196144 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '987ed3077e84' | ||
down_revision = '7707fc9fbdde' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('plugin_software', sa.Column('type_id', sa.Integer(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('plugin_software', 'type_id') | ||
# ### end Alembic commands ### |
40 changes: 40 additions & 0 deletions
40
apis/alembic/versions/c296a8ba63ac_add_test_generated_issue_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"""Add test generated issue table | ||
Revision ID: c296a8ba63ac | ||
Revises: 987ed3077e84 | ||
Create Date: 2021-06-21 16:19:59.125357 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'c296a8ba63ac' | ||
down_revision = '987ed3077e84' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('test_generated_issue', | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.Column('project_id', sa.Integer(), nullable=True), | ||
sa.Column('issue_id', sa.Integer(), nullable=True), | ||
sa.Column('software_name', sa.String(), nullable=True), | ||
sa.Column('file_name', sa.String(), nullable=True), | ||
sa.Column('branch', sa.String(), nullable=True), | ||
sa.Column('commit_id', sa.String(), nullable=True), | ||
sa.Column('result_table', sa.String(), nullable=False), | ||
sa.Column('result_id', sa.Integer(), nullable=False), | ||
sa.ForeignKeyConstraint(['project_id'], ['projects.id'], ondelete='CASCADE'), | ||
sa.PrimaryKeyConstraint('id') | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('test_generated_issue') | ||
# ### end Alembic commands ### |
42 changes: 42 additions & 0 deletions
42
apis/alembic/versions/e55508cb2d34_add_release_table_for_release_record.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
"""Add Release Table for release record | ||
Revision ID: e55508cb2d34 | ||
Revises: c296a8ba63ac | ||
Create Date: 2021-06-24 16:54:48.451314 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'e55508cb2d34' | ||
down_revision = 'c296a8ba63ac' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('release', | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.Column('version_id', sa.Integer(), nullable=True), | ||
sa.Column('versions', sa.String(), nullable=True), | ||
sa.Column('issues', sa.String(), nullable=True), | ||
sa.Column('branch', sa.String(), nullable=True), | ||
sa.Column('commit', sa.String(), nullable=True), | ||
sa.Column('tag_name', sa.String(), nullable=True), | ||
sa.Column('note', sa.String(), nullable=True), | ||
sa.Column('creator_id', sa.Integer(), nullable=True), | ||
sa.Column('create_at', sa.DateTime(), nullable=True), | ||
sa.Column('update_at', sa.DateTime(), nullable=True), | ||
sa.ForeignKeyConstraint(['creator_id'], ['user.id'], ondelete='SET NULL'), | ||
sa.PrimaryKeyConstraint('id') | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('release') | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.