summaryrefslogtreecommitdiff
path: root/vendor/k8s.io/apimachinery/pkg/util/sets/string.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/k8s.io/apimachinery/pkg/util/sets/string.go')
-rw-r--r--vendor/k8s.io/apimachinery/pkg/util/sets/string.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/k8s.io/apimachinery/pkg/util/sets/string.go b/vendor/k8s.io/apimachinery/pkg/util/sets/string.go
index ba00ad7df..e6f37db88 100644
--- a/vendor/k8s.io/apimachinery/pkg/util/sets/string.go
+++ b/vendor/k8s.io/apimachinery/pkg/util/sets/string.go
@@ -46,17 +46,19 @@ func StringKeySet(theMap interface{}) String {
}
// Insert adds items to the set.
-func (s String) Insert(items ...string) {
+func (s String) Insert(items ...string) String {
for _, item := range items {
s[item] = Empty{}
}
+ return s
}
// Delete removes all items from the set.
-func (s String) Delete(items ...string) {
+func (s String) Delete(items ...string) String {
for _, item := range items {
delete(s, item)
}
+ return s
}
// Has returns true if and only if item is contained in the set.