Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 92 for netutils (0.4 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/serving.go

    limitations under the License.
    */
    
    package options
    
    import (
    	"context"
    	"fmt"
    	"net"
    	"path"
    	"strconv"
    	"strings"
    	"syscall"
    
    	"github.com/spf13/pflag"
    	"k8s.io/klog/v2"
    	netutils "k8s.io/utils/net"
    
    	utilnet "k8s.io/apimachinery/pkg/util/net"
    	"k8s.io/apiserver/pkg/server"
    	"k8s.io/apiserver/pkg/server/dynamiccertificates"
    	certutil "k8s.io/client-go/util/cert"
    	"k8s.io/client-go/util/keyutil"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 13:08:18 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go

    import (
    	"crypto/tls"
    	"fmt"
    	"io"
    	"net"
    	"net/http"
    	"net/url"
    	"reflect"
    	"strings"
    	"testing"
    
    	"github.com/stretchr/testify/assert"
    	netutils "k8s.io/utils/net"
    )
    
    func TestGetClientIP(t *testing.T) {
    	ipString := "10.0.0.1"
    	ip := netutils.ParseIPSloppy(ipString)
    	invalidIPString := "invalidIPString"
    	testCases := []struct {
    		Request    http.Request
    		ExpectedIP net.IP
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:21:56 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    	"k8s.io/client-go/informers"
    	"k8s.io/client-go/kubernetes/fake"
    	restclient "k8s.io/client-go/rest"
    	"k8s.io/klog/v2/ktesting"
    	kubeopenapi "k8s.io/kube-openapi/pkg/common"
    	"k8s.io/kube-openapi/pkg/validation/spec"
    	netutils "k8s.io/utils/net"
    )
    
    const (
    	extensionsGroupName = "extensions"
    )
    
    var (
    	v1GroupVersion = schema.GroupVersion{Group: "", Version: "v1"}
    
    	scheme         = runtime.NewScheme()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  4. pkg/proxy/nftables/helpers_test.go

    	}
    }
    
    func (tracer *nftablesTracer) addressMatches(ipStr string, wantMatch bool, ruleAddress string) bool {
    	ip := netutils.ParseIPSloppy(ipStr)
    	if ip == nil {
    		tracer.t.Fatalf("Bad IP in test case: %s", ipStr)
    	}
    
    	var match bool
    	if strings.Contains(ruleAddress, "/") {
    		_, cidr, err := netutils.ParseCIDRSloppy(ruleAddress)
    		if err != nil {
    			tracer.t.Errorf("Bad CIDR in kube-proxy output: %v", err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 09:57:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. pkg/kubelet/nodestatus/setters.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/kubelet/cadvisor"
    	"k8s.io/kubernetes/pkg/kubelet/cm"
    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    	"k8s.io/kubernetes/pkg/kubelet/events"
    	netutils "k8s.io/utils/net"
    
    	"k8s.io/klog/v2"
    )
    
    const (
    	// MaxNamesPerImageInNodeStatus is max number of names
    	// per image stored in the node status.
    	MaxNamesPerImageInNodeStatus = 5
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  6. pkg/registry/core/pod/strategy.go

    	api "k8s.io/kubernetes/pkg/apis/core"
    	"k8s.io/kubernetes/pkg/apis/core/helper/qos"
    	corevalidation "k8s.io/kubernetes/pkg/apis/core/validation"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/kubelet/client"
    	netutils "k8s.io/utils/net"
    	"sigs.k8s.io/structured-merge-diff/v4/fieldpath"
    )
    
    // podStrategy implements behavior for Pods
    type podStrategy struct {
    	runtime.ObjectTyper
    	names.NameGenerator
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  7. pkg/kubelet/server/server.go

    	oteltrace "go.opentelemetry.io/otel/trace"
    	"google.golang.org/grpc"
    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/kubelet/metrics/collectors"
    	"k8s.io/utils/clock"
    	netutils "k8s.io/utils/net"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/types"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/AstUtils.java

    import java.util.Collection;
    import java.util.Collections;
    import java.util.List;
    import java.util.ListIterator;
    
    /**
     * Self contained utility functions for dealing with AST.
     */
    public abstract class AstUtils {
    
        private AstUtils() {
        }
    
        public static boolean isMethodOnThis(MethodCallExpression call, String name) {
            boolean hasName = call.getMethod() instanceof ConstantExpression && call.getMethod().getText().equals(name);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/testUtils.kt

    Dmitrii Gridin <******@****.***> 1717506725 +0200
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go

    func (s *SpdyRoundTripper) dialWithSocks5Proxy(req *http.Request, proxyURL *url.URL) (net.Conn, error) {
    	// ensure we use a canonical host with proxyReq
    	targetHost := netutil.CanonicalAddr(req.URL)
    	proxyDialAddr := netutil.CanonicalAddr(proxyURL)
    
    	var auth *proxy.Auth
    	if proxyURL.User != nil {
    		pass, _ := proxyURL.User.Password()
    		auth = &proxy.Auth{
    			User:     proxyURL.User.Username(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top