Skip to content

Commit

Permalink
feat: 提供 Agent 包管理后台基础接口 (closed #1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
ping15 committed Nov 12, 2024
1 parent cc349bd commit 1fe08be
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 38 deletions.
13 changes: 0 additions & 13 deletions apps/node_man/migrations/0083_merge_20240911_1050.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
# -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-节点管理(BlueKing-BK-NODEMAN) available.
Copyright (C) 2017-2022 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at https://opensource.org/licenses/MIT
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.
"""
# Generated by Django 3.2.4 on 2024-11-12 07:39

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("node_man", "0081_auto_20240307_1656"),
("node_man", "0083_subscription_operate_info"),
]

operations = [
Expand Down Expand Up @@ -62,7 +53,13 @@ class Migration(migrations.Migration):
(
"os",
models.CharField(
choices=[("windows", "windows"), ("linux", "linux"), ("aix", "aix"), ("solaris", "solaris")],
choices=[
("windows", "windows"),
("linux", "linux"),
("aix", "aix"),
("solaris", "solaris"),
("darwin", "darwin"),
],
db_index=True,
default="linux",
max_length=32,
Expand Down Expand Up @@ -94,4 +91,49 @@ class Migration(migrations.Migration):
"verbose_name_plural": "Gse包(GsePackages)",
},
),
migrations.AlterField(
model_name="job",
name="job_type",
field=models.CharField(
choices=[
("INSTALL_AGENT", "INSTALL_AGENT"),
("RESTART_AGENT", "RESTART_AGENT"),
("REINSTALL_AGENT", "REINSTALL_AGENT"),
("UNINSTALL_AGENT", "UNINSTALL_AGENT"),
("REMOVE_AGENT", "REMOVE_AGENT"),
("UPGRADE_AGENT", "UPGRADE_AGENT"),
("DOWNGRADE_AGENT", "DOWNGRADE_AGENT"),
("IMPORT_AGENT", "IMPORT_AGENT"),
("RESTART_AGENT", "RESTART_AGENT"),
("RELOAD_AGENT", "RELOAD_AGENT"),
("ACTIVATE_AGENT", "ACTIVATE_AGENT"),
("MAIN_START_PLUGIN", "MAIN_START_PLUGIN"),
("MAIN_STOP_PLUGIN", "MAIN_STOP_PLUGIN"),
("MAIN_RESTART_PLUGIN", "MAIN_RESTART_PLUGIN"),
("MAIN_RELOAD_PLUGIN", "MAIN_RELOAD_PLUGIN"),
("MAIN_DELEGATE_PLUGIN", "MAIN_DELEGATE_PLUGIN"),
("MAIN_UNDELEGATE_PLUGIN", "MAIN_UNDELEGATE_PLUGIN"),
("MAIN_INSTALL_PLUGIN", "MAIN_INSTALL_PLUGIN"),
("MAIN_STOP_AND_DELETE_PLUGIN", "MAIN_STOP_AND_DELETE_PLUGIN"),
("DEBUG_PLUGIN", "DEBUG_PLUGIN"),
("STOP_DEBUG_PLUGIN", "STOP_DEBUG_PLUGIN"),
("PUSH_CONFIG_PLUGIN", "PUSH_CONFIG_PLUGIN"),
("REMOVE_CONFIG_PLUGIN", "REMOVE_CONFIG_PLUGIN"),
("PACKING_PLUGIN", "PACKING_PLUGIN"),
("INSTALL_PROXY", "INSTALL_PROXY"),
("RESTART_PROXY", "RESTART_PROXY"),
("REINSTALL_PROXY", "REINSTALL_PROXY"),
("REPLACE_PROXY", "REPLACE_PROXY"),
("UNINSTALL_PROXY", "UNINSTALL_PROXY"),
("UPGRADE_PROXY", "UPGRADE_PROXY"),
("IMPORT_PROXY", "IMPORT_PROXY"),
("RESTART_PROXY", "RESTART_PROXY"),
("RELOAD_PROXY", "RELOAD_PROXY"),
],
db_index=True,
default="INSTALL_PROXY",
max_length=45,
verbose_name="作业类型",
),
),
]
13 changes: 0 additions & 13 deletions apps/node_man/migrations/0084_merge_20241112_1438.py

This file was deleted.

0 comments on commit 1fe08be

Please sign in to comment.