Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 88 for admitPV (0.16 sec)

  1. plugin/pkg/admission/nodetaint/admission.go

    type Plugin struct {
    	*admission.Handler
    }
    
    var (
    	_ = admission.Interface(&Plugin{})
    )
    
    var (
    	nodeResource = api.Resource("nodes")
    )
    
    // Admit is the main function that checks node identity and adds taints as needed.
    func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	// Our job is just to taint nodes.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 06 04:56:21 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  2. plugin/pkg/admission/storage/storageclass/setdefault/admission.go

    	if a.lister == nil {
    		return fmt.Errorf("missing lister")
    	}
    	return nil
    }
    
    // Admit sets the default value of a PersistentVolumeClaim's storage class, in case the user did
    // not provide a value.
    //
    // 1.  Find available StorageClasses.
    // 2.  Figure which is the default
    // 3.  Write to the PVClaim
    func (a *claimDefaulterPlugin) Admit(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 18:52:04 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. plugin/pkg/admission/extendedresourcetoleration/admission.go

    	*admission.Handler
    }
    
    // Admit updates the toleration of a pod based on the resources requested by it.
    // If an extended resource of name "example.com/device" is requested, it adds
    // a toleration with key "example.com/device", operator "Exists" and effect "NoSchedule".
    // The rationale for this is described in:
    // https://github.com/kubernetes/kubernetes/issues/55080
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/interfaces.go

    	GetUserInfo() user.Info
    
    	// AddAnnotation sets annotation according to key-value pair. The key should be qualified, e.g., podsecuritypolicy.admission.k8s.io/admit-policy, where
    	// "podsecuritypolicy" is the name of the plugin, "admission.k8s.io" is the name of the organization, "admit-policy" is the key name.
    	// An error is returned if the format of key is invalid. When trying to overwrite annotation with a new value, an error is returned.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 28 14:03:18 UTC 2021
    - 8K bytes
    - Viewed (0)
  5. pkg/kubelet/lifecycle/handlers.go

    }
    
    func (a *appArmorAdmitHandler) Admit(attrs *PodAdmitAttributes) PodAdmitResult {
    	// If the pod is already running or terminated, no need to recheck AppArmor.
    	if attrs.Pod.Status.Phase != v1.PodPending {
    		return PodAdmitResult{Admit: true}
    	}
    
    	err := a.Validate(attrs.Pod)
    	if err == nil {
    		return PodAdmitResult{Admit: true}
    	}
    	return PodAdmitResult{
    		Admit:   false,
    		Reason:  "AppArmor",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 11:40:52 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/rest/delete.go

    func AdmissionToValidateObjectDeleteFunc(admit admission.Interface, staticAttributes admission.Attributes, objInterfaces admission.ObjectInterfaces) ValidateObjectFunc {
    	mutatingAdmission, isMutatingAdmission := admit.(admission.MutationInterface)
    	validatingAdmission, isValidatingAdmission := admit.(admission.ValidationInterface)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 07 17:43:41 UTC 2021
    - 9.3K bytes
    - Viewed (0)
  7. pkg/kubeapiserver/options/plugins.go

    // given binary target.
    import (
    	validatingadmissionpolicy "k8s.io/apiserver/pkg/admission/plugin/policy/validating"
    	// Admission policies
    	"k8s.io/kubernetes/plugin/pkg/admission/admit"
    	"k8s.io/kubernetes/plugin/pkg/admission/alwayspullimages"
    	"k8s.io/kubernetes/plugin/pkg/admission/antiaffinity"
    	certapproval "k8s.io/kubernetes/plugin/pkg/admission/certificates/approval"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 17:20:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. cluster/gce/addons/cloud-pvl-admission/mutating-webhook-configuration.yaml

      rules:
      - apiGroups:   [""]
        apiVersions: ["v1"]
        operations:  ["CREATE"]
        resources:   ["persistentvolumes"]
        scope:       "*"
      clientConfig:
        url: "https://127.0.0.1:9001/admit"
        caBundle: "__CLOUD_PVL_ADMISSION_CA_CERT__"
      matchConditions:
      - name: "only-gce"
        expression: "has(object.spec.gcePersistentDisk)"
      admissionReviewVersions: ["v1"]
      sideEffects: None
      timeoutSeconds: 5
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 02 23:15:32 UTC 2023
    - 699 bytes
    - Viewed (0)
  9. plugin/pkg/admission/defaulttolerationseconds/admission.go

    func NewDefaultTolerationSeconds() *Plugin {
    	return &Plugin{
    		Handler: admission.NewHandler(admission.Create, admission.Update),
    	}
    }
    
    // Admit makes an admission decision based on the request attributes
    func (p *Plugin) Admit(ctx context.Context, attributes admission.Attributes, o admission.ObjectInterfaces) (err error) {
    	if attributes.GetResource().GroupResource() != api.Resource("pods") {
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 06 04:56:21 UTC 2019
    - 4K bytes
    - Viewed (0)
  10. plugin/pkg/admission/namespace/autoprovision/admission.go

    var _ = genericadmissioninitializer.WantsExternalKubeInformerFactory(&Provision{})
    var _ = genericadmissioninitializer.WantsExternalKubeClientSet(&Provision{})
    
    // Admit makes an admission decision based on the request attributes
    func (p *Provision) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	// Don't create a namespace if the request is for a dry-run.
    	if a.IsDryRun() {
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 08 17:30:21 UTC 2020
    - 4.1K bytes
    - Viewed (0)
Back to top