Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 385 for admission (0.74 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/metrics/metrics_test.go

    	}
    
    	testCases := []struct {
    		desc     string
    		want     string
    		observer metricsObserver
    	}{
    		{
    			desc: "observe policy admission",
    			want: `
    			# HELP apiserver_validating_admission_policy_check_duration_seconds [ALPHA] Validation admission latency for individual validation expressions in seconds, labeled by policy and further including binding, state and enforcement action taken.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. pkg/kubeapiserver/options/admission_test.go

    func TestValidate(t *testing.T) {
    	// 1. Both `--admission-control` and `--enable-admission-plugins` are specified
    	options := NewAdmissionOptions()
    	options.PluginNames = []string{"ServiceAccount"}
    	options.GenericAdmission.EnablePlugins = []string{"NodeRestriction"}
    	if len(options.Validate()) == 0 {
    		t.Errorf("Expect error, but got none")
    	}
    
    	// 2. Both `--admission-control` and `--disable-admission-plugins` are specified
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 15 01:51:35 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. common-protos/k8s.io/api/admissionregistration/v1beta1/generated.proto

      // Allowed values are "Never" and "IfNeeded".
      //
      // Never: the webhook will not be called more than once in a single admission evaluation.
      //
      // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
      // if the object being admitted is modified by other admission plugins after the initial webhook call.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go

    					if mutatingAdmission.Handles(admission.Create) {
    						return newObj, mutatingAdmission.Admit(ctx, admission.NewAttributesRecord(newObj, nil, scope.Kind, namespace, name, scope.Resource, scope.Subresource, admission.Create, updateToCreateOptions(options), dryrun.IsDryRun(options.DryRun), userInfo), scope)
    					}
    				} else {
    					if mutatingAdmission.Handles(admission.Update) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:19:46 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  5. cmd/kube-apiserver/app/options/options_test.go

    			},
    			Admission: &kubeoptions.AdmissionOptions{
    				GenericAdmission: &apiserveroptions.AdmissionOptions{
    					RecommendedPluginOrder: s.Options.Admission.GenericAdmission.RecommendedPluginOrder,
    					DefaultOffPlugins:      s.Options.Admission.GenericAdmission.DefaultOffPlugins,
    					EnablePlugins:          []string{"AlwaysDeny"},
    					ConfigFile:             "/admission-control-config",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. pkg/kubeapiserver/admission/exclusion/resources.go

    }
    
    // Included returns a copy of the list of resources that the expression-based admission controllers
    // should intercept.
    func Included() []schema.GroupResource {
    	return slices.Clone(included)
    }
    
    // Excluded returns a copy of the list of resources that the expression-based admission controllers
    // should ignore.
    func Excluded() []schema.GroupResource {
    	return slices.Clone(excluded)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 23:31:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/topologymanager/scope_pod.go

    		err := s.allocateAlignedResources(pod, &container)
    		if err != nil {
    			metrics.TopologyManagerAdmissionErrorsTotal.Inc()
    			return admission.GetPodAdmitResult(err)
    		}
    	}
    	return admission.GetPodAdmitResult(nil)
    }
    
    func (s *podScope) accumulateProvidersHints(pod *v1.Pod) []map[string][]TopologyHint {
    	var providersHints []map[string][]TopologyHint
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 14:44:24 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go

    	"k8s.io/component-base/tracing"
    )
    
    // DeleteResource returns a function that will handle a resource deletion
    // TODO admission here becomes solely validating admission
    func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope *RequestScope, admit admission.Interface) http.HandlerFunc {
    	return func(w http.ResponseWriter, req *http.Request) {
    		ctx := req.Context()
    		// For performance tracking purposes.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:32 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go

    	if negativeUsage := quota.IsNegative(deltaUsage); len(negativeUsage) > 0 {
    		return nil, admission.NewForbidden(a, fmt.Errorf("quota usage is negative for resource(s): %s", prettyPrintResourceNames(negativeUsage)))
    	}
    
    	if admission.Update == a.GetOperation() {
    		prevItem := a.GetOldObject()
    		if prevItem == nil {
    			return nil, admission.NewForbidden(a, fmt.Errorf("unable to get previous usage since prior version of object was not found"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/topologymanager/scope_container.go

    		err := s.allocateAlignedResources(pod, &container)
    		if err != nil {
    			metrics.TopologyManagerAdmissionErrorsTotal.Inc()
    			return admission.GetPodAdmitResult(err)
    		}
    	}
    	return admission.GetPodAdmitResult(nil)
    }
    
    func (s *containerScope) accumulateProvidersHints(pod *v1.Pod, container *v1.Container) []map[string][]TopologyHint {
    	var providersHints []map[string][]TopologyHint
    
    	for _, provider := range s.hintProviders {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 14:44:24 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top