🐛 fix(eci): 修正自动创建EIP参数类型
All checks were successful
Virtual Kubelet Docker Build and Deploy / build-and-deploy (push) Successful in 4m13s
All checks were successful
Virtual Kubelet Docker Build and Deploy / build-and-deploy (push) Successful in 4m13s
- 将AutoCreateEip参数从布尔值改为使用requests.Boolean类型 - 保持原有功能不变但符合API参数要求
This commit is contained in:
2
eci.go
2
eci.go
@@ -188,7 +188,7 @@ func (p *ECIProvider) CreatePod(ctx context.Context, pod *v1.Pod) error {
|
||||
// 添加抢占式实例策略配置
|
||||
request.SpotStrategy = "SpotAsPriceGo" // 设置抢占式实例策略为按价格竞价
|
||||
//request.SpotDuration = 0 // 设置抢占式实例持续时间为0(非定时抢占)
|
||||
request.AutoCreateEip = true //
|
||||
request.AutoCreateEip = requests.Boolean(strconv.FormatBool(true)) //
|
||||
|
||||
// get containers
|
||||
containers, err := p.getContainers(pod, false)
|
||||
|
||||
Reference in New Issue
Block a user