Skip to content

Commit f34769d

Browse files
authored
sdk: rolling update for 0.22.34 (#439)
1 parent 881629a commit f34769d

File tree

4 files changed

+104
-45
lines changed

4 files changed

+104
-45
lines changed

services/uk8s/apis.go

Lines changed: 67 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,12 @@ func (c *UK8SClient) AddUK8SUHostNode(req *AddUK8SUHostNodeRequest) (*AddUK8SUHo
429429
}
430430

431431
/*
432-
CreateUK8SClusterV2ParamKubeProxy is request schema for complex param
432+
CreateUK8SClusterV2ParamMaster is request schema for complex param
433433
*/
434-
type CreateUK8SClusterV2ParamKubeProxy struct {
434+
type CreateUK8SClusterV2ParamMaster struct {
435435

436-
// 集群kube-proxy模式。支持iptables和ipvs,默认为iptables。
437-
Mode *string `required:"false"`
436+
// Master节点所属可用区,需要设置 Master.0.Zone、 Master.1.Zone、Master.2.Zone 三个 Master 节点的可用区。 三个节点可部署在不同可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
437+
Zone *string `required:"true"`
438438
}
439439

440440
/*
@@ -495,12 +495,12 @@ type CreateUK8SClusterV2ParamNodes struct {
495495
}
496496

497497
/*
498-
CreateUK8SClusterV2ParamMaster is request schema for complex param
498+
CreateUK8SClusterV2ParamKubeProxy is request schema for complex param
499499
*/
500-
type CreateUK8SClusterV2ParamMaster struct {
500+
type CreateUK8SClusterV2ParamKubeProxy struct {
501501

502-
// Master节点所属可用区,需要设置 Master.0.Zone、 Master.1.Zone、Master.2.Zone 三个 Master 节点的可用区。 三个节点可部署在不同可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
503-
Zone *string `required:"true"`
502+
// 集群kube-proxy模式。支持iptables和ipvs,默认为iptables。
503+
Mode *string `required:"false"`
504504
}
505505

506506
// CreateUK8SClusterV2Request is request schema for CreateUK8SClusterV2 action
@@ -1065,6 +1065,65 @@ func (c *UK8SClient) DescribeUK8SNode(req *DescribeUK8SNodeRequest) (*DescribeUK
10651065
return &res, nil
10661066
}
10671067

1068+
// GetClusterConfigRequest is request schema for GetClusterConfig action
1069+
type GetClusterConfigRequest struct {
1070+
request.CommonBase
1071+
1072+
// [公共参数] 所在项目
1073+
// ProjectId *string `required:"false"`
1074+
1075+
// [公共参数] 所在区域
1076+
// Region *string `required:"true"`
1077+
1078+
// 集群ID
1079+
ClusterId *string `required:"true"`
1080+
}
1081+
1082+
// GetClusterConfigResponse is response schema for GetClusterConfig action
1083+
type GetClusterConfigResponse struct {
1084+
response.CommonBase
1085+
1086+
// 开启公网apiserver的情况下,有数据返回。
1087+
ExternalKubeConfig string
1088+
1089+
// 配置信息
1090+
KubeConfig string
1091+
1092+
// 用于标示 kubeconfig 是否可以进行替换更新
1093+
Updatable bool
1094+
}
1095+
1096+
// NewGetClusterConfigRequest will create request of GetClusterConfig action.
1097+
func (c *UK8SClient) NewGetClusterConfigRequest() *GetClusterConfigRequest {
1098+
req := &GetClusterConfigRequest{}
1099+
1100+
// setup request with client config
1101+
c.Client.SetupRequest(req)
1102+
1103+
// setup retryable with default retry policy (retry for non-create action and common error)
1104+
req.SetRetryable(true)
1105+
return req
1106+
}
1107+
1108+
/*
1109+
API: GetClusterConfig
1110+
1111+
获取集群配置文件,管理集群的凭证
1112+
*/
1113+
func (c *UK8SClient) GetClusterConfig(req *GetClusterConfigRequest) (*GetClusterConfigResponse, error) {
1114+
var err error
1115+
var res GetClusterConfigResponse
1116+
1117+
reqCopier := *req
1118+
1119+
err = c.Client.InvokeAction("GetClusterConfig", &reqCopier, &res)
1120+
if err != nil {
1121+
return &res, err
1122+
}
1123+
1124+
return &res, nil
1125+
}
1126+
10681127
// ListUK8SClusterNodeV2Request is request schema for ListUK8SClusterNodeV2 action
10691128
type ListUK8SClusterNodeV2Request struct {
10701129
request.CommonBase

services/uk8s/models.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ type IPSet struct {
5959
Type string
6060
}
6161

62+
/*
63+
KubeProxy - KubeProxy信息
64+
*/
65+
type KubeProxy struct {
66+
67+
// KubeProxy模式,枚举值为[ipvs,iptables]
68+
Mode string
69+
}
70+
6271
/*
6372
UhostInfo - 机器信息
6473
*/
@@ -101,15 +110,6 @@ type UhostInfo struct {
101110
Zone string
102111
}
103112

104-
/*
105-
KubeProxy - KubeProxy信息
106-
*/
107-
type KubeProxy struct {
108-
109-
// KubeProxy模式,枚举值为[ipvs,iptables]
110-
Mode string
111-
}
112-
113113
/*
114114
ImageInfo - UK8S 可用镜像信息
115115
*/

services/vpc/models.go

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,21 @@ type NatGWIPResInfo struct {
215215
OperatorName string
216216
}
217217

218+
/*
219+
NatGatewaySubnetSet - natgw里面的子网信息
220+
*/
221+
type NatGatewaySubnetSet struct {
222+
223+
// 子网网段
224+
Subnet string
225+
226+
// 子网名字
227+
SubnetName string
228+
229+
// 子网id
230+
SubnetworkId string
231+
}
232+
218233
/*
219234
NatGatewayIPSet - IPSet信息
220235
*/
@@ -236,21 +251,6 @@ type NatGatewayIPSet struct {
236251
Weight int
237252
}
238253

239-
/*
240-
NatGatewaySubnetSet - natgw里面的子网信息
241-
*/
242-
type NatGatewaySubnetSet struct {
243-
244-
// 子网网段
245-
Subnet string
246-
247-
// 子网名字
248-
SubnetName string
249-
250-
// 子网id
251-
SubnetworkId string
252-
}
253-
254254
/*
255255
NatGatewayDataSet - natgw的信息
256256
*/
@@ -434,18 +434,6 @@ type AclInfo struct {
434434
VpcId string
435435
}
436436

437-
/*
438-
UNIIpInfo - 虚拟网卡内网IP信息
439-
*/
440-
type UNIIpInfo struct {
441-
442-
// ip 地址
443-
IpAddr []string
444-
445-
// ip类型 SecondaryIp/PrimaryIp
446-
IpType string
447-
}
448-
449437
/*
450438
UNIQuotaInfo - 虚拟网卡内网IP配额使用情况
451439
*/
@@ -458,6 +446,18 @@ type UNIQuotaInfo struct {
458446
PrivateIpQuota int
459447
}
460448

449+
/*
450+
UNIIpInfo - 虚拟网卡内网IP信息
451+
*/
452+
type UNIIpInfo struct {
453+
454+
// ip 地址
455+
IpAddr []string
456+
457+
// ip类型 SecondaryIp/PrimaryIp
458+
IpType string
459+
}
460+
461461
/*
462462
NetworkInterface - 虚拟网卡信息
463463
*/

ucloud/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package version
22

3-
const Version = "0.22.33"
3+
const Version = "0.22.34"

0 commit comments

Comments
 (0)