refactor(workload): centralize workload listing with registry-based listers and add Argo Rollouts support

This commit is contained in:
TheiLLeniumStudios
2025-12-28 08:47:56 +01:00
parent c19058a66e
commit 3cf0119748
10 changed files with 808 additions and 123 deletions
-26
View File
@@ -201,29 +201,3 @@ func TestConfig_IsNamespaceIgnored(t *testing.T) {
}
}
func TestEqualFold(t *testing.T) {
tests := []struct {
s, t string
want bool
}{
{"abc", "abc", true},
{"ABC", "abc", true},
{"abc", "ABC", true},
{"aBc", "AbC", true},
{"abc", "abcd", false},
{"", "", true},
{"a", "", false},
{"", "a", false},
}
for _, tt := range tests {
t.Run(
tt.s+"_"+tt.t, func(t *testing.T) {
got := equalFold(tt.s, tt.t)
if got != tt.want {
t.Errorf("equalFold(%q, %q) = %v, want %v", tt.s, tt.t, got, tt.want)
}
},
)
}
}