Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for newString (0.2 sec)

  1. pkg/proxy/ipvs/ipset/testing/fake_test.go

    	if err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    	if len(entries) != 2 {
    		t.Errorf("Expected 2 entries, got %d", len(entries))
    	}
    	expectedEntries := sets.NewString("192.168.1.1,tcp:8080", "192.168.1.2,tcp:8081")
    	if !expectedEntries.Equal(sets.NewString(entries...)) {
    		t.Errorf("Unexpected entries mismatch, expected: %v, got: %v", expectedEntries, entries)
    	}
    
    	// test entries
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/admission.go

    		if !registeredPlugins.Has(name) {
    			errs = append(errs, fmt.Errorf("disable-admission-plugins plugin %q is unknown", name))
    		}
    	}
    
    	enablePlugins := sets.NewString(a.EnablePlugins...)
    	disablePlugins := sets.NewString(a.DisablePlugins...)
    	if len(enablePlugins.Intersection(disablePlugins).List()) > 0 {
    		errs = append(errs, fmt.Errorf("%v in enable-admission-plugins and disable-admission-plugins "+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 12 08:49:42 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. pkg/kubeapiserver/options/admission.go

    }
    
    // explicitly disable all plugins that are not in the enabled list
    func computePluginNames(explicitlyEnabled []string, all []string) (enabled []string, disabled []string) {
    	return explicitlyEnabled, sets.NewString(all...).Difference(sets.NewString(explicitlyEnabled...)).List()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 09:22:37 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/filters/routine_test.go

    	handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		panic(panicMsg)
    	})
    	resolver := &request.RequestInfoFactory{
    		APIPrefixes:          sets.NewString("api", "apis"),
    		GrouplessAPIPrefixes: sets.NewString("api"),
    	}
    	ts := httptest.NewServer(WithRoutine(WithPanicRecovery(handler, resolver), func(_ *http.Request, _ *request.RequestInfo) bool { return true }))
    	defer ts.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ir/const.go

    // NewInt returns an OLITERAL representing v as an untyped integer.
    func NewInt(pos src.XPos, v int64) Node {
    	return NewBasicLit(pos, types.UntypedInt, constant.MakeInt64(v))
    }
    
    // NewString returns an OLITERAL representing s as an untyped string.
    func NewString(pos src.XPos, s string) Node {
    	return NewBasicLit(pos, types.UntypedString, constant.MakeString(s))
    }
    
    // NewUintptr returns an OLITERAL representing v as a uintptr.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		// asanName = symbol's linkname + "\000"
    		// globals[i].name = (*defString)(unsafe.Pointer(&asanName)).data
    		name := g.Linksym().Name
    		init.Append(typecheck.Stmt(ir.NewAssignStmt(base.Pos, asanName, ir.NewString(base.Pos, name+"\000"))))
    		c = tconv(typecheck.NodAddr(asanName), types.Types[types.TUNSAFEPTR])
    		c = tconv(c, types.NewPtr(defStringstruct))
    		c = ir.NewSelectorExpr(base.Pos, ir.ODOT, c, lname("data"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  7. cmd/kube-controller-manager/app/controllermanager_test.go

    			t.Errorf("name consistency check failed: controller %q must have \"-controller\" suffix", name)
    		}
    	}
    }
    
    func TestControllerNamesDeclaration(t *testing.T) {
    	declaredControllers := sets.NewString(
    		names.ServiceAccountTokenController,
    		names.EndpointsController,
    		names.EndpointSliceController,
    		names.EndpointSliceMirroringController,
    		names.ReplicationControllerController,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/filters/webhook_duration.go

    import (
    	"context"
    	"net/http"
    	"time"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apiserver/pkg/endpoints/request"
    	"k8s.io/apiserver/pkg/endpoints/responsewriter"
    )
    
    var (
    	watchVerbs = sets.NewString("watch")
    )
    
    // WithLatencyTrackers adds a LatencyTrackers instance to the
    // context associated with a request so that we can measure latency
    // incurred in various components within the apiserver.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 21:12:12 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. pkg/registry/core/serviceaccount/storage/storage.go

    			pods:                 podStorage,
    			secrets:              secretStorage,
    			nodes:                nodeStorage,
    			issuer:               issuer,
    			auds:                 auds,
    			audsSet:              sets.NewString(auds...),
    			maxExpirationSeconds: int64(max.Seconds()),
    			extendExpiration:     extendExpiration,
    		}
    	}
    
    	return &REST{
    		Store: store,
    		Token: trest,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 21:15:10 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. pkg/kubeapiserver/authorizer/config.go

    	}
    
    	// validate the file and return any error
    	if errors := validation.ValidateAuthorizationConfiguration(nil, authorizationConfiguration,
    		sets.NewString(modes.AuthorizationModeChoices...),
    		sets.NewString(repeatableAuthorizerTypes...),
    	); len(errors) != 0 {
    		return nil, fmt.Errorf(errors.ToAggregate().Error())
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top