Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 68 for admitPV (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/accessors.go

    	// GetValidatingWebhook if the accessor contains a ValidatingWebhook, returns it and true, else returns false.
    	GetValidatingWebhook() (*v1.ValidatingWebhook, bool)
    
    	// GetType returns the type of the accessor (validate or admit)
    	GetType() string
    }
    
    // NewMutatingWebhookAccessor creates an accessor for a MutatingWebhook.
    func NewMutatingWebhookAccessor(uid, configurationName string, h *v1.MutatingWebhook) WebhookAccessor {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/kubelet/cm/container_manager_windows.go

    	deviceManager devicemanager.Manager
    	// Interface for Topology resource co-ordination
    	topologyManager topologymanager.Manager
    }
    
    type noopWindowsResourceAllocator struct{}
    
    func (ra *noopWindowsResourceAllocator) Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult {
    	return admission.GetPodAdmitResult(nil)
    }
    
    func (cm *containerManagerImpl) Start(node *v1.Node,
    	activePods ActivePodsFunc,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 11:25:36 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top