From c0940e4b1d38517279df21ac39f3aa72e0ca9a4e Mon Sep 17 00:00:00 2001 From: Pete Savage Date: Wed, 19 Jan 2022 10:05:50 +0000 Subject: [PATCH] Sorted topics --- controllers/cloud.redhat.com/status.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/cloud.redhat.com/status.go b/controllers/cloud.redhat.com/status.go index 9558e3721..fb0b844ec 100644 --- a/controllers/cloud.redhat.com/status.go +++ b/controllers/cloud.redhat.com/status.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "reflect" + "sort" "strings" "time" @@ -214,6 +215,7 @@ func countKafkaTopics(ctx context.Context, pClient client.Client, o object.Clowd } if len(brokenTopics) > 0 { + sort.Strings(brokenTopics) msg = fmt.Sprintf("broken topics: [%s]", strings.Join(brokenTopics, ", ")) }