use generic Set in api

Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
bzsuni
2023-09-25 19:04:08 +08:00
parent c6bb90aeea
commit aa9b2b1696
10 changed files with 90 additions and 90 deletions

View File

@@ -149,7 +149,7 @@ func TestSpecificKind(t *testing.T) {
roundtrip.RoundTripSpecificKind(t, internalGVK, legacyscheme.Scheme, legacyscheme.Codecs, fuzzer, nil)
}
var nonRoundTrippableTypes = sets.NewString(
var nonRoundTrippableTypes = sets.New[string](
"ExportOptions",
"GetOptions",
// WatchEvent does not include kind and version and can only be deserialized