From 9cfbbea0d06566a294363a6a38cfe46bb8fb0dd4 Mon Sep 17 00:00:00 2001 From: BlitzQuiche Date: Thu, 30 May 2024 18:12:40 +0100 Subject: [PATCH 1/2] Fix SelectRandomAgent --- controller/internal/controller/synthetictest_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/internal/controller/synthetictest_controller.go b/controller/internal/controller/synthetictest_controller.go index 792bc64..e276416 100644 --- a/controller/internal/controller/synthetictest_controller.go +++ b/controller/internal/controller/synthetictest_controller.go @@ -287,6 +287,7 @@ func SelectRandomAgent(validAgents map[string]bool) (string, error) { if i == index { return a, nil } + i++ } return "", errors.New("error selecting random agent, index out of range") } From 1accc1f0bf4a9092f06d6e5756973c358e4591bf Mon Sep 17 00:00:00 2001 From: BlitzQuiche Date: Fri, 31 May 2024 16:04:21 +0100 Subject: [PATCH 2/2] Remove all buildfiles before building docker-all --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cbc0b5b..a053436 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ docker-controller: cd controller && podman build -f Dockerfile -t synheart-controller:dev-latest .. .PHONY : docker-all -docker-all: docker-agent docker-restapi docker-controller +docker-all: clean docker-agent docker-restapi docker-controller .PHONY : clean clean: