-
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.
- Loading branch information
Showing
14 changed files
with
217 additions
and
979 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
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
100 changes: 5 additions & 95 deletions
100
lib/airflow/example/task_component/beetle_task_infra_migration.json
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 |
---|---|---|
@@ -1,97 +1,7 @@ | ||
{ | ||
"name": "beetle_task_infra_migration", | ||
"description": "Do infra migration with beetle.", | ||
"data": { | ||
"options": { | ||
"api_connection_id": "beetle_api", | ||
"endpoint": "/beetle/migration/ns/mig01/mci", | ||
"method": "POST", | ||
"request_body": "{\n \"name\": \"recommended-infra01\",\n \"installMonAgent\": \"no\",\n \"label\": \"DynamicVM\",\n \"systemLabel\": \"\",\n \"description\": \"Made in CB-TB\",\n \"vm\": [\n {\n \"name\": \"recommended-vm01\",\n \"subGroupSize\": \"3\",\n \"label\": \"DynamicVM\",\n \"description\": \"Description\",\n \"commonSpec\": \"azure+koreacentral+standard_b4ls_v2\",\n \"commonImage\": \"azure+koreacentral+ubuntu22.04\",\n \"rootDiskType\": \"default\",\n \"rootDiskSize\": \"default\",\n \"vmUserPassword\": \"test\",\n \"connectionName\": \"azure-koreacentral\"\n }\n ]\n}" | ||
}, | ||
"param_option": { | ||
"params": { | ||
"required": ["name", "vm"], | ||
"properties": { | ||
"description": { | ||
"type": "string", | ||
"example": "Made in CB-TB" | ||
}, | ||
"installMonAgent": { | ||
"description": "InstallMonAgent Option for CB-Dragonfly agent installation ([yes/no] default:yes)", | ||
"type": "string", | ||
"default": "yes", | ||
"enum": ["yes", "no"], | ||
"example": "no" | ||
}, | ||
"label": { | ||
"description": "Label is for describing the mcis in a keyword (any string can be used)", | ||
"type": "string", | ||
"example": "DynamicVM" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"example": "mcis01" | ||
}, | ||
"systemLabel": { | ||
"description": "SystemLabel is for describing the mcis in a keyword (any string can be used) for special System purpose", | ||
"type": "string", | ||
"example": "" | ||
}, | ||
"vm": { | ||
"type": "array", | ||
"items": { | ||
"required": ["commonImage", "commonSpec"], | ||
"properties": { | ||
"commonImage": { | ||
"description": "CommonImage is field for id of a image in common namespace", | ||
"type": "string", | ||
"example": "ubuntu18.04" | ||
}, | ||
"commonSpec": { | ||
"description": "CommonSpec is field for id of a spec in common namespace", | ||
"type": "string", | ||
"example": "aws-ap-northeast-2-t2-small" | ||
}, | ||
"connectionName": { | ||
"description": "if ConnectionName is given, the VM tries to use associtated credential. if not, it will use predefined ConnectionName in Spec objects", | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"example": "Description" | ||
}, | ||
"label": { | ||
"type": "string", | ||
"example": "DynamicVM" | ||
}, | ||
"name": { | ||
"description": "VM name or subGroup name if is (not empty) && (> 0). If it is a group, actual VM name will be generated with -N postfix.", | ||
"type": "string", | ||
"example": "g1-1" | ||
}, | ||
"rootDiskSize": { | ||
"description": "\"default\", Integer (GB): [\"50\", ..., \"1000\"]", | ||
"type": "string", | ||
"example": "default, 30, 42, ..." | ||
}, | ||
"rootDiskType": { | ||
"description": "\"\", \"default\", \"TYPE1\", AWS: [\"standard\", \"gp2\", \"gp3\"], Azure: [\"PremiumSSD\", \"StandardSSD\", \"StandardHDD\"], GCP: [\"pd-standard\", \"pd-balanced\", \"pd-ssd\", \"pd-extreme\"], ALIBABA: [\"cloud_efficiency\", \"cloud\", \"cloud_essd\"], TENCENT: [\"CLOUD_PREMIUM\", \"CLOUD_SSD\"]", | ||
"type": "string", | ||
"example": "default, TYPE1, ..." | ||
}, | ||
"subGroupSize": { | ||
"description": "if subGroupSize is (not empty) && (> 0), subGroup will be gernetad. VMs will be created accordingly.", | ||
"type": "string", | ||
"example": "3" | ||
}, | ||
"vmUserPassword": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
"name": "beetle_task_recommend_infra", | ||
"description": "Do infra recommendation with beetle.", | ||
"api_connection_id": "beetle_api", | ||
"swagger_yaml_endpoint": "/beetle/api/doc.yaml", | ||
"endpoint": "/migration/ns/{nsId}/mci" | ||
} |
Oops, something went wrong.