- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 95 for newString (0.23 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation.go
allErrs = append(allErrs, field.Invalid(fldPath, fieldManager, fmt.Sprintf("invalid character %#U (at position %d)", r, i))) } } return allErrs } var allowedDryRunValues = sets.NewString(metav1.DryRunAll) // ValidateDryRun validates that a dryRun query param only contains allowed values. func ValidateDryRun(fldPath *field.Path, dryRun []string) field.ErrorList { allErrs := field.ErrorList{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 01:52:02 UTC 2022 - 13.5K bytes - Viewed (0) -
pkg/apis/certificates/validation/validation.go
trueConditionTypes = sets.NewString( string(certificates.CertificateApproved), string(certificates.CertificateDenied), string(certificates.CertificateFailed), ) trueStatusOnly = sets.NewString(string(v1.ConditionTrue)) allStatusValues = sets.NewString(string(v1.ConditionTrue), string(v1.ConditionFalse), string(v1.ConditionUnknown)) )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:49 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/cidrallocator_test.go
return false, nil } allocator.ipAddressSynced = func() bool { return true } return allocator.ready.Load(), nil }) if err != nil { t.Fatal(err) } found := sets.NewString() count := 0 for r.Free() > 0 { ip, err := r.AllocateNext() if err != nil { t.Fatalf("error @ free: %d count: %d: %v", r.Free(), count, err) } count++ if found.Has(ip.String()) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:06 UTC 2023 - 13.7K bytes - Viewed (0) -
pkg/apis/autoscaling/validation/validation.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 25 00:58:00 UTC 2024 - 19.4K bytes - Viewed (0) -
plugin/pkg/admission/serviceaccount/admission.go
} func (s *Plugin) limitSecretReferences(serviceAccount *corev1.ServiceAccount, pod *api.Pod) error { // Ensure all secrets the pod references are allowed by the service account mountableSecrets := sets.NewString() for _, s := range serviceAccount.Secrets { mountableSecrets.Insert(s.Name) } for _, volume := range pod.Spec.Volumes { source := volume.VolumeSource if source.Secret == nil { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 17:49:30 UTC 2024 - 18.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go
w.Write([]byte("hello from the handler")) panic(http.ErrAbortHandler) }) resolver := &request.RequestInfoFactory{ APIPrefixes: sets.NewString("api", "apis"), GrouplessAPIPrefixes: sets.NewString("api"), } ts := httptest.NewServer(WithPanicRecovery(handler, resolver)) defer ts.Close() _, err := http.Get(ts.URL) if err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 18.4K bytes - Viewed (0) -
pkg/quota/v1/evaluator/core/pods.go
// the incoming pod is required to have those values set. we should not repeat // this mistake for other future resources (gpus, ephemeral-storage,etc). // do not add more resources to this list! var validationSet = sets.NewString( string(corev1.ResourceCPU), string(corev1.ResourceMemory), string(corev1.ResourceRequestsCPU), string(corev1.ResourceRequestsMemory), string(corev1.ResourceLimitsCPU), string(corev1.ResourceLimitsMemory), )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 05 00:02:47 UTC 2023 - 17.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/peerproxy/peerproxy_handler_test.go
// Add user info handler = withFakeUser(handler) // Add requestInfo handler requestInfoFactory := &apirequest.RequestInfoFactory{APIPrefixes: sets.NewString("apis", "api"), GrouplessAPIPrefixes: sets.NewString("api")} handler = apifilters.WithRequestInfo(handler, requestInfoFactory) return handler }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta.go
func ValidateNoNewFinalizers(newFinalizers []string, oldFinalizers []string, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} extra := sets.NewString(newFinalizers...).Difference(sets.NewString(oldFinalizers...)) if len(extra) != 0 { allErrs = append(allErrs, field.Forbidden(fldPath, fmt.Sprintf("no new finalizers can be added if the object is being deleted, found new finalizers %#v", extra.List())))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 07 03:12:31 UTC 2022 - 12K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go
func getExcludedChecks(r *http.Request) sets.String { checks, found := r.URL.Query()["exclude"] if found { return sets.NewString(checks...) } return sets.NewString() } // handleRootHealth returns an http.HandlerFunc that serves the provided checks. func handleRootHealth(name string, firstTimeHealthy func(), checks ...HealthChecker) http.HandlerFunc {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 19:11:24 UTC 2024 - 10.5K bytes - Viewed (0)