- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 62 for newString (0.16 sec)
-
pkg/controller/nodelifecycle/scheduler/rate_limited_queue.go
// set. func (q *UniqueQueue) Clear() { q.lock.Lock() defer q.lock.Unlock() if q.queue.Len() > 0 { q.queue = make(TimedQueue, 0) } if len(q.set) > 0 { q.set = sets.NewString() } } // RateLimitedTimedQueue is a unique item priority queue ordered by // the expected next time of execution. It is also rate limited. type RateLimitedTimedQueue struct { queue UniqueQueue
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 07:50:01 UTC 2023 - 8.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/formats.go
limitations under the License. */ package validation import ( "strings" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/kube-openapi/pkg/validation/spec" ) var supportedFormats = sets.NewString( "bsonobjectid", // bson object ID "uri", // an URI as parsed by Golang net/url.ParseRequestURI "email", // an email address as parsed by Golang net/mail.ParseAddress
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 09 09:26:38 UTC 2020 - 3.3K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset/testing/fake.go
// already exists return fmt.Errorf("Set cannot be created: set with the same name already exists") } return nil } f.Sets[set.Name] = set // initialize entry map f.Entries[set.Name] = sets.NewString() return nil } // AddEntry is part of interface. func (f *FakeIPSet) AddEntry(entry string, set *ipset.IPSet, ignoreExistErr bool) error { if f.Entries[set.Name].Has(entry) { if !ignoreExistErr {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/escaping.go
// No identifiers are allowed to collide with these symbols. // https://github.com/google/cel-spec/blob/master/doc/langdef.md#syntax var celReservedSymbols = sets.NewString( "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", "import", "let", "loop", "package", "namespace", "return", // !! 'namespace' is used heavily in Kubernetes
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/errors.go
GroupKind schema.GroupKind // SearchedVersions is the optional list of versions the search was restricted to SearchedVersions []string } func (e *NoKindMatchError) Error() string { searchedVersions := sets.NewString() for _, v := range e.SearchedVersions { searchedVersions.Insert(schema.GroupVersion{Group: e.GroupKind.Group, Version: v}.String()) } switch len(searchedVersions) { case 0:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 11 22:50:51 UTC 2022 - 4.2K bytes - Viewed (0) -
pkg/controller/certificates/approver/sarapprove.go
if csr.Spec.Username != x509cr.Subject.CommonName { return false } return isNodeClientCert(csr, x509cr) } func usagesToSet(usages []capi.KeyUsage) sets.String { result := sets.NewString() for _, usage := range usages { result.Insert(string(usage)) } return result
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 21 16:03:42 UTC 2023 - 5.3K bytes - Viewed (0) -
pkg/apis/policy/validation/validation.go
appsvalidation "k8s.io/kubernetes/pkg/apis/apps/validation" apivalidation "k8s.io/kubernetes/pkg/apis/core/validation" "k8s.io/kubernetes/pkg/apis/policy" ) var supportedUnhealthyPodEvictionPolicies = sets.NewString( string(policy.IfHealthyBudget), string(policy.AlwaysAllow), ) type PodDisruptionBudgetValidationOptions struct { AllowInvalidLabelValueInSelector bool }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 20:44:13 UTC 2023 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/config.go
// in order to preserve backwards compatibility, we set plugins that // previously read input from a non-versioned file configuration to the // current input file. legacyPluginsWithUnversionedConfig := sets.NewString("ImagePolicyWebhook", "PodNodeSelector") externalConfig := &apiserverv1.AdmissionConfiguration{} for _, pluginName := range pluginNames { if legacyPluginsWithUnversionedConfig.Has(pluginName) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 5.8K bytes - Viewed (0) -
pkg/kube/krt/join_test.go
c1 := krt.NewStatic[Named](nil) c2 := krt.NewStatic[Named](nil) c3 := krt.NewStatic[Named](nil) j := krt.JoinCollection([]krt.Collection[Named]{c1.AsCollection(), c2.AsCollection(), c3.AsCollection()}) last := atomic.NewString("") j.Register(func(o krt.Event[Named]) { last.Store(o.Latest().ResourceName()) }) assert.EventuallyEqual(t, last.Load, "") c1.Set(&Named{"c1", "a"}) assert.EventuallyEqual(t, last.Load, "c1/a")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 09 19:55:53 UTC 2024 - 6.1K bytes - Viewed (0) -
plugin/pkg/admission/alwayspullimages/admission.go
} oldPod, ok := attributes.GetOldObject().(*api.Pod) if !ok { klog.Warningf("Resource was marked with kind Pod but old pod was unable to be converted.") return false } oldImages := sets.NewString() pods.VisitContainersWithPath(&oldPod.Spec, field.NewPath("spec"), func(c *api.Container, _ *field.Path) bool { oldImages.Insert(c.Image) return true }) hasNewImage := false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 30 22:59:57 UTC 2020 - 5.2K bytes - Viewed (0)