Skip to content

Commit

Permalink
fix(region): remove dstack (#21599)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioito authored Nov 14, 2024
1 parent 13b2662 commit 7b6bdcb
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cmd/climc/shell/compute/usages.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
type GeneralUsageOptions struct {
HostType []string `help:"Host types" choices:"hypervisor|baremetal|esxi|xen|kubelet|hyperv|aliyun|azure|aws|huawei|qcloud|openstack|ucloud|zstack|google|ctyun"`
Provider []string `help:"Provider" choices:"OneCloud|VMware|Aliyun|Azure|Aws|Qcloud|Huawei|OpenStack|Ucloud|VolcEngine|ZStack|Google|Ctyun"`
Brand []string `help:"Brands" choices:"OneCloud|VMware|Aliyun|Azure|Aws|Qcloud|Huawei|OpenStack|Ucloud|VolcEngine|ZStack|DStack|Google|Ctyun"`
Brand []string `help:"Brands" choices:"OneCloud|VMware|Aliyun|Azure|Aws|Qcloud|Huawei|OpenStack|Ucloud|VolcEngine|ZStack|Google|Ctyun"`
Project string `help:"show usage of specified project"`

ProjectDomain string `help:"show usage of specified domain"`
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ require (
k8s.io/cri-api v0.22.17
k8s.io/klog/v2 v2.20.0
moul.io/http2curl/v2 v2.3.0
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20241107063318-cdd0d15e9be2
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20241114121056-3a90b6aa39ec
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32
yunion.io/x/jsonutils v1.0.1-0.20240930100528-1671a2d0d22f
yunion.io/x/log v1.0.1-0.20240305175729-7cf2d6cd5a91
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1376,8 +1376,8 @@ sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20241107063318-cdd0d15e9be2 h1:ZCv9Y1Np5HjdWD6DOnrwXn0XeduQil0aaKNJI1UxWmE=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20241107063318-cdd0d15e9be2/go.mod h1:rj/pb3DitJlQaQD8UW1oxx/KD+PzDZqoywzqRJaFE9A=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20241114121056-3a90b6aa39ec h1:IhvZaxLcEoXthg9l6hrzMTwo2/1ajH8zhXzgb+um9k0=
yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20241114121056-3a90b6aa39ec/go.mod h1:rj/pb3DitJlQaQD8UW1oxx/KD+PzDZqoywzqRJaFE9A=
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32 h1:v7POYkQwo1XzOxBoIoRVr/k0V9Y5JyjpshlIFa9raug=
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32/go.mod h1:Uxuou9WQIeJXNpy7t2fPLL0BYLvLiMvGQwY7Qc6aSws=
yunion.io/x/jsonutils v0.0.0-20190625054549-a964e1e8a051/go.mod h1:4N0/RVzsYL3kH3WE/H1BjUQdFiWu50JGCFQuuy+Z634=
Expand Down
8 changes: 1 addition & 7 deletions pkg/apis/compute/cloudaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ type CloudenvResourceListInput struct {
// Deprecated
Provider []string `json:"provider" yunion-deprecated-by:"providers"`

// 列出指定云平台品牌的资源,一般来说brand和provider相同,除了以上支持的provider之外,还支持以下band
//
// | Brand | Provider | 说明 |
// |----------|----------|------------|
// | DStack | ZStack | 滴滴云私有云 |
//
Brands []string `json:"brands"`
// swagger:ignore
// Deprecated
Expand Down Expand Up @@ -169,7 +163,7 @@ type CloudaccountCreateInput struct {
// | Huawei | Huawei |
// | OpenStack | OpenStack |
// | Ucloud | Ucloud |
// | ZStack | ZStack, DStack |
// | ZStack | ZStack |
// | Google | Google |
// | Ctyun | Ctyun |
Brand string `json:"brand"`
Expand Down
1 change: 0 additions & 1 deletion pkg/apis/compute/cloudaccount_const.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const (
CLOUD_PROVIDER_HEALTH_UNKNOWN = compute.CLOUD_PROVIDER_HEALTH_UNKNOWN // 未知状态,查询失败
CLOUD_PROVIDER_HEALTH_NO_PERMISSION = compute.CLOUD_PROVIDER_HEALTH_NO_PERMISSION // 没有权限获取账单信息

ZSTACK_BRAND_DSTACK = compute.ZSTACK_BRAND_DSTACK
ONECLOUD_BRAND_ONECLOUD = "OneCloud"

CLOUD_ACCOUNT_WIRE_LEVEL_VCENTER = "vcenter"
Expand Down
1 change: 0 additions & 1 deletion pkg/compute/models/cloudaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ type SCloudaccount struct {
Sysinfo jsonutils.JSONObject `get:"domain"`

// 品牌信息, 一般和provider相同
// example: DStack
Brand string `width:"64" charset:"utf8" nullable:"true" list:"domain" create:"optional"`

// 额外信息
Expand Down
2 changes: 1 addition & 1 deletion pkg/mcclient/options/compute/cloudaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ type SCloudAccountCreateBaseOptions struct {
Name string `help:"Name of cloud account" positional:"true"`
// PROVIDER string `help:"Driver for cloud account" choices:"VMware|Aliyun|Azure|Qcloud|OpenStack|Huawei|Aws"`
Desc string `help:"Description" token:"desc" json:"description"`
Brand string `help:"Brand of cloud account" choices:"DStack"`
Brand string `help:"Brand of cloud account"`

AutoCreateProject bool `help:"Enable the account with same name project"`
AutoCreateProjectForProvider bool `help:"Is Auto Create Project For Provider"`
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ sigs.k8s.io/structured-merge-diff/v4/value
# sigs.k8s.io/yaml v1.2.0
## explicit; go 1.12
sigs.k8s.io/yaml
# yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20241107063318-cdd0d15e9be2
# yunion.io/x/cloudmux v0.3.10-0-alpha.1.0.20241114121056-3a90b6aa39ec
## explicit; go 1.21
yunion.io/x/cloudmux/pkg/apis
yunion.io/x/cloudmux/pkg/apis/billing
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7b6bdcb

Please sign in to comment.