- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 26 for admitPV (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go
webhookutil "k8s.io/apiserver/pkg/util/webhook" "k8s.io/client-go/informers" clientset "k8s.io/client-go/kubernetes" ) // Webhook is an abstract admission plugin with all the infrastructure to define Admit or Validate on-top. type Webhook struct { *admission.Handler sourceFactory sourceFactory hookSource Source clientManager *webhookutil.ClientManager namespaceMatcher *namespace.Matcher
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 9.3K bytes - Viewed (0) -
pkg/webhooks/validation/server/server.go
return &kube.AdmissionResponse{Result: &metav1.Status{Message: err.Error()}} } type admitFunc func(*kube.AdmissionRequest) *kube.AdmissionResponse func serve(w http.ResponseWriter, r *http.Request, admit admitFunc) { var body []byte if r.Body != nil { if data, err := kube.HTTPConfigReader(r); err == nil { body = data } else { http.Error(w, err.Error(), http.StatusBadRequest) return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat May 04 06:13:56 UTC 2024 - 9.3K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go
assert.NoError(t, manager.ShutdownStatus(), "expected that manager does not return error since shutdown is not active") assert.Equal(t, manager.Admit(nil).Admit, true) // Send fake shutdown event select { case fakeShutdownChan <- true: case <-time.After(1 * time.Second): t.Fatal() } // Wait for all the pods to be killed
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 29.8K bytes - Viewed (0) -
plugin/pkg/admission/resourcequota/admission_test.go
if err != nil { t.Errorf("ResourceQuota should admit all deletes: %v", err) } } // TestAdmissionIgnoresSubresources verifies that the admission controller ignores subresources // It verifies that creation of a pod that would have exceeded quota is properly failed
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 84.1K bytes - Viewed (0) -
plugin/pkg/admission/serviceaccount/admission.go
return fmt.Errorf("missing client") } if s.serviceAccountLister == nil { return fmt.Errorf("missing serviceAccountLister") } return nil } // Admit verifies if the pod should be admitted func (s *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) (err error) { if shouldIgnore(a) { return nil } if a.GetOperation() != admission.Create {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 17:49:30 UTC 2024 - 18.6K bytes - Viewed (0) -
pkg/kubelet/kubelet.go
attrs.OtherPods = kl.GetActivePods() for _, handler := range kl.softAdmitHandlers { if result := handler.Admit(attrs); !result.Admit { return result } } return lifecycle.PodAdmitResult{Admit: true} } // syncLoop is the main loop for processing changes. It watches for changes from
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 126.1K bytes - Viewed (0) -
docs/es/docs/async.md
La mayoría de los framework populares de Python existentes (incluidos Flask y Django) se crearon antes de que existieran las nuevas funciones asíncronas en Python. Por lo tanto, las formas en que pueden implementarse admiten la ejecución paralela y una forma más antigua de ejecución asíncrona que no es tan potente como la actual.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 24.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation.go
return ValidateStructuralWithOptions(fldPath, s, ValidationOptions{ // This would widen the schema for CRD if set to true, so first few releases will still // not admit any. But it can still be used by libraries and // declarative validation for native types AllowNestedAdditionalProperties: false, AllowNestedXValidations: false,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 14.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/interfaces.go
// if the hook cannot be completed. The function may NOT transform the provided // object. type ValidateObjectFunc func(ctx context.Context, obj runtime.Object) error // ValidateAllObjectFunc is a "admit everything" instance of ValidateObjectFunc. func ValidateAllObjectFunc(ctx context.Context, obj runtime.Object) error { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 07:53:48 UTC 2024 - 14.8K bytes - Viewed (0) -
plugin/pkg/admission/noderestriction/admission_test.go
} c.podsGetter = a.podsGetter c.nodesGetter = a.nodesGetter err := c.Admit(context.TODO(), a.attributes, nil) if (err == nil) != (len(a.err) == 0) { t.Errorf("nodePlugin.Admit() error = %v, expected %v", err, a.err) return } if len(a.err) > 0 && !strings.Contains(err.Error(), a.err) { t.Errorf("nodePlugin.Admit() error = %v, expected %v", err, a.err) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 73.2K bytes - Viewed (0)