comment out
Some checks failed
Build images / Run e2e tests (push) Failing after 40s
E2E Tests / Run on Ubuntu (push) Failing after 49s
Build images / Run lint test (push) Failing after 6m4s
Lint / Run on Ubuntu (push) Failing after 6m47s
Build images / Run unit test (push) Failing after 8m42s
Build images / Build docker image (push) Has been skipped
Tests / Run on Ubuntu (push) Failing after 7m45s

This commit is contained in:
Chris Richardson
2025-07-02 13:11:48 -04:00
parent 4d9663fe60
commit 9aecad4697
2 changed files with 15 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
package controller
/*
import (
"context"
v1 "k8s.io/api/core/v1"
@@ -229,3 +230,6 @@ func (r *LocustClusterReconciler) BuildLeaderJob(log logr.Logger, locustCluster
Status: batch.JobStatus{},
}, nil
}
*/

View File

@@ -55,7 +55,7 @@ func (r *LocustClusterReconciler) Reconcile(ctx context.Context, req ctrl.Reques
// "Namespace", req.Namespace)
// locustCluster, err := GetLocustCluster(r.Client, ctx, req.Namespace, req.Name)
locustCluster, err := GetLocustCluster(r.Client, ctx, req.Namespace, req.Name)
_, err := GetLocustCluster(r.Client, ctx, req.Namespace, req.Name)
if err != nil {
if apierrors.IsNotFound(err) {
log.Info("LocustCluster not found")
@@ -68,16 +68,17 @@ func (r *LocustClusterReconciler) Reconcile(ctx context.Context, req ctrl.Reques
// "Namespace", req.Namespace)
return ctrl.Result{Requeue: true}, err
}
/*
podList, err := r.IsLeaderUp(log, locustCluster, ctx)
if err != nil {
return ctrl.Result{Requeue: true}, err
}
podList, err := r.IsLeaderUp(log, locustCluster, ctx)
if err != nil {
return ctrl.Result{Requeue: true}, err
}
err = r.CreateUpdateLeader(log, locustCluster, ctx, podList)
if err != nil {
return ctrl.Result{Requeue: true}, err
}
err = r.CreateUpdateLeader(log, locustCluster, ctx, podList)
if err != nil {
return ctrl.Result{Requeue: true}, err
}
*/
return ctrl.Result{}, nil
}