mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-21 06:36:06 +00:00
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:
@@ -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...),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user