Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 117 for admitPV (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. plugin/pkg/admission/network/defaultingressclass/admission.go

    func (a *classDefaulterPlugin) ValidateInitialization() error {
    	if a.lister == nil {
    		return fmt.Errorf("missing lister")
    	}
    	return nil
    }
    
    // Admit sets the default value of a Ingress's class if the user did not specify
    // a class.
    func (a *classDefaulterPlugin) Admit(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) error {
    	if attr.GetResource().GroupResource() != networkingv1.Resource("ingresses") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 11 01:48:45 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/topologymanager/scope_none.go

    			name:             noneTopologyScope,
    			podTopologyHints: podTopologyHints{},
    			policy:           NewNonePolicy(),
    			podMap:           containermap.NewContainerMap(),
    		},
    	}
    }
    
    func (s *noneScope) Admit(pod *v1.Pod) lifecycle.PodAdmitResult {
    	return s.admitPolicyNone(pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 14:44:24 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/topologymanager/topology_manager.go

    	return m.scope.RemoveContainer(containerID)
    }
    
    func (m *manager) Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult {
    	klog.InfoS("Topology Admit Handler", "podUID", attrs.Pod.UID, "podNamespace", attrs.Pod.Namespace, "podName", attrs.Pod.Name)
    	metrics.TopologyManagerAdmissionRequestsTotal.Inc()
    
    	startTime := time.Now()
    	podAdmitResult := m.scope.Admit(attrs.Pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 12:43:16 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    			scope.Resource,
    			scope.Subresource,
    			admission.Update,
    			patchToUpdateOptions(options),
    			dryrun.IsDryRun(options.DryRun),
    			userInfo,
    		)
    
    		admit = fieldmanager.NewManagedFieldsValidatingAdmissionController(admit)
    
    		mutatingAdmission, _ := admit.(admission.MutationInterface)
    		createAuthorizerAttributes := authorizer.AttributesRecord{
    			User:            userInfo,
    			ResourceRequest: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  10. 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)
Back to top