Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 51 for admitPV (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/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)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/groupversion.go

    	// authorization check using the request URI but it may be necessary to make additional checks, such as in
    	// the create-on-update case
    	Authorizer authorizer.Authorizer
    
    	Admit admission.Interface
    
    	MinRequestTimeout time.Duration
    
    	// The limit on the request body size that would be accepted and decoded in a write request.
    	// 0 means no limit.
    	MaxRequestBodyBytes int64
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/plugin.go

    	{Group: admissionregistrationv1.GroupName, Resource: "mutatingadmissionpolicybindings"},
    }
    
    // AdmissionPolicyManager is an abstract admission plugin with all the
    // infrastructure to define Admit or Validate on-top.
    type Plugin[H any] struct {
    	*admission.Handler
    
    	sourceFactory     sourceFactory[H]
    	dispatcherFactory dispatcherFactory[H]
    
    	source     Source[H]
    	dispatcher Dispatcher[H]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 19:11:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top