Skip to content

Commit

Permalink
fix: 修复多个容器,配置同时热更新造成的k8s滚动更新风暴
Browse files Browse the repository at this point in the history
  • Loading branch information
Liusiyuan-git committed Feb 7, 2023
1 parent e356708 commit 576aad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kube/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (k *kubeClient) Update(namespace, deploymentName string) error {
c := *containers
for j := range c[i].Env {
if c[i].Env[j].Name == "timestep" {
c[i].Env[j].Value = time.Now().String()
c[i].Env[j].Value = time.Now().Format("2006-01-02 15:04:05")
}
}
}
Expand Down

0 comments on commit 576aad5

Please sign in to comment.