File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ API版本:2.6.1
44
55| 发布时间 | 版本号 | 更新 | 说明 |
66| ------------| -------| ------| -------------------------|
7+ | 2025-02-24 | 2.7.0 | 新增接口 | * 新增Pod状态查询接口 |
78| 2024-3-12 | 2.6.1 | 新增接口 | * 新增接口:更新Pod模板 |
89| 2023-11-29 | 2.6.0 | 新增接口 | * 新增接口:支持Pod模板 |
910| 2023-09-07 | 2.5.1 | 文档更新 | * 文档更新 |
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func NewPodClient(credential *core.Credential) *PodClient {
4040 Credential : * credential ,
4141 Config : * config ,
4242 ServiceName : "pod" ,
43- Revision : "2.6.1 " ,
43+ Revision : "2.7.0 " ,
4444 Logger : core .NewDefaultLogger (core .LogInfo ),
4545 }}
4646}
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ type Container struct {
2222 /* 容器名称 (Optional) */
2323 Name string `json:"name"`
2424
25+ /* 容器类型,如果是init则为initContainer (Optional) */
26+ Type string `json:"type"`
27+
2528 /* 容器执行的命令。 (Optional) */
2629 Command []string `json:"command"`
2730
Original file line number Diff line number Diff line change @@ -64,4 +64,7 @@ type ContainerSpec struct {
6464
6565 /* 云盘挂载信息 (Optional) */
6666 VolumeMounts []VolumeMountSpec `json:"volumeMounts"`
67+
68+ /* 容器类型,取值 init 表示 InitContainer (Optional) */
69+ Type * string `json:"type"`
6770}
Original file line number Diff line number Diff line change 1+ // Copyright 2018 JDCLOUD.COM
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+ //
15+ // NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+ package models
18+
19+
20+ type EmptyDirVolumeSource struct {
21+
22+ /* 卷大小,单位MB (Optional) */
23+ SizeMB int `json:"sizeMB"`
24+ }
Original file line number Diff line number Diff line change 1+ // Copyright 2018 JDCLOUD.COM
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+ //
15+ // NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+ package models
18+
19+
20+ type EmptyDirVolumeSourceSpec struct {
21+
22+ /* EmptyDir的大小,单位为MB,范围:[10-1024] (Optional) */
23+ SizeMB * int `json:"sizeMB"`
24+ }
Original file line number Diff line number Diff line change @@ -30,4 +30,7 @@ type Volume struct {
3030
3131 /* 提供给Pod的ConfigFile. (Optional) */
3232 ConfigFile ConfigFileVolumeSource `json:"configFile"`
33+
34+ /* EmptyDir卷源 (Optional) */
35+ EmptyDir EmptyDirVolumeSource `json:"emptyDir"`
3336}
Original file line number Diff line number Diff line change @@ -30,4 +30,7 @@ type VolumeSpec struct {
3030
3131 /* 提供给Pod的ConfigFile. (Optional) */
3232 ConfigFile * ConfigFileVolumeSourceSpec `json:"configFile"`
33+
34+ /* 提供给Pod的EmptyDir. (Optional) */
35+ EmptyDir * EmptyDirVolumeSourceSpec `json:"emptyDir"`
3336}
You can’t perform that action at this time.
0 commit comments