Bump up the versions of severel Kubernetes-related libs

Bump up the versions of severel Kubernetes-related libs

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
Wenkai Yin(尹文开)
2024-03-05 13:09:38 +08:00
parent e727d29bcd
commit 8752c3a820
70 changed files with 335 additions and 403 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ import (
)
type featureFlagSet struct {
set sets.String
set sets.Set[string]
}
// featureFlags will store all the flags for this process until NewFeatureFlagSet is called.
@@ -51,7 +51,7 @@ func Disable(names ...string) {
// All returns enabled features as a slice of strings.
func All() []string {
return featureFlags.set.List()
return sets.List[string](featureFlags.set)
}
// Serialize returns all features as a comma-separated string.
@@ -64,6 +64,6 @@ func Serialize() string {
// It is also useful for selectively controlling flags during tests.
func NewFeatureFlagSet(flags ...string) {
featureFlags = featureFlagSet{
set: sets.NewString(flags...),
set: sets.New[string](flags...),
}
}