From e818b8ffc55c8cec5c4342b90e82d9914b00b795 Mon Sep 17 00:00:00 2001 From: Lars Ekman Date: Thu, 6 Sep 2018 11:00:14 +0200 Subject: [PATCH] Fix issue #68338 The ipset KUBE-LOAD-BALANCER-SOURCE-CIDR is not recogized as a hash set --- pkg/util/ipset/ipset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/ipset/ipset.go b/pkg/util/ipset/ipset.go index 4bc4a739d3..aca7b899b1 100644 --- a/pkg/util/ipset/ipset.go +++ b/pkg/util/ipset/ipset.go @@ -286,7 +286,7 @@ func (runner *runner) CreateSet(set *IPSet, ignoreExistErr bool) error { // otherwise raised when the same set (setname and create parameters are identical) already exists. func (runner *runner) createSet(set *IPSet, ignoreExistErr bool) error { args := []string{"create", set.Name, string(set.SetType)} - if set.SetType == HashIPPortIP || set.SetType == HashIPPort { + if set.SetType == HashIPPortIP || set.SetType == HashIPPort || set.SetType == HashIPPortNet { args = append(args, "family", set.HashFamily, "hashsize", strconv.Itoa(set.HashSize),