Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 151 for admitPV (0.23 sec)

  1. 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)
  2. 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)
  3. plugin/pkg/admission/network/denyserviceexternalips/admission.go

    // newPlugin creates a new admission plugin.
    func newPlugin() *externalIPsDenierPlugin {
    	return &externalIPsDenierPlugin{
    		Handler: admission.NewHandler(admission.Create, admission.Update),
    	}
    }
    
    // Admit ensures that modifications of the Service.Spec.ExternalIPs field are
    // denied
    func (plug *externalIPsDenierPlugin) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 29 18:00:11 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/registry/rest/create.go

    }
    
    // AdmissionToValidateObjectFunc converts validating admission to a rest validate object func
    func AdmissionToValidateObjectFunc(admit admission.Interface, staticAttributes admission.Attributes, o admission.ObjectInterfaces) ValidateObjectFunc {
    	validatingAdmission, ok := admit.(admission.ValidationInterface)
    	if !ok {
    		return func(ctx context.Context, obj runtime.Object) error { return nil }
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 27 11:48:28 UTC 2022
    - 9.1K 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. staging/src/k8s.io/apiserver/pkg/registry/rest/update.go

    }
    
    // AdmissionToValidateObjectUpdateFunc converts validating admission to a rest validate object update func
    func AdmissionToValidateObjectUpdateFunc(admit admission.Interface, staticAttributes admission.Attributes, o admission.ObjectInterfaces) ValidateObjectUpdateFunc {
    	validatingAdmission, ok := admit.(admission.ValidationInterface)
    	if !ok {
    		return func(ctx context.Context, obj, old runtime.Object) error { return nil }
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 27 11:48:28 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  9. 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)
  10. pkg/kubelet/cm/topologymanager/scope.go

    	noneTopologyScope = "none"
    )
    
    type podTopologyHints map[string]map[string]TopologyHint
    
    // Scope interface for Topology Manager
    type Scope interface {
    	Name() string
    	GetPolicy() Policy
    	Admit(pod *v1.Pod) lifecycle.PodAdmitResult
    	// AddHintProvider adds a hint provider to manager to indicate the hint provider
    	// wants to be consoluted with when making topology hints
    	AddHintProvider(h HintProvider)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 14:44:24 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top