- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsAllowAll (0.35 sec)
-
pkg/api/v1/service/util_test.go
if err != nil { t.Errorf("Unexpected error parsing cidrs: %v", cidrs) } if allowAll != IsAllowAll(ipnets) { t.Errorf("IsAllowAll did not return expected value for %v", cidrs) } } checkAllowAll(false, "10.0.0.1/32") checkAllowAll(false, "10.0.0.1/32", "10.0.0.2/32") checkAllowAll(false, "10.0.0.1/32", "10.0.0.1/32") checkAllowAll(true, "0.0.0.0/0")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 01 15:18:45 UTC 2023 - 8.8K bytes - Viewed (0) -
pkg/api/service/util_test.go
if err != nil { t.Errorf("Unexpected error parsing cidrs: %v", cidrs) } if allowAll != IsAllowAll(ipnets) { t.Errorf("IsAllowAll did not return expected value for %v", cidrs) } } checkAllowAll(false, "10.0.0.1/32") checkAllowAll(false, "10.0.0.1/32", "10.0.0.2/32") checkAllowAll(false, "10.0.0.1/32", "10.0.0.1/32") checkAllowAll(true, "0.0.0.0/0")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 01 15:18:45 UTC 2023 - 7.6K bytes - Viewed (0) -
pkg/api/v1/service/util.go
import ( "fmt" "strings" v1 "k8s.io/api/core/v1" utilnet "k8s.io/utils/net" ) const ( defaultLoadBalancerSourceRanges = "0.0.0.0/0" ) // IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0 func IsAllowAll(ipnets utilnet.IPNetSet) bool { for _, s := range ipnets.StringSlice() { if s == "0.0.0.0/0" { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 30 15:56:47 UTC 2023 - 3.3K bytes - Viewed (0) -
pkg/api/service/util.go
import ( "fmt" "strings" api "k8s.io/kubernetes/pkg/apis/core" utilnet "k8s.io/utils/net" ) const ( defaultLoadBalancerSourceRanges = "0.0.0.0/0" ) // IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0 func IsAllowAll(ipnets utilnet.IPNetSet) bool { for _, s := range ipnets.StringSlice() { if s == "0.0.0.0/0" { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 30 15:56:47 UTC 2023 - 3.2K bytes - Viewed (0)