更新 eci.go
Some checks failed
Virtual Kubelet Docker Build and Deploy / build-and-deploy (push) Failing after 3m56s

This commit is contained in:
2025-07-01 05:41:29 +00:00
parent a01503f2aa
commit df7b5af263

2
eci.go
View File

@@ -188,7 +188,7 @@ func (p *ECIProvider) CreatePod(ctx context.Context, pod *v1.Pod) error {
// 添加抢占式实例策略配置
request.SpotStrategy = "SpotAsPriceGo" // 设置抢占式实例策略为按价格竞价
request.SpotDuration = 0 // 设置抢占式实例持续时间为0非定时抢占
// get containers
containers, err := p.getContainers(pod, false)
initContainers, err := p.getContainers(pod, true)