Skip to content

Commit

Permalink
chore: return if no topologies in k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop authored Nov 11, 2024
1 parent 83b04d9 commit cf16098
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/jobs/topology/topology_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ var TopologyCRDReconcile = &job.Job{
if len(k8sIDs) == 0 {
// a misconfiguration or intermittent error could cause unnecessary deletion of all topologies
ctx.Warnf("Skipping topology CRD cleanup due to zero topologies returned")
return nil
}
for _, t := range topologies {
if !slices.Contains(k8sIDs, t.ID.String()) {
Expand Down

0 comments on commit cf16098

Please sign in to comment.