Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 182 for netutils (0.24 sec)

  1. pkg/kubelet/certificate/kubelet.go

    			continue
    		}
    
    		switch address.Type {
    		case v1.NodeHostName:
    			if ip := netutils.ParseIPSloppy(address.Address); ip != nil {
    				seenIPs[address.Address] = true
    			} else {
    				seenDNSNames[address.Address] = true
    			}
    		case v1.NodeExternalIP, v1.NodeInternalIP:
    			if ip := netutils.ParseIPSloppy(address.Address); ip != nil {
    				seenIPs[address.Address] = true
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:16 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top