- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 54 for admitPV (0.19 sec)
-
pkg/kubeapiserver/admission/initializer_test.go
limitations under the License. */ package admission import ( "context" "testing" "k8s.io/apiserver/pkg/admission" ) type doNothingAdmission struct{} func (doNothingAdmission) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error { return nil } func (doNothingAdmission) Handles(o admission.Operation) bool { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 1.5K bytes - Viewed (0) -
pkg/controlplane/apiserver/admission/initializer_test.go
"context" "testing" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apiserver/pkg/admission" quota "k8s.io/apiserver/pkg/quota/v1" ) type doNothingAdmission struct{} func (doNothingAdmission) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error { return nil } func (doNothingAdmission) Handles(o admission.Operation) bool { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 2K bytes - Viewed (0) -
src/runtime/pprof/label.go
return labelMap(nil) } return *labels } // labelMap is the representation of the label set held in the context type. // This is an initial implementation, but it will be replaced with something // that admits incremental immutable modification more efficiently. type labelMap map[string]string // String satisfies Stringer and returns key, value pairs in a consistent // order. func (l *labelMap) String() string { if l == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3K bytes - Viewed (0) -
plugin/pkg/admission/runtimeclass/admission.go
return fmt.Errorf("missing RuntimeClass lister") } if r.runtimeClassClient == nil { return fmt.Errorf("missing RuntimeClass client") } return nil } // Admit makes an admission decision based on the request attributes func (r *RuntimeClass) Admit(ctx context.Context, attributes admission.Attributes, o admission.ObjectInterfaces) error { // Ignore all calls to subresources or resources other than pods. if shouldIgnore(attributes) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 05 05:53:38 UTC 2024 - 8.9K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiserver/pkg/admission/initializer/interfaces.go
} // WantsDrainedNotification defines a function which sets the notification of where the apiserver // has already been drained for admission plugins that need it. // After receiving that notification, Admit/Validate calls won't be called anymore. type WantsDrainedNotification interface { SetDrainedNotification(<-chan struct{}) admission.InitializationValidator }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 19:11:10 UTC 2024 - 3.6K 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) -
guava/src/com/google/common/graph/AbstractBaseGraph.java
import java.util.Set; import javax.annotation.CheckForNull; /** * This class provides a skeletal implementation of {@link BaseGraph}. * * <p>The methods implemented in this class should not be overridden unless the subclass admits a * more efficient implementation. * * @author James Sexton * @param <N> Node parameter type */ @ElementTypesAreNonnullByDefault abstract class AbstractBaseGraph<N> implements BaseGraph<N> { /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 7.2K bytes - Viewed (0)