Improve performance of controllers

This commit is contained in:
Nikola Jokic
2026-07-07 19:18:15 +02:00
parent 7086893498
commit 191fac9eaa
50 changed files with 3358 additions and 1065 deletions
+10
View File
@@ -1,6 +1,8 @@
package actionsgithubcom
import (
"encoding/json"
"k8s.io/apimachinery/pkg/util/rand"
)
@@ -25,3 +27,11 @@ func RandStringRunes(n int) string {
}
return string(b)
}
func mustJSON(v any) string {
val, err := json.Marshal(v)
if err != nil {
panic(err)
}
return string(val)
}