Skip to content

Commit

Permalink
fix(edas): scale will restart pod (#718) (#722)
Browse files Browse the repository at this point in the history
Co-authored-by: erda-bot <81558540+erda-bot@users.noreply.github.com>

Co-authored-by: Muzry <muzrry@gmail.com>
Co-authored-by: 澄潭 <ztywto@qq.com>
Co-authored-by: luobily <lbl167612@alibaba-inc.com>
  • Loading branch information
4 people committed Jun 30, 2021
1 parent ccc4f34 commit d50f7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/scheduler/executor/plugins/edas/edas.go
Expand Up @@ -431,7 +431,7 @@ func (e *EDAS) getK8sDeployList(namespace string, name string, services *[]apist
for _, i := range deployList.Items {
// Get the deployed deployment of the runtime from the deploylist
logrus.Debugf("[EDAS] deploy name: %+v", i.ObjectMeta.Name)
if strings.Contains(i.ObjectMeta.Name, group) {
if strings.Contains(i.ObjectMeta.Name, group) && *i.Spec.Replicas != 0 {
var iService apistructs.Service
for _, j := range i.Spec.Template.Spec.Containers[0].Env {
if j.Name == diceServiceName {
Expand Down

0 comments on commit d50f7bc

Please sign in to comment.