- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 95 for newString (0.28 sec)
-
pkg/apis/flowcontrol/validation/validation.go
) var supportedSubjectKinds = sets.NewString( string(flowcontrol.SubjectKindServiceAccount), string(flowcontrol.SubjectKindGroup), string(flowcontrol.SubjectKindUser), ) var supportedPriorityLevelEnablement = sets.NewString( string(flowcontrol.PriorityLevelEnablementExempt), string(flowcontrol.PriorityLevelEnablementLimited), ) var supportedLimitResponseType = sets.NewString( string(flowcontrol.LimitResponseTypeQueue),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 22:22:51 UTC 2023 - 26.7K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/ipallocator_test.go
_, cidr, err := netutils.ParseCIDRSloppy("192.168.1.0/24") if err != nil { t.Fatal(err) } testCases := []sets.String{ sets.NewString(), sets.NewString("192.168.1.1"), sets.NewString("192.168.1.1", "192.168.1.254"), sets.NewString("192.168.1.1", "192.168.1.128", "192.168.1.254"), } for i, tc := range testCases { r, err := newTestAllocator(cidr) if err != nil { t.Fatal(err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 25 13:14:46 UTC 2023 - 24.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/deleted_kinds_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/controller/deployment/sync_test.go
expectedDeletedRSs: sets.NewString("foo-1"), }, { // revision order: rs2 < rs1, delete rs2 oldRSs: []*apps.ReplicaSet{ newRSWithRevisionAndCreationTimestamp("foo-1", 0, selector, now.Add(-1*duration), "2"), newRSWithRevisionAndCreationTimestamp("foo-2", 0, selector, now.Time, "1"), }, revisionHistoryLimit: 1, expectedDeletedRSs: sets.NewString("foo-2"), }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 09:10:50 UTC 2023 - 21.1K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset/ipset_test.go
if err != nil { t.Errorf("expected success, got %v", err) } if fcmd.CombinedOutputCalls != 1 { t.Errorf("expected 1 CombinedOutput() calls, got %d", fcmd.CombinedOutputCalls) } if !sets.NewString(fcmd.CombinedOutputLog[0]...).HasAll("ipset", "flush", "FOOBAR") { t.Errorf("wrong CombinedOutput() log, got %s", fcmd.CombinedOutputLog[0]) } // Flush again err = runner.FlushSet("FOOBAR") if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 41.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/config_test.go
json.Unmarshal(body, &result) paths, ok := result["paths"].([]interface{}) if !ok { t.Errorf("paths not found") } pathset := sets.NewString() for _, p := range paths { pathset.Insert(p.(string)) } expectedset := sets.NewString(expectedPaths...) for p := range pathset.Difference(expectedset) { t.Errorf("Got %v path, which we did not expect", p) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 13.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go
var allErrs field.ErrorList seenClaims := sets.NewString() seenExpressions := sets.NewString() var compilationResults []authenticationcel.CompilationResult for i, rule := range rules { fldPath := fldPath.Index(i) if len(rule.Expression) > 0 && !structuredAuthnFeatureEnabled {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 31.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go
pls = make([]*flowcontrol.PriorityLevelConfiguration, 0, n) plMap = make(map[string]*flowcontrol.PriorityLevelConfiguration, n) goodNames = sets.NewString() badNames = sets.NewString(trial+"-nopl1", trial+"-nopl2") addGood := func(pl *flowcontrol.PriorityLevelConfiguration) { pls = append(pls, pl) plMap[pl.Name] = pl goodNames.Insert(pl.Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 18.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go
continue } // the verbs should match the features of resources for _, r := range resources.APIResources { switch r.Name { case "getter": if got, expected := sets.NewString([]string(r.Verbs)...), sets.NewString("get"); !got.Equal(expected) { t.Errorf("[%d] unexpected verbs for resource %s/%s: got=%v expected=%v", i, resources.GroupVersion, r.Name, got, expected) } case "noverbs":
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 23.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go
createGetRequestWithUrl("/healthz?verbose=true"), sets.NewString(), }, {"Should extract out the ping health check", createGetRequestWithUrl("/healthz?exclude=ping"), sets.NewString("ping"), }, {"Should extract out ping and log health check", createGetRequestWithUrl("/healthz?exclude=ping&exclude=log"), sets.NewString("ping", "log"), }, } for _, tt := range tests {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 20:43:16 UTC 2023 - 11.4K bytes - Viewed (0)