Skip to content

Commit

Permalink
modify deployment name find methods (#2980) (#2984)
Browse files Browse the repository at this point in the history
Co-authored-by: Muzry <muzrry@gmail.com>
  • Loading branch information
erda-bot and Muzry authored Nov 10, 2021
1 parent 63f0634 commit d2121ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/scheduler/executor/plugins/edas/edas.go
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ func (e *EDAS) getDeploymentInfo(group string, srv *apistructs.Service) (*k8sapi

for _, dep := range deps.Items {
i := dep
if strings.HasPrefix(dep.Metadata.Name, prefix) &&
if strings.Contains(dep.Metadata.Name, prefix) &&
strings.Compare(dep.Metadata.Labels["edas-domain"], "edas-admin") == 0 {
iDep = &i
// return &dep, nil
Expand Down

0 comments on commit d2121ba

Please sign in to comment.