- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 170 for netutils (0.14 sec)
-
pkg/proxy/iptables/number_generated_rules_test.go
endpointSlices := make([]*discovery.EndpointSlice, nServices) // base parameters basePort := 80 base := netutils.BigForIP(netutils.ParseIPSloppy("10.0.0.1")) // generate a base endpoint slice object baseEp := netutils.BigForIP(netutils.ParseIPSloppy("172.16.0.1")) epPort := 8080 eps := &discovery.EndpointSlice{ ObjectMeta: metav1.ObjectMeta{ Name: "ep",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 13.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/named_certificates.go
*/ package dynamiccertificates import ( "crypto/tls" "crypto/x509" "fmt" "strings" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/util/validation" "k8s.io/klog/v2" netutils "k8s.io/utils/net" ) // BuildNamedCertificates returns a map of *tls.Certificate by name. It's // suitable for use in tls.Config#NamedCertificates. Returns an error if any of the certs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 21 07:29:30 UTC 2022 - 3.2K bytes - Viewed (0) -
cmd/kube-apiserver/app/options/completion.go
limitations under the License. */ package options import ( "fmt" "net" "strings" apiserveroptions "k8s.io/apiserver/pkg/server/options" _ "k8s.io/component-base/metrics/prometheus/workqueue" netutils "k8s.io/utils/net" controlplane "k8s.io/kubernetes/pkg/controlplane/apiserver/options" "k8s.io/kubernetes/pkg/kubeapiserver" kubeoptions "k8s.io/kubernetes/pkg/kubeapiserver/options" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 26 19:50:38 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/proxy/apis/config/validation/validation.go
case len(cidrs) == 2: isDual, err := netutils.IsDualStackCIDRStrings(cidrs) if err != nil || !isDual { allErrs = append(allErrs, field.Invalid(newPath.Child("ClusterCIDR"), config.ClusterCIDR, "must be a valid DualStack CIDR (e.g. 10.100.0.0/16,fde4:8dba:82e1::/48)")) } // if we are here means that len(cidrs) == 1, we need to validate it default: if _, _, err := netutils.ParseCIDRSloppy(config.ClusterCIDR); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 13:25:06 UTC 2024 - 14.6K bytes - Viewed (0) -
pkg/proxy/ipvs/netlink_linux.go
limitations under the License. */ package ipvs import ( "fmt" "net" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/klog/v2" proxyutil "k8s.io/kubernetes/pkg/proxy/util" netutils "k8s.io/utils/net" "github.com/vishvananda/netlink" "golang.org/x/sys/unix" ) type netlinkHandle struct { netlink.Handle isIPv6 bool } // NewNetLinkHandle will create a new NetLinkHandle
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 30 16:18:49 UTC 2023 - 5.8K bytes - Viewed (0) -
pkg/controlplane/reconcilers/lease_test.go
// shutdown apiserver first r.StopReconciling() err = r.RemoveEndpoints(test.serviceName, netutils.ParseIPSloppy(test.ip), test.endpointPorts) if err != nil { t.Errorf("unexpected error remove endpoints: %v", err) } // reconcile endpoints in another goroutine err = r.ReconcileEndpoints(test.serviceName, netutils.ParseIPSloppy(test.ip), test.endpointPorts, false) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 28.7K bytes - Viewed (0) -
pkg/controlplane/reconcilers/instancecount_test.go
limitations under the License. */ package reconcilers import ( "testing" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/kubernetes/fake" netutils "k8s.io/utils/net" ) func TestMasterCountEndpointReconciler(t *testing.T) { reconcileTests := []struct { testName string serviceName string ip string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 27 12:46:24 UTC 2022 - 14K bytes - Viewed (0) -
pkg/proxy/util/localdetector.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package util import ( netutils "k8s.io/utils/net" ) // LocalTrafficDetector generates iptables or nftables rules to detect traffic from local pods. type LocalTrafficDetector interface {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 15:34:37 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/kubeadm/app/componentconfigs/kubeproxy.go
limitations under the License. */ package componentconfigs import ( "github.com/pkg/errors" clientset "k8s.io/client-go/kubernetes" "k8s.io/klog/v2" kubeproxyconfig "k8s.io/kube-proxy/config/v1alpha1" netutils "k8s.io/utils/net" kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" kubeadmapiv1 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3" kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 03:01:30 UTC 2023 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/named_certificates_test.go
import ( "bytes" "crypto/rand" "crypto/rsa" "crypto/tls" "crypto/x509" "crypto/x509/pkix" "encoding/base64" "encoding/pem" "fmt" "math/big" "net" "testing" "time" netutils "k8s.io/utils/net" "github.com/stretchr/testify/assert" ) type testCertSpec struct { host string names, ips []string // in certificate } type namedtestCertSpec struct { testCertSpec
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 20 08:42:09 UTC 2021 - 8K bytes - Viewed (0)