Skip to content

Commit

Permalink
Merge pull request #3304 from Monokaix/scheduler-fix
Browse files Browse the repository at this point in the history
Fix ineffective volcano scheduler deployment string filter
  • Loading branch information
volcano-sh-bot authored Jan 18, 2024
2 parents 59fef63 + 50e5333 commit b77067e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/util/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ func (c *ConfigMapCase) ChangeBy(fn func(data map[string]string) (changed bool,
schedulerPods, err := KubeClient.CoreV1().Pods("volcano-system").List(context.TODO(), metav1.ListOptions{LabelSelector: "app=volcano-scheduler"})
gomega.Expect(err).NotTo(gomega.HaveOccurred())
for _, scheduler := range schedulerPods.Items {
if !strings.HasPrefix(scheduler.Name, "volcano-scheduler") {
if !strings.Contains(scheduler.Name, "scheduler") {
continue
}
if scheduler.Annotations == nil {
scheduler.Annotations = make(map[string]string)
}
scheduler.Annotations["refreshts"] = time.Now().Format("060102150405.000")
_, err = KubeClient.CoreV1().Pods("volcano-system").Update(context.TODO(), &scheduler, metav1.UpdateOptions{})
gomega.Expect(err).NotTo(gomega.HaveOccurred())
Expand Down

0 comments on commit b77067e

Please # to comment.